Class ExportToolsRequest.Builder (0.52.0)

public static final class ExportToolsRequest.Builder extends GeneratedMessageV3.Builder<ExportToolsRequest.Builder> implements ExportToolsRequestOrBuilder

The request message for Tools.ExportTools.

Protobuf type google.cloud.dialogflow.cx.v3beta1.ExportToolsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTools(Iterable<String> values)

public ExportToolsRequest.Builder addAllTools(Iterable<String> values)

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The tools to add.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportToolsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

addTools(String value)

public ExportToolsRequest.Builder addTools(String value)

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The tools to add.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

addToolsBytes(ByteString value)

public ExportToolsRequest.Builder addToolsBytes(ByteString value)

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the tools to add.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

build()

public ExportToolsRequest build()
Returns
TypeDescription
ExportToolsRequest

buildPartial()

public ExportToolsRequest buildPartial()
Returns
TypeDescription
ExportToolsRequest

clear()

public ExportToolsRequest.Builder clear()
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

clearDataFormat()

public ExportToolsRequest.Builder 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
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

clearDestination()

public ExportToolsRequest.Builder clearDestination()
Returns
TypeDescription
ExportToolsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ExportToolsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportToolsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

clearParent()

public ExportToolsRequest.Builder clearParent()

Required. The agent to export tools from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

clearTools()

public ExportToolsRequest.Builder clearTools()

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

clearToolsContentInline()

public ExportToolsRequest.Builder clearToolsContentInline()

Optional. The option to return the serialized tools inline.

bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

clearToolsUri()

public ExportToolsRequest.Builder clearToolsUri()

Optional. The Google Cloud Storage 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.

string tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

clone()

public ExportToolsRequest.Builder clone()
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

getDataFormat()

public ExportToolsRequest.DataFormat 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];

Returns
TypeDescription
ExportToolsRequest.DataFormat

The dataFormat.

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];

Returns
TypeDescription
int

The enum numeric value on the wire for dataFormat.

getDefaultInstanceForType()

public ExportToolsRequest getDefaultInstanceForType()
Returns
TypeDescription
ExportToolsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationCase()

public ExportToolsRequest.DestinationCase getDestinationCase()
Returns
TypeDescription
ExportToolsRequest.DestinationCase

getParent()

public String getParent()

Required. The agent to export tools from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The agent to export tools from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

getTools(int index)

public String getTools(int index)

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The tools at the given index.

getToolsBytes(int index)

public ByteString getToolsBytes(int index)

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tools at the given index.

getToolsContentInline()

public boolean getToolsContentInline()

Optional. The option to return the serialized tools inline.

bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The toolsContentInline.

getToolsCount()

public int getToolsCount()

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of tools.

getToolsList()

public ProtocolStringList getToolsList()

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the tools.

getToolsUri()

public String getToolsUri()

Optional. The Google Cloud Storage 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.

string tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The toolsUri.

getToolsUriBytes()

public ByteString getToolsUriBytes()

Optional. The Google Cloud Storage 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.

string tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for toolsUri.

hasToolsContentInline()

public boolean hasToolsContentInline()

Optional. The option to return the serialized tools inline.

bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the toolsContentInline field is set.

hasToolsUri()

public boolean hasToolsUri()

Optional. The Google Cloud Storage 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.

string tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the toolsUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportToolsRequest other)

public ExportToolsRequest.Builder mergeFrom(ExportToolsRequest other)
Parameter
NameDescription
otherExportToolsRequest
Returns
TypeDescription
ExportToolsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExportToolsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ExportToolsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportToolsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

setDataFormat(ExportToolsRequest.DataFormat value)

public ExportToolsRequest.Builder setDataFormat(ExportToolsRequest.DataFormat value)

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];

Parameter
NameDescription
valueExportToolsRequest.DataFormat

The dataFormat to set.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

setDataFormatValue(int value)

public ExportToolsRequest.Builder setDataFormatValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for dataFormat to set.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExportToolsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

setParent(String value)

public ExportToolsRequest.Builder setParent(String value)

Required. The agent to export tools from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ExportToolsRequest.Builder setParentBytes(ByteString value)

Required. The agent to export tools from. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ExportToolsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

setTools(int index, String value)

public ExportToolsRequest.Builder setTools(int index, String value)

Required. The name of the tools to export. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/tools/<Tool ID>.

repeated string tools = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The tools to set.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

setToolsContentInline(boolean value)

public ExportToolsRequest.Builder setToolsContentInline(boolean value)

Optional. The option to return the serialized tools inline.

bool tools_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The toolsContentInline to set.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

setToolsUri(String value)

public ExportToolsRequest.Builder setToolsUri(String value)

Optional. The Google Cloud Storage 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.

string tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The toolsUri to set.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

setToolsUriBytes(ByteString value)

public ExportToolsRequest.Builder setToolsUriBytes(ByteString value)

Optional. The Google Cloud Storage 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.

string tools_uri = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for toolsUri to set.

Returns
TypeDescription
ExportToolsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ExportToolsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides