Class ImportEntityTypesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportEntityTypesRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.Builder
- All Implemented Interfaces:
ImportEntityTypesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportEntityTypesRequest
public static final class ImportEntityTypesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImportEntityTypesRequest.Builder>
implements ImportEntityTypesRequestOrBuilder
The request message for [EntityTypes.ImportEntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityTypes.ImportEntityTypes].Protobuf type
google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Uncompressed byte content of entity types.The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from.Required.Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorUncompressed byte content of entity types.Uncompressed byte content of entity types.Uncompressed byte content of entity types.The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from.com.google.protobuf.ByteStringThe [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from.Required.intRequired.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.booleanUncompressed byte content of entity types.booleanThe [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanUncompressed byte content of entity types.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Uncompressed byte content of entity types.setEntityTypesContent(InlineSource.Builder builderForValue) Uncompressed byte content of entity types.setEntityTypesUri(String value) The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from.setEntityTypesUriBytes(com.google.protobuf.ByteString value) The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from.Required.setMergeOptionValue(int value) Required.Required.setParentBytes(com.google.protobuf.ByteString value) Required.setTargetEntityType(String value) Optional.setTargetEntityTypeBytes(com.google.protobuf.ByteString value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImportEntityTypesRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImportEntityTypesRequest.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.GeneratedMessage.Builder<ImportEntityTypesRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportEntityTypesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportEntityTypesRequest.Builder>
-
mergeFrom
public ImportEntityTypesRequest.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<ImportEntityTypesRequest.Builder>- Throws:
IOException
-
getEntityTypesCase
- Specified by:
getEntityTypesCasein interfaceImportEntityTypesRequestOrBuilder
-
clearEntityTypes
-
getParent
Required. The agent to import the entity types into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceImportEntityTypesRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The agent to import the entity types into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceImportEntityTypesRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The agent to import the entity types into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
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 agent to import the entity types into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setParentBytes
Required. The agent to import the entity types into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
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.
-
hasEntityTypesUri
public boolean hasEntityTypesUri()The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
string entity_types_uri = 2;- Specified by:
hasEntityTypesUriin interfaceImportEntityTypesRequestOrBuilder- Returns:
- Whether the entityTypesUri field is set.
-
getEntityTypesUri
The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
string entity_types_uri = 2;- Specified by:
getEntityTypesUriin interfaceImportEntityTypesRequestOrBuilder- Returns:
- The entityTypesUri.
-
getEntityTypesUriBytes
public com.google.protobuf.ByteString getEntityTypesUriBytes()The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
string entity_types_uri = 2;- Specified by:
getEntityTypesUriBytesin interfaceImportEntityTypesRequestOrBuilder- Returns:
- The bytes for entityTypesUri.
-
setEntityTypesUri
The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
string entity_types_uri = 2;- Parameters:
value- The entityTypesUri to set.- Returns:
- This builder for chaining.
-
clearEntityTypesUri
The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
string entity_types_uri = 2;- Returns:
- This builder for chaining.
-
setEntityTypesUriBytes
public ImportEntityTypesRequest.Builder setEntityTypesUriBytes(com.google.protobuf.ByteString value) The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to import entity types from. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see [Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
string entity_types_uri = 2;- Parameters:
value- The bytes for entityTypesUri to set.- Returns:
- This builder for chaining.
-
hasEntityTypesContent
public boolean hasEntityTypesContent()Uncompressed byte content of entity types.
.google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;- Specified by:
hasEntityTypesContentin interfaceImportEntityTypesRequestOrBuilder- Returns:
- Whether the entityTypesContent field is set.
-
getEntityTypesContent
Uncompressed byte content of entity types.
.google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;- Specified by:
getEntityTypesContentin interfaceImportEntityTypesRequestOrBuilder- Returns:
- The entityTypesContent.
-
setEntityTypesContent
Uncompressed byte content of entity types.
.google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3; -
setEntityTypesContent
Uncompressed byte content of entity types.
.google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3; -
mergeEntityTypesContent
Uncompressed byte content of entity types.
.google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3; -
clearEntityTypesContent
Uncompressed byte content of entity types.
.google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3; -
getEntityTypesContentBuilder
Uncompressed byte content of entity types.
.google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3; -
getEntityTypesContentOrBuilder
Uncompressed byte content of entity types.
.google.cloud.dialogflow.cx.v3beta1.InlineSource entity_types_content = 3;- Specified by:
getEntityTypesContentOrBuilderin interfaceImportEntityTypesRequestOrBuilder
-
getMergeOptionValue
public int getMergeOptionValue()Required. Merge option for importing entity types.
.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMergeOptionValuein interfaceImportEntityTypesRequestOrBuilder- Returns:
- The enum numeric value on the wire for mergeOption.
-
setMergeOptionValue
Required. Merge option for importing entity types.
.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for mergeOption to set.- Returns:
- This builder for chaining.
-
getMergeOption
Required. Merge option for importing entity types.
.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMergeOptionin interfaceImportEntityTypesRequestOrBuilder- Returns:
- The mergeOption.
-
setMergeOption
Required. Merge option for importing entity types.
.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The mergeOption to set.- Returns:
- This builder for chaining.
-
clearMergeOption
Required. Merge option for importing entity types.
.google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.MergeOption merge_option = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getTargetEntityType
Optional. The target entity type to import into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`. If set, there should be only one entity type included in [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types], of which the type should match the type of the target entity type. All [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the imported entity type will be added to the target entity type.
string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getTargetEntityTypein interfaceImportEntityTypesRequestOrBuilder- Returns:
- The targetEntityType.
-
getTargetEntityTypeBytes
public com.google.protobuf.ByteString getTargetEntityTypeBytes()Optional. The target entity type to import into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`. If set, there should be only one entity type included in [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types], of which the type should match the type of the target entity type. All [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the imported entity type will be added to the target entity type.
string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getTargetEntityTypeBytesin interfaceImportEntityTypesRequestOrBuilder- Returns:
- The bytes for targetEntityType.
-
setTargetEntityType
Optional. The target entity type to import into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`. If set, there should be only one entity type included in [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types], of which the type should match the type of the target entity type. All [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the imported entity type will be added to the target entity type.
string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The targetEntityType to set.- Returns:
- This builder for chaining.
-
clearTargetEntityType
Optional. The target entity type to import into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`. If set, there should be only one entity type included in [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types], of which the type should match the type of the target entity type. All [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the imported entity type will be added to the target entity type.
string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTargetEntityTypeBytes
public ImportEntityTypesRequest.Builder setTargetEntityTypeBytes(com.google.protobuf.ByteString value) Optional. The target entity type to import into. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entity_types/<EntityTypeID>`. If set, there should be only one entity type included in [entity_types][google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesRequest.entity_types], of which the type should match the type of the target entity type. All [entities][google.cloud.dialogflow.cx.v3beta1.EntityType.entities] in the imported entity type will be added to the target entity type.
string target_entity_type = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for targetEntityType to set.- Returns:
- This builder for chaining.
-