Class BatchCreateEntitiesRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
- com.google.cloud.dialogflow.v2beta1.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.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder> implements BatchCreateEntitiesRequestOrBuilder
The request message for [EntityTypes.BatchCreateEntities][google.cloud.dialogflow.v2beta1.EntityTypes.BatchCreateEntities].
Protobuf typegoogle.cloud.dialogflow.v2beta1.BatchCreateEntitiesRequest
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
clear
public BatchCreateEntitiesRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
getDefaultInstanceForType
public BatchCreateEntitiesRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchCreateEntitiesRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchCreateEntitiesRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchCreateEntitiesRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
setField
public BatchCreateEntitiesRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
clearField
public BatchCreateEntitiesRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
clearOneof
public BatchCreateEntitiesRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
setRepeatedField
public BatchCreateEntitiesRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
addRepeatedField
public BatchCreateEntitiesRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
mergeFrom
public BatchCreateEntitiesRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCreateEntitiesRequest.Builder>
-
mergeFrom
public BatchCreateEntitiesRequest.Builder mergeFrom(BatchCreateEntitiesRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
mergeFrom
public BatchCreateEntitiesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<BatchCreateEntitiesRequest.Builder>- Throws:
IOException
-
getParent
public String getParent()
Required. The name of the entity type to create entities in. Supported formats: - `projects/<Project ID>/agent/entityTypes/<Entity Type ID>` - `projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type ID>`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceBatchCreateEntitiesRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
Required. The name of the entity type to create entities in. Supported formats: - `projects/<Project ID>/agent/entityTypes/<Entity Type ID>` - `projects/<Project ID>/locations/<Location ID>/agent/entityTypes/<Entity Type ID>`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceBatchCreateEntitiesRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
public BatchCreateEntitiesRequest.Builder setParent(String value)
Required. The name of the entity type to create entities in. Supported formats: - `projects/<Project ID>/agent/entityTypes/<Entity Type ID>` - `projects/<Project ID>/locations/<Location 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. Supported formats: - `projects/<Project ID>/agent/entityTypes/<Entity Type ID>` - `projects/<Project ID>/locations/<Location 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. Supported formats: - `projects/<Project ID>/agent/entityTypes/<Entity Type ID>` - `projects/<Project ID>/locations/<Location 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.v2beta1.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntitiesListin interfaceBatchCreateEntitiesRequestOrBuilder
-
getEntitiesCount
public int getEntitiesCount()
Required. The entities to create.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntitiesCountin interfaceBatchCreateEntitiesRequestOrBuilder
-
getEntities
public EntityType.Entity getEntities(int index)
Required. The entities to create.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntitiesin interfaceBatchCreateEntitiesRequestOrBuilder
-
setEntities
public BatchCreateEntitiesRequest.Builder setEntities(int index, EntityType.Entity value)
Required. The entities to create.
repeated .google.cloud.dialogflow.v2beta1.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.v2beta1.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
-
addEntities
public BatchCreateEntitiesRequest.Builder addEntities(EntityType.Entity value)
Required. The entities to create.
repeated .google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];
-
clearEntities
public BatchCreateEntitiesRequest.Builder clearEntities()
Required. The entities to create.
repeated .google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntitiesOrBuilderin interfaceBatchCreateEntitiesRequestOrBuilder
-
getEntitiesOrBuilderList
public List<? extends EntityType.EntityOrBuilder> getEntitiesOrBuilderList()
Required. The entities to create.
repeated .google.cloud.dialogflow.v2beta1.EntityType.Entity entities = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntitiesOrBuilderListin interfaceBatchCreateEntitiesRequestOrBuilder
-
addEntitiesBuilder
public EntityType.Entity.Builder addEntitiesBuilder()
Required. The entities to create.
repeated .google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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:
getLanguageCodein interfaceBatchCreateEntitiesRequestOrBuilder- 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:
getLanguageCodeBytesin interfaceBatchCreateEntitiesRequestOrBuilder- 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.
-
setUnknownFields
public final BatchCreateEntitiesRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
mergeUnknownFields
public final BatchCreateEntitiesRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<BatchCreateEntitiesRequest.Builder>
-
-