Class ExportAgentRequest.Builder (4.6.0)

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

The request message for Agents.ExportAgent.

Protobuf type google.cloud.dialogflow.v2.ExportAgentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportAgentRequest build()
Returns
TypeDescription
ExportAgentRequest

buildPartial()

public ExportAgentRequest buildPartial()
Returns
TypeDescription
ExportAgentRequest

clear()

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

clearAgentUri()

public ExportAgentRequest.Builder clearAgentUri()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ExportAgentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ExportAgentRequest.Builder clearParent()

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

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

Returns
TypeDescription
ExportAgentRequest.Builder

This builder for chaining.

clone()

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

getAgentUri()

public String getAgentUri()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The agentUri.

getAgentUriBytes()

public ByteString getAgentUriBytes()

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for agentUri.

getDefaultInstanceForType()

public ExportAgentRequest getDefaultInstanceForType()
Returns
TypeDescription
ExportAgentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

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

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

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

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportAgentRequest other)

public ExportAgentRequest.Builder mergeFrom(ExportAgentRequest other)
Parameter
NameDescription
otherExportAgentRequest
Returns
TypeDescription
ExportAgentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAgentUri(String value)

public ExportAgentRequest.Builder setAgentUri(String value)

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The agentUri to set.

Returns
TypeDescription
ExportAgentRequest.Builder

This builder for chaining.

setAgentUriBytes(ByteString value)

public ExportAgentRequest.Builder setAgentUriBytes(ByteString value)

Required. 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 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for agentUri to set.

Returns
TypeDescription
ExportAgentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public ExportAgentRequest.Builder setParent(String value)

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

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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>.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ExportAgentRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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