Class ExportEntityTypesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportEntityTypesRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.Builder
- All Implemented Interfaces:
ExportEntityTypesRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExportEntityTypesRequest
public static final class ExportEntityTypesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExportEntityTypesRequest.Builder>
implements ExportEntityTypesRequestOrBuilder
The request message for [EntityTypes.ExportEntityTypes][google.cloud.dialogflow.cx.v3beta1.EntityTypes.ExportEntityTypes].Protobuf type
google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllEntityTypes(Iterable<String> values) Required.addEntityTypes(String value) Required.addEntityTypesBytes(com.google.protobuf.ByteString value) Required.build()clear()Optional.Required.Optional.Optional.Optional.Required.Optional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEntityTypes(int index) Required.com.google.protobuf.ByteStringgetEntityTypesBytes(int index) Required.booleanOptional.intRequired.com.google.protobuf.ProtocolStringListRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setDataFormatValue(int value) Optional.setEntityTypes(int index, String value) Required.setEntityTypesContentInline(boolean value) Optional.setEntityTypesUri(String value) Optional.setEntityTypesUriBytes(com.google.protobuf.ByteString value) Optional.setLanguageCode(String value) Optional.setLanguageCodeBytes(com.google.protobuf.ByteString value) Optional.Required.setParentBytes(com.google.protobuf.ByteString value) Required.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<ExportEntityTypesRequest.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<ExportEntityTypesRequest.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<ExportEntityTypesRequest.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<ExportEntityTypesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExportEntityTypesRequest.Builder>
-
mergeFrom
public ExportEntityTypesRequest.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<ExportEntityTypesRequest.Builder>- Throws:
IOException
-
getDestinationCase
- Specified by:
getDestinationCasein interfaceExportEntityTypesRequestOrBuilder
-
clearDestination
-
getParent
Required. The name of the parent agent to export entity types. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceExportEntityTypesRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The name of the parent agent to export entity types. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceExportEntityTypesRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The name of the parent agent to export entity types. 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 name of the parent agent to export entity types. 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 name of the parent agent to export entity types. 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.
-
getEntityTypesList
public com.google.protobuf.ProtocolStringList getEntityTypesList()Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntityTypesListin interfaceExportEntityTypesRequestOrBuilder- Returns:
- A list containing the entityTypes.
-
getEntityTypesCount
public int getEntityTypesCount()Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntityTypesCountin interfaceExportEntityTypesRequestOrBuilder- Returns:
- The count of entityTypes.
-
getEntityTypes
Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntityTypesin interfaceExportEntityTypesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The entityTypes at the given index.
-
getEntityTypesBytes
public com.google.protobuf.ByteString getEntityTypesBytes(int index) Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEntityTypesBytesin interfaceExportEntityTypesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the entityTypes at the given index.
-
setEntityTypes
Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The entityTypes to set.- Returns:
- This builder for chaining.
-
addEntityTypes
Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The entityTypes to add.- Returns:
- This builder for chaining.
-
addAllEntityTypes
Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The entityTypes to add.- Returns:
- This builder for chaining.
-
clearEntityTypes
Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addEntityTypesBytes
Required. The name of the entity types to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>`.
repeated string entity_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the entityTypes to add.- Returns:
- This builder for chaining.
-
hasEntityTypesUri
public boolean hasEntityTypesUri()Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEntityTypesUriin interfaceExportEntityTypesRequestOrBuilder- Returns:
- Whether the entityTypesUri field is set.
-
getEntityTypesUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypesUriin interfaceExportEntityTypesRequestOrBuilder- Returns:
- The entityTypesUri.
-
getEntityTypesUriBytes
public com.google.protobuf.ByteString getEntityTypesUriBytes()Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypesUriBytesin interfaceExportEntityTypesRequestOrBuilder- Returns:
- The bytes for entityTypesUri.
-
setEntityTypesUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The entityTypesUri to set.- Returns:
- This builder for chaining.
-
clearEntityTypesUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setEntityTypesUriBytes
public ExportEntityTypesRequest.Builder setEntityTypesUriBytes(com.google.protobuf.ByteString value) Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the entity types to. The format of this URI must be `gs://<bucket-name>/<object-name>`. Dialogflow performs a write operation for the Cloud Storage object on the caller's behalf, so your request authentication must have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for entityTypesUri to set.- Returns:
- This builder for chaining.
-
hasEntityTypesContentInline
public boolean hasEntityTypesContentInline()Optional. The option to return the serialized entity types inline.
bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEntityTypesContentInlinein interfaceExportEntityTypesRequestOrBuilder- Returns:
- Whether the entityTypesContentInline field is set.
-
getEntityTypesContentInline
public boolean getEntityTypesContentInline()Optional. The option to return the serialized entity types inline.
bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEntityTypesContentInlinein interfaceExportEntityTypesRequestOrBuilder- Returns:
- The entityTypesContentInline.
-
setEntityTypesContentInline
Optional. The option to return the serialized entity types inline.
bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The entityTypesContentInline to set.- Returns:
- This builder for chaining.
-
clearEntityTypesContentInline
Optional. The option to return the serialized entity types inline.
bool entity_types_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getDataFormatValue
public int getDataFormatValue()Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataFormatValuein interfaceExportEntityTypesRequestOrBuilder- Returns:
- The enum numeric value on the wire for dataFormat.
-
setDataFormatValue
Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for dataFormat to set.- Returns:
- This builder for chaining.
-
getDataFormat
Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataFormatin interfaceExportEntityTypesRequestOrBuilder- Returns:
- The dataFormat.
-
setDataFormat
Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The dataFormat to set.- Returns:
- This builder for chaining.
-
clearDataFormat
Optional. The data format of the exported entity types. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getLanguageCode
Optional. The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodein interfaceExportEntityTypesRequestOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public com.google.protobuf.ByteString getLanguageCodeBytes()Optional. The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLanguageCodeBytesin interfaceExportEntityTypesRequestOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
Optional. The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
Optional. The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
Optional. The language to retrieve the entity type for. The following fields are language dependent: * `EntityType.entities.value` * `EntityType.entities.synonyms` * `EntityType.excluded_phrases.value` If not specified, all language dependent fields will be retrieved. [Many languages](https://cloud.google.com/dialogflow/docs/reference/language) are supported. Note: languages must be enabled in the agent before they can be used.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-