Class ExportToolsRequest (0.51.0)

public final class ExportToolsRequest extends GeneratedMessageV3 implements ExportToolsRequestOrBuilder

The request message for Tools.ExportTools.

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

Static Fields

DATA_FORMAT_FIELD_NUMBER

public static final int DATA_FORMAT_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

TOOLS_CONTENT_INLINE_FIELD_NUMBER

public static final int TOOLS_CONTENT_INLINE_FIELD_NUMBER
Field Value
Type Description
int

TOOLS_FIELD_NUMBER

public static final int TOOLS_FIELD_NUMBER
Field Value
Type Description
int

TOOLS_URI_FIELD_NUMBER

public static final int TOOLS_URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ExportToolsRequest getDefaultInstance()
Returns
Type Description
ExportToolsRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ExportToolsRequest.Builder newBuilder()
Returns
Type Description
ExportToolsRequest.Builder

newBuilder(ExportToolsRequest prototype)

public static ExportToolsRequest.Builder newBuilder(ExportToolsRequest prototype)
Parameter
Name Description
prototype ExportToolsRequest
Returns
Type Description
ExportToolsRequest.Builder

parseDelimitedFrom(InputStream input)

public static ExportToolsRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ExportToolsRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExportToolsRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExportToolsRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ExportToolsRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ExportToolsRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ExportToolsRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ExportToolsRequest> parser()
Returns
Type Description
Parser<ExportToolsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

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.

getParserForType()

public Parser<ExportToolsRequest> getParserForType()
Returns
Type Description
Parser<ExportToolsRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExportToolsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ExportToolsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException