Class ExportAgentRequest.Builder (4.89.0)

public static final class ExportAgentRequest.Builder extends GeneratedMessage.Builder<ExportAgentRequest.Builder> implements ExportAgentRequestOrBuilder

The request message for Agents.ExportAgent.

Protobuf type google.cloud.dialogflow.v2beta1.ExportAgentRequest

Static Methods

getDescriptor()

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

Methods

build()

public ExportAgentRequest build()
Returns
Type Description
ExportAgentRequest

buildPartial()

public ExportAgentRequest buildPartial()
Returns
Type Description
ExportAgentRequest

clear()

public ExportAgentRequest.Builder clear()
Returns
Type Description
ExportAgentRequest.Builder
Overrides

clearAgentUri()

public ExportAgentRequest.Builder clearAgentUri()

Optional. The Google Cloud Storage URI to export the agent to. The format of this URI must be gs://<bucket-name>/<object-name>. If left unspecified, the serialized agent is returned inline.

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 agent_uri = 2;

Returns
Type Description
ExportAgentRequest.Builder

This builder for chaining.

clearParent()

public ExportAgentRequest.Builder clearParent()

Required. The project that the agent to export is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
ExportAgentRequest.Builder

This builder for chaining.

getAgentUri()

public String getAgentUri()

Optional. The Google Cloud Storage URI to export the agent to. The format of this URI must be gs://<bucket-name>/<object-name>. If left unspecified, the serialized agent is returned inline.

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 agent_uri = 2;

Returns
Type Description
String

The agentUri.

getAgentUriBytes()

public ByteString getAgentUriBytes()

Optional. The Google Cloud Storage URI to export the agent to. The format of this URI must be gs://<bucket-name>/<object-name>. If left unspecified, the serialized agent is returned inline.

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 agent_uri = 2;

Returns
Type Description
ByteString

The bytes for agentUri.

getDefaultInstanceForType()

public ExportAgentRequest getDefaultInstanceForType()
Returns
Type Description
ExportAgentRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The project that the agent to export is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location 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 project that the agent to export is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location ID>.

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ExportAgentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAgentUri(String value)

public ExportAgentRequest.Builder setAgentUri(String value)

Optional. The Google Cloud Storage URI to export the agent to. The format of this URI must be gs://<bucket-name>/<object-name>. If left unspecified, the serialized agent is returned inline.

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 agent_uri = 2;

Parameter
Name Description
value String

The agentUri to set.

Returns
Type Description
ExportAgentRequest.Builder

This builder for chaining.

setAgentUriBytes(ByteString value)

public ExportAgentRequest.Builder setAgentUriBytes(ByteString value)

Optional. The Google Cloud Storage URI to export the agent to. The format of this URI must be gs://<bucket-name>/<object-name>. If left unspecified, the serialized agent is returned inline.

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 agent_uri = 2;

Parameter
Name Description
value ByteString

The bytes for agentUri to set.

Returns
Type Description
ExportAgentRequest.Builder

This builder for chaining.

setParent(String value)

public ExportAgentRequest.Builder setParent(String value)

Required. The project that the agent to export is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location 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
ExportAgentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ExportAgentRequest.Builder setParentBytes(ByteString value)

Required. The project that the agent to export is associated with. Format: projects/<Project ID> or projects/<Project ID>/locations/<Location 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
ExportAgentRequest.Builder

This builder for chaining.