Class ExportAgentResponse.Builder (4.6.0)

public static final class ExportAgentResponse.Builder extends GeneratedMessageV3.Builder<ExportAgentResponse.Builder> implements ExportAgentResponseOrBuilder

The response message for Agents.ExportAgent.

Protobuf type google.cloud.dialogflow.v2.ExportAgentResponse

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportAgentResponse build()
Returns
TypeDescription
ExportAgentResponse

buildPartial()

public ExportAgentResponse buildPartial()
Returns
TypeDescription
ExportAgentResponse

clear()

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

clearAgent()

public ExportAgentResponse.Builder clearAgent()
Returns
TypeDescription
ExportAgentResponse.Builder

clearAgentContent()

public ExportAgentResponse.Builder clearAgentContent()

Zip compressed raw byte content for agent.

bytes agent_content = 2;

Returns
TypeDescription
ExportAgentResponse.Builder

This builder for chaining.

clearAgentUri()

public ExportAgentResponse.Builder clearAgentUri()

The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Returns
TypeDescription
ExportAgentResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAgentCase()

public ExportAgentResponse.AgentCase getAgentCase()
Returns
TypeDescription
ExportAgentResponse.AgentCase

getAgentContent()

public ByteString getAgentContent()

Zip compressed raw byte content for agent.

bytes agent_content = 2;

Returns
TypeDescription
ByteString

The agentContent.

getAgentUri()

public String getAgentUri()

The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Returns
TypeDescription
String

The agentUri.

getAgentUriBytes()

public ByteString getAgentUriBytes()

The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Returns
TypeDescription
ByteString

The bytes for agentUri.

getDefaultInstanceForType()

public ExportAgentResponse getDefaultInstanceForType()
Returns
TypeDescription
ExportAgentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasAgentContent()

public boolean hasAgentContent()

Zip compressed raw byte content for agent.

bytes agent_content = 2;

Returns
TypeDescription
boolean

Whether the agentContent field is set.

hasAgentUri()

public boolean hasAgentUri()

The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Returns
TypeDescription
boolean

Whether the agentUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportAgentResponse other)

public ExportAgentResponse.Builder mergeFrom(ExportAgentResponse other)
Parameter
NameDescription
otherExportAgentResponse
Returns
TypeDescription
ExportAgentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAgentContent(ByteString value)

public ExportAgentResponse.Builder setAgentContent(ByteString value)

Zip compressed raw byte content for agent.

bytes agent_content = 2;

Parameter
NameDescription
valueByteString

The agentContent to set.

Returns
TypeDescription
ExportAgentResponse.Builder

This builder for chaining.

setAgentUri(String value)

public ExportAgentResponse.Builder setAgentUri(String value)

The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Parameter
NameDescription
valueString

The agentUri to set.

Returns
TypeDescription
ExportAgentResponse.Builder

This builder for chaining.

setAgentUriBytes(ByteString value)

public ExportAgentResponse.Builder setAgentUriBytes(ByteString value)

The URI to a file containing the exported agent. This field is populated only if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Parameter
NameDescription
valueByteString

The bytes for agentUri to set.

Returns
TypeDescription
ExportAgentResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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