Package com.google.cloud.dialogflow.v2
Class OriginalDetectIntentRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
com.google.cloud.dialogflow.v2.OriginalDetectIntentRequest.Builder
- All Implemented Interfaces:
OriginalDetectIntentRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OriginalDetectIntentRequest
public static final class OriginalDetectIntentRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
implements OriginalDetectIntentRequestOrBuilder
Represents the contents of the original request that was passed to the `[Streaming]DetectIntent` call.Protobuf type
google.cloud.dialogflow.v2.OriginalDetectIntentRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.The source of this request, e.g., `google`, `facebook`, `slack`.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.The source of this request, e.g., `google`, `facebook`, `slack`.com.google.protobuf.ByteStringThe source of this request, e.g., `google`, `facebook`, `slack`.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePayload(com.google.protobuf.Struct value) Optional.setPayload(com.google.protobuf.Struct value) Optional.setPayload(com.google.protobuf.Struct.Builder builderForValue) Optional.The source of this request, e.g., `google`, `facebook`, `slack`.setSourceBytes(com.google.protobuf.ByteString value) The source of this request, e.g., `google`, `facebook`, `slack`.setVersion(String value) Optional.setVersionBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OriginalDetectIntentRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
-
mergeFrom
public OriginalDetectIntentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OriginalDetectIntentRequest.Builder>- Throws:
IOException
-
getSource
The source of this request, e.g., `google`, `facebook`, `slack`. It is set by Dialogflow-owned servers.
string source = 1;- Specified by:
getSourcein interfaceOriginalDetectIntentRequestOrBuilder- Returns:
- The source.
-
getSourceBytes
public com.google.protobuf.ByteString getSourceBytes()The source of this request, e.g., `google`, `facebook`, `slack`. It is set by Dialogflow-owned servers.
string source = 1;- Specified by:
getSourceBytesin interfaceOriginalDetectIntentRequestOrBuilder- Returns:
- The bytes for source.
-
setSource
The source of this request, e.g., `google`, `facebook`, `slack`. It is set by Dialogflow-owned servers.
string source = 1;- Parameters:
value- The source to set.- Returns:
- This builder for chaining.
-
clearSource
The source of this request, e.g., `google`, `facebook`, `slack`. It is set by Dialogflow-owned servers.
string source = 1;- Returns:
- This builder for chaining.
-
setSourceBytes
The source of this request, e.g., `google`, `facebook`, `slack`. It is set by Dialogflow-owned servers.
string source = 1;- Parameters:
value- The bytes for source to set.- Returns:
- This builder for chaining.
-
getVersion
Optional. The version of the protocol used for this request. This field is AoG-specific.
string version = 2;- Specified by:
getVersionin interfaceOriginalDetectIntentRequestOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()Optional. The version of the protocol used for this request. This field is AoG-specific.
string version = 2;- Specified by:
getVersionBytesin interfaceOriginalDetectIntentRequestOrBuilder- Returns:
- The bytes for version.
-
setVersion
Optional. The version of the protocol used for this request. This field is AoG-specific.
string version = 2;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
Optional. The version of the protocol used for this request. This field is AoG-specific.
string version = 2;- Returns:
- This builder for chaining.
-
setVersionBytes
Optional. The version of the protocol used for this request. This field is AoG-specific.
string version = 2;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
hasPayload
public boolean hasPayload()Optional. This field is set to the value of the `QueryParameters.payload` field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: <pre>{ "telephony": { "caller_id": "+18558363987" } }</pre> Note: The caller ID field (`caller_id`) will be redacted for Trial Edition agents and populated with the caller ID in [E.164 format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents..google.protobuf.Struct payload = 3;- Specified by:
hasPayloadin interfaceOriginalDetectIntentRequestOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public com.google.protobuf.Struct getPayload()Optional. This field is set to the value of the `QueryParameters.payload` field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: <pre>{ "telephony": { "caller_id": "+18558363987" } }</pre> Note: The caller ID field (`caller_id`) will be redacted for Trial Edition agents and populated with the caller ID in [E.164 format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents..google.protobuf.Struct payload = 3;- Specified by:
getPayloadin interfaceOriginalDetectIntentRequestOrBuilder- Returns:
- The payload.
-
setPayload
Optional. This field is set to the value of the `QueryParameters.payload` field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: <pre>{ "telephony": { "caller_id": "+18558363987" } }</pre> Note: The caller ID field (`caller_id`) will be redacted for Trial Edition agents and populated with the caller ID in [E.164 format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents..google.protobuf.Struct payload = 3; -
setPayload
public OriginalDetectIntentRequest.Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) Optional. This field is set to the value of the `QueryParameters.payload` field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: <pre>{ "telephony": { "caller_id": "+18558363987" } }</pre> Note: The caller ID field (`caller_id`) will be redacted for Trial Edition agents and populated with the caller ID in [E.164 format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents..google.protobuf.Struct payload = 3; -
mergePayload
Optional. This field is set to the value of the `QueryParameters.payload` field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: <pre>{ "telephony": { "caller_id": "+18558363987" } }</pre> Note: The caller ID field (`caller_id`) will be redacted for Trial Edition agents and populated with the caller ID in [E.164 format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents..google.protobuf.Struct payload = 3; -
clearPayload
Optional. This field is set to the value of the `QueryParameters.payload` field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: <pre>{ "telephony": { "caller_id": "+18558363987" } }</pre> Note: The caller ID field (`caller_id`) will be redacted for Trial Edition agents and populated with the caller ID in [E.164 format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents..google.protobuf.Struct payload = 3; -
getPayloadBuilder
public com.google.protobuf.Struct.Builder getPayloadBuilder()Optional. This field is set to the value of the `QueryParameters.payload` field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: <pre>{ "telephony": { "caller_id": "+18558363987" } }</pre> Note: The caller ID field (`caller_id`) will be redacted for Trial Edition agents and populated with the caller ID in [E.164 format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents..google.protobuf.Struct payload = 3; -
getPayloadOrBuilder
public com.google.protobuf.StructOrBuilder getPayloadOrBuilder()Optional. This field is set to the value of the `QueryParameters.payload` field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload. In particular, for the Dialogflow Phone Gateway integration, this field has the form: <pre>{ "telephony": { "caller_id": "+18558363987" } }</pre> Note: The caller ID field (`caller_id`) will be redacted for Trial Edition agents and populated with the caller ID in [E.164 format](https://en.wikipedia.org/wiki/E.164) for Essentials Edition agents..google.protobuf.Struct payload = 3;- Specified by:
getPayloadOrBuilderin interfaceOriginalDetectIntentRequestOrBuilder
-