Class UpdateIntentRequest.Builder

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

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

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

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

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

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

      public UpdateIntentRequest.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<UpdateIntentRequest.Builder>
      Throws:
      IOException
    • hasIntent

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

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

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

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

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

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

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

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

      public UpdateIntentRequest.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 UpdateIntentRequest.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 UpdateIntentRequest.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.
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpdateIntentRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpdateIntentRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateIntentRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpdateIntentRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpdateIntentRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpdateIntentRequest.Builder clearUpdateMask()
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateIntentRequestOrBuilder
    • 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 UpdateIntentRequestOrBuilder
      Returns:
      The enum numeric value on the wire for intentView.
    • setIntentViewValue

      public UpdateIntentRequest.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 UpdateIntentRequestOrBuilder
      Returns:
      The intentView.
    • setIntentView

      public UpdateIntentRequest.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 UpdateIntentRequest.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.