Class BatchUpdateIntentsRequest.Builder

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

public static final class BatchUpdateIntentsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchUpdateIntentsRequest.Builder> implements BatchUpdateIntentsRequestOrBuilder
Protobuf type google.cloud.dialogflow.v2.BatchUpdateIntentsRequest
  • 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<BatchUpdateIntentsRequest.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<BatchUpdateIntentsRequest.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<BatchUpdateIntentsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BatchUpdateIntentsRequest.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<BatchUpdateIntentsRequest.Builder>
      Throws:
      IOException
    • getIntentBatchCase

      public BatchUpdateIntentsRequest.IntentBatchCase getIntentBatchCase()
      Specified by:
      getIntentBatchCase in interface BatchUpdateIntentsRequestOrBuilder
    • clearIntentBatch

      public BatchUpdateIntentsRequest.Builder clearIntentBatch()
    • getParent

      public String getParent()
       Required. The name of the agent to update or create intents in.
       Format: `projects/<Project ID>/agent`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface BatchUpdateIntentsRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

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

      public BatchUpdateIntentsRequest.Builder setParent(String value)
       Required. The name of the agent to update or create intents in.
       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 BatchUpdateIntentsRequest.Builder clearParent()
       Required. The name of the agent to update or create intents in.
       Format: `projects/<Project ID>/agent`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public BatchUpdateIntentsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the agent to update or create intents in.
       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.
    • hasIntentBatchUri

      public boolean hasIntentBatchUri()
       The URI to a Google Cloud Storage file containing intents to update or
       create. The file format can either be a serialized proto (of IntentBatch
       type) or JSON object. Note: The URI must start with "gs://".
       
      string intent_batch_uri = 2;
      Specified by:
      hasIntentBatchUri in interface BatchUpdateIntentsRequestOrBuilder
      Returns:
      Whether the intentBatchUri field is set.
    • getIntentBatchUri

      public String getIntentBatchUri()
       The URI to a Google Cloud Storage file containing intents to update or
       create. The file format can either be a serialized proto (of IntentBatch
       type) or JSON object. Note: The URI must start with "gs://".
       
      string intent_batch_uri = 2;
      Specified by:
      getIntentBatchUri in interface BatchUpdateIntentsRequestOrBuilder
      Returns:
      The intentBatchUri.
    • getIntentBatchUriBytes

      public com.google.protobuf.ByteString getIntentBatchUriBytes()
       The URI to a Google Cloud Storage file containing intents to update or
       create. The file format can either be a serialized proto (of IntentBatch
       type) or JSON object. Note: The URI must start with "gs://".
       
      string intent_batch_uri = 2;
      Specified by:
      getIntentBatchUriBytes in interface BatchUpdateIntentsRequestOrBuilder
      Returns:
      The bytes for intentBatchUri.
    • setIntentBatchUri

      public BatchUpdateIntentsRequest.Builder setIntentBatchUri(String value)
       The URI to a Google Cloud Storage file containing intents to update or
       create. The file format can either be a serialized proto (of IntentBatch
       type) or JSON object. Note: The URI must start with "gs://".
       
      string intent_batch_uri = 2;
      Parameters:
      value - The intentBatchUri to set.
      Returns:
      This builder for chaining.
    • clearIntentBatchUri

      public BatchUpdateIntentsRequest.Builder clearIntentBatchUri()
       The URI to a Google Cloud Storage file containing intents to update or
       create. The file format can either be a serialized proto (of IntentBatch
       type) or JSON object. Note: The URI must start with "gs://".
       
      string intent_batch_uri = 2;
      Returns:
      This builder for chaining.
    • setIntentBatchUriBytes

      public BatchUpdateIntentsRequest.Builder setIntentBatchUriBytes(com.google.protobuf.ByteString value)
       The URI to a Google Cloud Storage file containing intents to update or
       create. The file format can either be a serialized proto (of IntentBatch
       type) or JSON object. Note: The URI must start with "gs://".
       
      string intent_batch_uri = 2;
      Parameters:
      value - The bytes for intentBatchUri to set.
      Returns:
      This builder for chaining.
    • hasIntentBatchInline

      public boolean hasIntentBatchInline()
       The collection of intents to update or create.
       
      .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3;
      Specified by:
      hasIntentBatchInline in interface BatchUpdateIntentsRequestOrBuilder
      Returns:
      Whether the intentBatchInline field is set.
    • getIntentBatchInline

      public IntentBatch getIntentBatchInline()
       The collection of intents to update or create.
       
      .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3;
      Specified by:
      getIntentBatchInline in interface BatchUpdateIntentsRequestOrBuilder
      Returns:
      The intentBatchInline.
    • setIntentBatchInline

      public BatchUpdateIntentsRequest.Builder setIntentBatchInline(IntentBatch value)
       The collection of intents to update or create.
       
      .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3;
    • setIntentBatchInline

      public BatchUpdateIntentsRequest.Builder setIntentBatchInline(IntentBatch.Builder builderForValue)
       The collection of intents to update or create.
       
      .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3;
    • mergeIntentBatchInline

      public BatchUpdateIntentsRequest.Builder mergeIntentBatchInline(IntentBatch value)
       The collection of intents to update or create.
       
      .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3;
    • clearIntentBatchInline

      public BatchUpdateIntentsRequest.Builder clearIntentBatchInline()
       The collection of intents to update or create.
       
      .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3;
    • getIntentBatchInlineBuilder

      public IntentBatch.Builder getIntentBatchInlineBuilder()
       The collection of intents to update or create.
       
      .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3;
    • getIntentBatchInlineOrBuilder

      public IntentBatchOrBuilder getIntentBatchInlineOrBuilder()
       The collection of intents to update or create.
       
      .google.cloud.dialogflow.v2.IntentBatch intent_batch_inline = 3;
      Specified by:
      getIntentBatchInlineOrBuilder in interface BatchUpdateIntentsRequestOrBuilder
    • 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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCode in interface BatchUpdateIntentsRequestOrBuilder
      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 = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLanguageCodeBytes in interface BatchUpdateIntentsRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

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

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

      public BatchUpdateIntentsRequest.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 = 4 [(.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface BatchUpdateIntentsRequestOrBuilder
      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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface BatchUpdateIntentsRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

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

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

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

      public BatchUpdateIntentsRequest.Builder clearUpdateMask()
       Optional. The mask to control which fields get updated.
       
      .google.protobuf.FieldMask update_mask = 5 [(.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 = 5 [(.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 = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface BatchUpdateIntentsRequestOrBuilder
    • getIntentViewValue

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

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

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

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