Class ExportToolsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportToolsRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.Builder
- All Implemented Interfaces:
ExportToolsRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ExportToolsRequest
public static final class ExportToolsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ExportToolsRequest.Builder>
implements ExportToolsRequestOrBuilder
The request message for [Tools.ExportTools][google.cloud.dialogflow.cx.v3beta1.Tools.ExportTools].Protobuf type
google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllTools(Iterable<String> values) Required.Required.addToolsBytes(com.google.protobuf.ByteString value) Required.build()clear()Optional.Required.Required.Optional.Optional.Optional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getTools(int index) Required.com.google.protobuf.ByteStringgetToolsBytes(int index) Required.booleanOptional.intRequired.com.google.protobuf.ProtocolStringListRequired.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExportToolsRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setDataFormatValue(int value) Optional.Required.setParentBytes(com.google.protobuf.ByteString value) Required.Required.setToolsContentInline(boolean value) Optional.setToolsUri(String value) Optional.setToolsUriBytes(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<ExportToolsRequest.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<ExportToolsRequest.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<ExportToolsRequest.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<ExportToolsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ExportToolsRequest.Builder>
-
mergeFrom
public ExportToolsRequest.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<ExportToolsRequest.Builder>- Throws:
IOException
-
getDestinationCase
- Specified by:
getDestinationCasein interfaceExportToolsRequestOrBuilder
-
clearDestination
-
getParent
Required. The agent to export tools from. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentin interfaceExportToolsRequestOrBuilder- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()Required. The agent to export tools from. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getParentBytesin interfaceExportToolsRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
Required. The agent to export tools from. 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 export tools from. 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 export tools from. 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.
-
getToolsList
public com.google.protobuf.ProtocolStringList getToolsList()Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getToolsListin interfaceExportToolsRequestOrBuilder- Returns:
- A list containing the tools.
-
getToolsCount
public int getToolsCount()Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getToolsCountin interfaceExportToolsRequestOrBuilder- Returns:
- The count of tools.
-
getTools
Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getToolsin interfaceExportToolsRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tools at the given index.
-
getToolsBytes
public com.google.protobuf.ByteString getToolsBytes(int index) Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getToolsBytesin interfaceExportToolsRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tools at the given index.
-
setTools
Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
index- The index to set the value at.value- The tools to set.- Returns:
- This builder for chaining.
-
addTools
Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The tools to add.- Returns:
- This builder for chaining.
-
addAllTools
Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
values- The tools to add.- Returns:
- This builder for chaining.
-
clearTools
Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
addToolsBytes
Required. The name of the tools to export. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`.
repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes of the tools to add.- Returns:
- This builder for chaining.
-
hasToolsUri
public boolean hasToolsUri()Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the tools 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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasToolsUriin interfaceExportToolsRequestOrBuilder- Returns:
- Whether the toolsUri field is set.
-
getToolsUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the tools 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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsUriin interfaceExportToolsRequestOrBuilder- Returns:
- The toolsUri.
-
getToolsUriBytes
public com.google.protobuf.ByteString getToolsUriBytes()Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the tools 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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsUriBytesin interfaceExportToolsRequestOrBuilder- Returns:
- The bytes for toolsUri.
-
setToolsUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the tools 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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The toolsUri to set.- Returns:
- This builder for chaining.
-
clearToolsUri
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the tools 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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setToolsUriBytes
Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to export the tools 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 tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for toolsUri to set.- Returns:
- This builder for chaining.
-
hasToolsContentInline
public boolean hasToolsContentInline()Optional. The option to return the serialized tools inline.
bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasToolsContentInlinein interfaceExportToolsRequestOrBuilder- Returns:
- Whether the toolsContentInline field is set.
-
getToolsContentInline
public boolean getToolsContentInline()Optional. The option to return the serialized tools inline.
bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsContentInlinein interfaceExportToolsRequestOrBuilder- Returns:
- The toolsContentInline.
-
setToolsContentInline
Optional. The option to return the serialized tools inline.
bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The toolsContentInline to set.- Returns:
- This builder for chaining.
-
clearToolsContentInline
Optional. The option to return the serialized tools inline.
bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getDataFormatValue
public int getDataFormatValue()Optional. The data format of the exported tools. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataFormatValuein interfaceExportToolsRequestOrBuilder- Returns:
- The enum numeric value on the wire for dataFormat.
-
setDataFormatValue
Optional. The data format of the exported tools. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.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 tools. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDataFormatin interfaceExportToolsRequestOrBuilder- Returns:
- The dataFormat.
-
setDataFormat
Optional. The data format of the exported tools. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.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 tools. If not specified, `BLOB` is assumed.
.google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-