Class ExportToolsRequest (0.50.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
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

TOOLS_CONTENT_INLINE_FIELD_NUMBER

public static final int TOOLS_CONTENT_INLINE_FIELD_NUMBER
Field Value
TypeDescription
int

TOOLS_FIELD_NUMBER

public static final int TOOLS_FIELD_NUMBER
Field Value
TypeDescription
int

TOOLS_URI_FIELD_NUMBER

public static final int TOOLS_URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ExportToolsRequest getDefaultInstance()
Returns
TypeDescription
ExportToolsRequest

getDescriptor()

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

newBuilder()

public static ExportToolsRequest.Builder newBuilder()
Returns
TypeDescription
ExportToolsRequest.Builder

newBuilder(ExportToolsRequest prototype)

public static ExportToolsRequest.Builder newBuilder(ExportToolsRequest prototype)
Parameter
NameDescription
prototypeExportToolsRequest
Returns
TypeDescription
ExportToolsRequest.Builder

parseDelimitedFrom(InputStream input)

public static ExportToolsRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ExportToolsRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ExportToolsRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ExportToolsRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ExportToolsRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ExportToolsRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ExportToolsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ExportToolsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ExportToolsRequest> parser()
Returns
TypeDescription
Parser<ExportToolsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
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

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.

getParserForType()

public Parser<ExportToolsRequest> getParserForType()
Returns
TypeDescription
Parser<ExportToolsRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ExportToolsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ExportToolsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException