Class BatchCreateEntitiesRequest.Builder

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

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

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

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

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

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

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

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

      public BatchCreateEntitiesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the entity type to create entities in. Format:
       `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
       
      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.
    • getEntitiesList

      public List<EntityType.Entity> getEntitiesList()
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntitiesList in interface BatchCreateEntitiesRequestOrBuilder
    • getEntitiesCount

      public int getEntitiesCount()
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntitiesCount in interface BatchCreateEntitiesRequestOrBuilder
    • getEntities

      public EntityType.Entity getEntities(int index)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntities in interface BatchCreateEntitiesRequestOrBuilder
    • setEntities

      public BatchCreateEntitiesRequest.Builder setEntities(int index, EntityType.Entity value)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • setEntities

      public BatchCreateEntitiesRequest.Builder setEntities(int index, EntityType.Entity.Builder builderForValue)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • addEntities

       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • addEntities

      public BatchCreateEntitiesRequest.Builder addEntities(int index, EntityType.Entity value)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • addEntities

      public BatchCreateEntitiesRequest.Builder addEntities(EntityType.Entity.Builder builderForValue)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • addEntities

      public BatchCreateEntitiesRequest.Builder addEntities(int index, EntityType.Entity.Builder builderForValue)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllEntities

      public BatchCreateEntitiesRequest.Builder addAllEntities(Iterable<? extends EntityType.Entity> values)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearEntities

      public BatchCreateEntitiesRequest.Builder clearEntities()
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeEntities

      public BatchCreateEntitiesRequest.Builder removeEntities(int index)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • getEntitiesBuilder

      public EntityType.Entity.Builder getEntitiesBuilder(int index)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • getEntitiesOrBuilder

      public EntityType.EntityOrBuilder getEntitiesOrBuilder(int index)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntitiesOrBuilder in interface BatchCreateEntitiesRequestOrBuilder
    • getEntitiesOrBuilderList

      public List<? extends EntityType.EntityOrBuilder> getEntitiesOrBuilderList()
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEntitiesOrBuilderList in interface BatchCreateEntitiesRequestOrBuilder
    • addEntitiesBuilder

      public EntityType.Entity.Builder addEntitiesBuilder()
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • addEntitiesBuilder

      public EntityType.Entity.Builder addEntitiesBuilder(int index)
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • getEntitiesBuilderList

      public List<EntityType.Entity.Builder> getEntitiesBuilderList()
       Required. The entities to create.
       
      repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
    • 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 BatchCreateEntitiesRequestOrBuilder
      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 BatchCreateEntitiesRequestOrBuilder
      Returns:
      The bytes for languageCode.
    • setLanguageCode

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