Class GetIntentRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GetIntentRequest.Builder>
com.google.cloud.dialogflow.v2.GetIntentRequest.Builder
All Implemented Interfaces:
GetIntentRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GetIntentRequest

public static final class GetIntentRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<GetIntentRequest.Builder> implements GetIntentRequestOrBuilder
 The request message for
 [Intents.GetIntent][google.cloud.dialogflow.v2.Intents.GetIntent].
 
Protobuf type google.cloud.dialogflow.v2.GetIntentRequest
  • 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<GetIntentRequest.Builder>
    • clear

      public GetIntentRequest.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<GetIntentRequest.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<GetIntentRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public GetIntentRequest.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<GetIntentRequest.Builder>
    • mergeFrom

      public GetIntentRequest.Builder mergeFrom(GetIntentRequest other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<GetIntentRequest.Builder>
    • mergeFrom

      public GetIntentRequest.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<GetIntentRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The name of the intent.
       Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface GetIntentRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the intent.
       Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface GetIntentRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public GetIntentRequest.Builder setName(String value)
       Required. The name of the intent.
       Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public GetIntentRequest.Builder clearName()
       Required. The name of the intent.
       Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public GetIntentRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the intent.
       Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLanguageCode

      public String getLanguageCode()
       Optional. The language used to access language-specific data.
       If not specified, the agent's default language is used.
       For more information, see
       [Multilingual intent and entity
       data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface GetIntentRequestOrBuilder
      Returns:
      The languageCode.
    • getLanguageCodeBytes

      public com.google.protobuf.ByteString getLanguageCodeBytes()
       Optional. The language used to access language-specific data.
       If not specified, the agent's default language is used.
       For more information, see
       [Multilingual intent and entity
       data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface GetIntentRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public GetIntentRequest.Builder setLanguageCode(String value)
       Optional. The language used to access language-specific data.
       If not specified, the agent's default language is used.
       For more information, see
       [Multilingual intent and entity
       data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public GetIntentRequest.Builder clearLanguageCode()
       Optional. The language used to access language-specific data.
       If not specified, the agent's default language is used.
       For more information, see
       [Multilingual intent and entity
       data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public GetIntentRequest.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
       Optional. The language used to access language-specific data.
       If not specified, the agent's default language is used.
       For more information, see
       [Multilingual intent and entity
       data](https://cloud.google.com/dialogflow/docs/agents-multilingual#intent-entity).
       
      string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for languageCode to set.
      Returns:
      This builder for chaining.
    • getIntentViewValue

      public int getIntentViewValue()
       Optional. The resource view to apply to the returned intent.
       
      .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntentViewValue in interface GetIntentRequestOrBuilder
      Returns:
      The enum numeric value on the wire for intentView.
    • setIntentViewValue

      public GetIntentRequest.Builder setIntentViewValue(int value)
       Optional. The resource view to apply to the returned intent.
       
      .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for intentView to set.
      Returns:
      This builder for chaining.
    • getIntentView

      public IntentView getIntentView()
       Optional. The resource view to apply to the returned intent.
       
      .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntentView in interface GetIntentRequestOrBuilder
      Returns:
      The intentView.
    • setIntentView

      public GetIntentRequest.Builder setIntentView(IntentView value)
       Optional. The resource view to apply to the returned intent.
       
      .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The intentView to set.
      Returns:
      This builder for chaining.
    • clearIntentView

      public GetIntentRequest.Builder clearIntentView()
       Optional. The resource view to apply to the returned intent.
       
      .google.cloud.dialogflow.v2.IntentView intent_view = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.