Class CreateIntentRequest.Builder

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

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

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

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

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

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

      public CreateIntentRequest.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<CreateIntentRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The agent to create a intent for.
       Format: `projects/<Project ID>/agent`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateIntentRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The agent to create a intent for.
       Format: `projects/<Project ID>/agent`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateIntentRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateIntentRequest.Builder setParent(String value)
       Required. The agent to create a intent for.
       Format: `projects/<Project ID>/agent`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateIntentRequest.Builder clearParent()
       Required. The agent to create a intent for.
       Format: `projects/<Project ID>/agent`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateIntentRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The agent to create a intent for.
       Format: `projects/<Project ID>/agent`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasIntent

      public boolean hasIntent()
       Required. The intent to create.
       
      .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasIntent in interface CreateIntentRequestOrBuilder
      Returns:
      Whether the intent field is set.
    • getIntent

      public Intent getIntent()
       Required. The intent to create.
       
      .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntent in interface CreateIntentRequestOrBuilder
      Returns:
      The intent.
    • setIntent

      public CreateIntentRequest.Builder setIntent(Intent value)
       Required. The intent to create.
       
      .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED];
    • setIntent

      public CreateIntentRequest.Builder setIntent(Intent.Builder builderForValue)
       Required. The intent to create.
       
      .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeIntent

      public CreateIntentRequest.Builder mergeIntent(Intent value)
       Required. The intent to create.
       
      .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearIntent

      public CreateIntentRequest.Builder clearIntent()
       Required. The intent to create.
       
      .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED];
    • getIntentBuilder

      public Intent.Builder getIntentBuilder()
       Required. The intent to create.
       
      .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED];
    • getIntentOrBuilder

      public IntentOrBuilder getIntentOrBuilder()
       Required. The intent to create.
       
      .google.cloud.dialogflow.v2.Intent intent = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntentOrBuilder in interface CreateIntentRequestOrBuilder
    • 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface CreateIntentRequestOrBuilder
      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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface CreateIntentRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public CreateIntentRequest.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The languageCode to set.
      Returns:
      This builder for chaining.
    • clearLanguageCode

      public CreateIntentRequest.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLanguageCodeBytes

      public CreateIntentRequest.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 = 3 [(.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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntentViewValue in interface CreateIntentRequestOrBuilder
      Returns:
      The enum numeric value on the wire for intentView.
    • setIntentViewValue

      public CreateIntentRequest.Builder setIntentViewValue(int value)
       Optional. The resource view to apply to the returned intent.
       
      .google.cloud.dialogflow.v2.IntentView intent_view = 4 [(.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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntentView in interface CreateIntentRequestOrBuilder
      Returns:
      The intentView.
    • setIntentView

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

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