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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<OriginalDetectIntentRequest.Builder>
    • getDefaultInstanceForType

      public OriginalDetectIntentRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public OriginalDetectIntentRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public OriginalDetectIntentRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OriginalDetectIntentRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<OriginalDetectIntentRequest.Builder>
      Throws:
      IOException
    • getSource

      public String getSource()
       The source of this request, e.g., `google`, `facebook`, `slack`. It is set
       by Dialogflow-owned servers.
       
      string source = 1;
      Specified by:
      getSource in interface OriginalDetectIntentRequestOrBuilder
      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:
      getSourceBytes in interface OriginalDetectIntentRequestOrBuilder
      Returns:
      The bytes for source.
    • setSource

      public OriginalDetectIntentRequest.Builder setSource(String value)
       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

      public OriginalDetectIntentRequest.Builder setSourceBytes(com.google.protobuf.ByteString value)
       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

      public String getVersion()
       Optional. The version of the protocol used for this request.
       This field is AoG-specific.
       
      string version = 2;
      Specified by:
      getVersion in interface OriginalDetectIntentRequestOrBuilder
      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:
      getVersionBytes in interface OriginalDetectIntentRequestOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public OriginalDetectIntentRequest.Builder setVersion(String value)
       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

      public OriginalDetectIntentRequest.Builder 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

      public OriginalDetectIntentRequest.Builder setVersionBytes(com.google.protobuf.ByteString value)
       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:
      hasPayload in interface OriginalDetectIntentRequestOrBuilder
      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:
      getPayload in interface OriginalDetectIntentRequestOrBuilder
      Returns:
      The payload.
    • setPayload

      public OriginalDetectIntentRequest.Builder setPayload(com.google.protobuf.Struct value)
       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

      public OriginalDetectIntentRequest.Builder mergePayload(com.google.protobuf.Struct value)
       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

      public OriginalDetectIntentRequest.Builder 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:
      getPayloadOrBuilder in interface OriginalDetectIntentRequestOrBuilder