Class RCSBusinessMessaging.Phones.DialogflowMessages.Create
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
-
- com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
-
- com.google.api.services.rcsbusinessmessaging.v1.RCSBusinessMessagingRequest<DialogflowEvent>
-
- com.google.api.services.rcsbusinessmessaging.v1.RCSBusinessMessaging.Phones.DialogflowMessages.Create
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
- Enclosing class:
- RCSBusinessMessaging.Phones.DialogflowMessages
public class RCSBusinessMessaging.Phones.DialogflowMessages.Create extends RCSBusinessMessagingRequest<DialogflowEvent>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCreate(java.lang.String parent, DialogflowEvent content)Prompts a Dialogflow agent to send messages through an RBM agent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAgentId()Optional.java.lang.StringgetMessageIdPrefix()A unique prefix of RBM message IDs that result from the Dialogflow event.java.lang.StringgetParent()" phones/{E.164}", where {E.164} is the user's phone number "RCSBusinessMessaging.Phones.DialogflowMessages.Createset(java.lang.String parameterName, java.lang.Object value)RCSBusinessMessaging.Phones.DialogflowMessages.Createset$Xgafv(java.lang.String $Xgafv)V1 error format.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetAccessToken(java.lang.String accessToken)OAuth access token.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetAgentId(java.lang.String agentId)Optional.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetAlt(java.lang.String alt)Data format for response.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetCallback(java.lang.String callback)JSONPRCSBusinessMessaging.Phones.DialogflowMessages.CreatesetFields(java.lang.String fields)Selector specifying which fields to include in a partial response.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetKey(java.lang.String key)API key.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetMessageIdPrefix(java.lang.String messageIdPrefix)A unique prefix of RBM message IDs that result from the Dialogflow event.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetOauthToken(java.lang.String oauthToken)OAuth 2.0 token for the current user.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetParent(java.lang.String parent)"phones/{E.164}", where {E.164} is the user's phone numberRCSBusinessMessaging.Phones.DialogflowMessages.CreatesetPrettyPrint(java.lang.Boolean prettyPrint)Returns response with indentations and line breaks.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetQuotaUser(java.lang.String quotaUser)Available to use for quota purposes for server-side applications.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetUploadProtocol(java.lang.String uploadProtocol)Upload protocol for media (e.g.RCSBusinessMessaging.Phones.DialogflowMessages.CreatesetUploadType(java.lang.String uploadType)Legacy upload protocol for media (e.g.-
Methods inherited from class com.google.api.services.rcsbusinessmessaging.v1.RCSBusinessMessagingRequest
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
-
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
-
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
-
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
-
-
-
-
Constructor Detail
-
Create
protected Create(java.lang.String parent, DialogflowEvent content)Prompts a Dialogflow agent to send messages through an RBM agent. If Dialogflow integration isn't enabled for an RBM agent, this method returns `403 PERMISSION_DENIED`. When an RBM agent is integrated with a Dialogflow agent, this method triggers an event in the Dialogflow agent. The RBM Platform routes responses from Dialogflow to the user's device and routes messages from the user back to the Dialogflow agent. If a Dialogflow intent defines multiple responses, the RBM Platform sends users one message per defined response. If you contact a webhook with Dialogflow fulfillment, the fulfillment request includes the following information in the payload: Field Description rbm_user_phone_number The user's phone number. rbm_share_location_response The user's location, if they tapped the share location suggested action. Create a request for the method "dialogflowMessages.create". This request holds the parameters needed by the the rcsbusinessmessaging server. After setting any optional parameters, call theAbstractGoogleClientRequest.execute()method to invoke the remote operation.RCSBusinessMessaging.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)must be called to initialize this instance immediately after invoking the constructor.- Parameters:
parent- "phones/{E.164}", where {E.164} is the user's phone numbercontent- theDialogflowEvent- Since:
- 1.13
-
-
Method Detail
-
set$Xgafv
public RCSBusinessMessaging.Phones.DialogflowMessages.Create set$Xgafv(java.lang.String $Xgafv)
Description copied from class:RCSBusinessMessagingRequestV1 error format.- Overrides:
set$Xgafvin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setAccessToken
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setAccessToken(java.lang.String accessToken)
Description copied from class:RCSBusinessMessagingRequestOAuth access token.- Overrides:
setAccessTokenin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setAlt
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setAlt(java.lang.String alt)
Description copied from class:RCSBusinessMessagingRequestData format for response.- Overrides:
setAltin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setCallback
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setCallback(java.lang.String callback)
Description copied from class:RCSBusinessMessagingRequestJSONP- Overrides:
setCallbackin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setFields
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setFields(java.lang.String fields)
Description copied from class:RCSBusinessMessagingRequestSelector specifying which fields to include in a partial response.- Overrides:
setFieldsin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setKey
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setKey(java.lang.String key)
Description copied from class:RCSBusinessMessagingRequestAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.- Overrides:
setKeyin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setOauthToken
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setOauthToken(java.lang.String oauthToken)
Description copied from class:RCSBusinessMessagingRequestOAuth 2.0 token for the current user.- Overrides:
setOauthTokenin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setPrettyPrint
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setPrettyPrint(java.lang.Boolean prettyPrint)
Description copied from class:RCSBusinessMessagingRequestReturns response with indentations and line breaks.- Overrides:
setPrettyPrintin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setQuotaUser
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setQuotaUser(java.lang.String quotaUser)
Description copied from class:RCSBusinessMessagingRequestAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.- Overrides:
setQuotaUserin classRCSBusinessMessagingRequest<DialogflowEvent>
-
setUploadType
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setUploadType(java.lang.String uploadType)
Description copied from class:RCSBusinessMessagingRequestLegacy upload protocol for media (e.g. "media", "multipart").- Overrides:
setUploadTypein classRCSBusinessMessagingRequest<DialogflowEvent>
-
setUploadProtocol
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setUploadProtocol(java.lang.String uploadProtocol)
Description copied from class:RCSBusinessMessagingRequestUpload protocol for media (e.g. "raw", "multipart").- Overrides:
setUploadProtocolin classRCSBusinessMessagingRequest<DialogflowEvent>
-
getParent
public java.lang.String getParent()
" phones/{E.164}", where {E.164} is the user's phone number "
-
setParent
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setParent(java.lang.String parent)
"phones/{E.164}", where {E.164} is the user's phone number
-
getMessageIdPrefix
public java.lang.String getMessageIdPrefix()
A unique prefix of RBM message IDs that result from the Dialogflow event. Dialogflow supports multiple responses for a given event. If an event triggers multiple responses, RBM forwards each response as a separate message. Each message ID shares the same prefix.
-
setMessageIdPrefix
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setMessageIdPrefix(java.lang.String messageIdPrefix)
A unique prefix of RBM message IDs that result from the Dialogflow event. Dialogflow supports multiple responses for a given event. If an event triggers multiple responses, RBM forwards each response as a separate message. Each message ID shares the same prefix.
-
getAgentId
public java.lang.String getAgentId()
Optional. The agent's unique identifier. Defined by RCS Business Messaging.
-
setAgentId
public RCSBusinessMessaging.Phones.DialogflowMessages.Create setAgentId(java.lang.String agentId)
Optional. The agent's unique identifier. Defined by RCS Business Messaging.
-
set
public RCSBusinessMessaging.Phones.DialogflowMessages.Create set(java.lang.String parameterName, java.lang.Object value)
- Overrides:
setin classRCSBusinessMessagingRequest<DialogflowEvent>
-
-