Class ExportIntentsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportIntentsRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.Builder
- All Implemented Interfaces:
ExportIntentsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExportIntentsRequest
public static final class ExportIntentsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExportIntentsRequest.Builder>
implements ExportIntentsRequestOrBuilder
The request message for [Intents.ExportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ExportIntents].Protobuf type
google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllIntents(Iterable<String> values) Required.addIntents(String value) Required.addIntentsBytes(com.google.protobuf.ByteString value) Required.build()clear()Optional.Required.Optional.Optional.Required.Optional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetIntents(int index) Required.com.google.protobuf.ByteStringgetIntentsBytes(int index) Required.booleanOptional.intRequired.com.google.protobuf.ProtocolStringListRequired.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExportIntentsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setDataFormatValue(int value) Optional.setIntents(int index, String value) Required.setIntentsContentInline(boolean value) Optional.setIntentsUri(String value) Optional.setIntentsUriBytes(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<ExportIntentsRequest.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<ExportIntentsRequest.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<ExportIntentsRequest.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<ExportIntentsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExportIntentsRequest.Builder>
-
mergeFrom
public ExportIntentsRequest.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<ExportIntentsRequest.Builder>- Throws:
IOException
-
getDestinationCase
- Specified by:
getDestinationCasein interfaceExportIntentsRequestOrBuilder
-
clearDestination
-
getParent
Required. The name of the parent agent to export intents. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceExportIntentsRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The name of the parent agent to export intents. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceExportIntentsRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The name of the parent agent to export intents. 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 intents. 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 intents. 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.
-
getIntentsList
public com.google.protobuf.ProtocolStringList getIntentsList()Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIntentsListin interfaceExportIntentsRequestOrBuilder- Returns:
- A list containing the intents.
-
getIntentsCount
public int getIntentsCount()Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIntentsCountin interfaceExportIntentsRequestOrBuilder- Returns:
- The count of intents.
-
getIntents
Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIntentsin interfaceExportIntentsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The intents at the given index.
-
getIntentsBytes
public com.google.protobuf.ByteString getIntentsBytes(int index) Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIntentsBytesin interfaceExportIntentsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the intents at the given index.
-
setIntents
Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The intents to set.- Returns:
- This builder for chaining.
-
addIntents
Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The intents to add.- Returns:
- This builder for chaining.
-
addAllIntents
Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The intents to add.- Returns:
- This builder for chaining.
-
clearIntents
Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
addIntentsBytes
Required. The name of the intents to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes of the intents to add.- Returns:
- This builder for chaining.
-
hasIntentsUri
public boolean hasIntentsUri()Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIntentsUriin interfaceExportIntentsRequestOrBuilder- Returns:
- Whether the intentsUri field is set.
-
getIntentsUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIntentsUriin interfaceExportIntentsRequestOrBuilder- Returns:
- The intentsUri.
-
getIntentsUriBytes
public com.google.protobuf.ByteString getIntentsUriBytes()Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIntentsUriBytesin interfaceExportIntentsRequestOrBuilder- Returns:
- The bytes for intentsUri.
-
setIntentsUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The intentsUri to set.- Returns:
- This builder for chaining.
-
clearIntentsUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setIntentsUriBytes
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the intents 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 intents_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for intentsUri to set.- Returns:
- This builder for chaining.
-
hasIntentsContentInline
public boolean hasIntentsContentInline()Optional. The option to return the serialized intents inline.
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasIntentsContentInlinein interfaceExportIntentsRequestOrBuilder- Returns:
- Whether the intentsContentInline field is set.
-
getIntentsContentInline
public boolean getIntentsContentInline()Optional. The option to return the serialized intents inline.
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getIntentsContentInlinein interfaceExportIntentsRequestOrBuilder- Returns:
- The intentsContentInline.
-
setIntentsContentInline
Optional. The option to return the serialized intents inline.
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The intentsContentInline to set.- Returns:
- This builder for chaining.
-
clearIntentsContentInline
Optional. The option to return the serialized intents inline.
bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getDataFormatValue
public int getDataFormatValue()Optional. The data format of the exported intents. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataFormatValuein interfaceExportIntentsRequestOrBuilder- Returns:
- The enum numeric value on the wire for dataFormat.
-
setDataFormatValue
Optional. The data format of the exported intents. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.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 intents. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataFormatin interfaceExportIntentsRequestOrBuilder- Returns:
- The dataFormat.
-
setDataFormat
Optional. The data format of the exported intents. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.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 intents. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-