Class BatchUpdateEntityTypesRequest.Builder

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

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

      public BatchUpdateEntityTypesRequest 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 BatchUpdateEntityTypesRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public BatchUpdateEntityTypesRequest.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<BatchUpdateEntityTypesRequest.Builder>
      Throws:
      IOException
    • getEntityTypeBatchCase

      public BatchUpdateEntityTypesRequest.EntityTypeBatchCase getEntityTypeBatchCase()
      Specified by:
      getEntityTypeBatchCase in interface BatchUpdateEntityTypesRequestOrBuilder
    • clearEntityTypeBatch

      public BatchUpdateEntityTypesRequest.Builder clearEntityTypeBatch()
    • getParent

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

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

       Required. The name of the agent to update or create entity types 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

       Required. The name of the agent to update or create entity types 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 BatchUpdateEntityTypesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the agent to update or create entity types 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.
    • hasEntityTypeBatchUri

      public boolean hasEntityTypeBatchUri()
       The URI to a Google Cloud Storage file containing entity types to update
       or create. The file format can either be a serialized proto (of
       EntityBatch type) or a JSON object. Note: The URI must start with
       "gs://".
       
      string entity_type_batch_uri = 2;
      Specified by:
      hasEntityTypeBatchUri in interface BatchUpdateEntityTypesRequestOrBuilder
      Returns:
      Whether the entityTypeBatchUri field is set.
    • getEntityTypeBatchUri

      public String getEntityTypeBatchUri()
       The URI to a Google Cloud Storage file containing entity types to update
       or create. The file format can either be a serialized proto (of
       EntityBatch type) or a JSON object. Note: The URI must start with
       "gs://".
       
      string entity_type_batch_uri = 2;
      Specified by:
      getEntityTypeBatchUri in interface BatchUpdateEntityTypesRequestOrBuilder
      Returns:
      The entityTypeBatchUri.
    • getEntityTypeBatchUriBytes

      public com.google.protobuf.ByteString getEntityTypeBatchUriBytes()
       The URI to a Google Cloud Storage file containing entity types to update
       or create. The file format can either be a serialized proto (of
       EntityBatch type) or a JSON object. Note: The URI must start with
       "gs://".
       
      string entity_type_batch_uri = 2;
      Specified by:
      getEntityTypeBatchUriBytes in interface BatchUpdateEntityTypesRequestOrBuilder
      Returns:
      The bytes for entityTypeBatchUri.
    • setEntityTypeBatchUri

      public BatchUpdateEntityTypesRequest.Builder setEntityTypeBatchUri(String value)
       The URI to a Google Cloud Storage file containing entity types to update
       or create. The file format can either be a serialized proto (of
       EntityBatch type) or a JSON object. Note: The URI must start with
       "gs://".
       
      string entity_type_batch_uri = 2;
      Parameters:
      value - The entityTypeBatchUri to set.
      Returns:
      This builder for chaining.
    • clearEntityTypeBatchUri

      public BatchUpdateEntityTypesRequest.Builder clearEntityTypeBatchUri()
       The URI to a Google Cloud Storage file containing entity types to update
       or create. The file format can either be a serialized proto (of
       EntityBatch type) or a JSON object. Note: The URI must start with
       "gs://".
       
      string entity_type_batch_uri = 2;
      Returns:
      This builder for chaining.
    • setEntityTypeBatchUriBytes

      public BatchUpdateEntityTypesRequest.Builder setEntityTypeBatchUriBytes(com.google.protobuf.ByteString value)
       The URI to a Google Cloud Storage file containing entity types to update
       or create. The file format can either be a serialized proto (of
       EntityBatch type) or a JSON object. Note: The URI must start with
       "gs://".
       
      string entity_type_batch_uri = 2;
      Parameters:
      value - The bytes for entityTypeBatchUri to set.
      Returns:
      This builder for chaining.
    • hasEntityTypeBatchInline

      public boolean hasEntityTypeBatchInline()
       The collection of entity types to update or create.
       
      .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
      Specified by:
      hasEntityTypeBatchInline in interface BatchUpdateEntityTypesRequestOrBuilder
      Returns:
      Whether the entityTypeBatchInline field is set.
    • getEntityTypeBatchInline

      public EntityTypeBatch getEntityTypeBatchInline()
       The collection of entity types to update or create.
       
      .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
      Specified by:
      getEntityTypeBatchInline in interface BatchUpdateEntityTypesRequestOrBuilder
      Returns:
      The entityTypeBatchInline.
    • setEntityTypeBatchInline

      public BatchUpdateEntityTypesRequest.Builder setEntityTypeBatchInline(EntityTypeBatch value)
       The collection of entity types to update or create.
       
      .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
    • setEntityTypeBatchInline

      public BatchUpdateEntityTypesRequest.Builder setEntityTypeBatchInline(EntityTypeBatch.Builder builderForValue)
       The collection of entity types to update or create.
       
      .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
    • mergeEntityTypeBatchInline

      public BatchUpdateEntityTypesRequest.Builder mergeEntityTypeBatchInline(EntityTypeBatch value)
       The collection of entity types to update or create.
       
      .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
    • clearEntityTypeBatchInline

      public BatchUpdateEntityTypesRequest.Builder clearEntityTypeBatchInline()
       The collection of entity types to update or create.
       
      .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
    • getEntityTypeBatchInlineBuilder

      public EntityTypeBatch.Builder getEntityTypeBatchInlineBuilder()
       The collection of entity types to update or create.
       
      .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
    • getEntityTypeBatchInlineOrBuilder

      public EntityTypeBatchOrBuilder getEntityTypeBatchInlineOrBuilder()
       The collection of entity types to update or create.
       
      .google.cloud.dialogflow.v2.EntityTypeBatch entity_type_batch_inline = 3;
      Specified by:
      getEntityTypeBatchInlineOrBuilder in interface BatchUpdateEntityTypesRequestOrBuilder
    • 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 BatchUpdateEntityTypesRequestOrBuilder
      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 BatchUpdateEntityTypesRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

      public BatchUpdateEntityTypesRequest.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 BatchUpdateEntityTypesRequest.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 BatchUpdateEntityTypesRequest.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 BatchUpdateEntityTypesRequestOrBuilder
      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 BatchUpdateEntityTypesRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public BatchUpdateEntityTypesRequest.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 BatchUpdateEntityTypesRequest.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 BatchUpdateEntityTypesRequest.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 BatchUpdateEntityTypesRequest.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 BatchUpdateEntityTypesRequestOrBuilder