Class ExportToolsRequest.Builder (0.54.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
Type Description
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
Name Description
values Iterable<String>

The tools to add.

Returns
Type Description
ExportToolsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportToolsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The tools to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the tools to add.

Returns
Type Description
ExportToolsRequest.Builder

This builder for chaining.

build()

public ExportToolsRequest build()
Returns
Type Description
ExportToolsRequest

buildPartial()

public ExportToolsRequest buildPartial()
Returns
Type Description
ExportToolsRequest

clear()

public ExportToolsRequest.Builder clear()
Returns
Type Description
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
Type Description
ExportToolsRequest.Builder

This builder for chaining.

clearDestination()

public ExportToolsRequest.Builder clearDestination()
Returns
Type Description
ExportToolsRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ExportToolsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExportToolsRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportToolsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
ExportToolsRequest.Builder

This builder for chaining.

clone()

public ExportToolsRequest.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
int

The enum numeric value on the wire for dataFormat.

getDefaultInstanceForType()

public ExportToolsRequest getDefaultInstanceForType()
Returns
Type Description
ExportToolsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationCase()

public ExportToolsRequest.DestinationCase getDestinationCase()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the toolsUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportToolsRequest other)

public ExportToolsRequest.Builder mergeFrom(ExportToolsRequest other)
Parameter
Name Description
other ExportToolsRequest
Returns
Type Description
ExportToolsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ExportToolsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportToolsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ExportToolsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ExportToolsRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportToolsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value ExportToolsRequest.DataFormat

The dataFormat to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
ExportToolsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ExportToolsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The parent to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The tools to set.

Returns
Type Description
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
Name Description
value boolean

The toolsContentInline to set.

Returns
Type Description
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
Name Description
value String

The toolsUri to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for toolsUri to set.

Returns
Type Description
ExportToolsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ExportToolsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExportToolsRequest.Builder
Overrides