Class ExportAgentResponse.Builder (0.48.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.cx.v3.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()

Uncompressed raw byte content for agent. This field is populated if none of agent_uri and git_destination are specified in ExportAgentRequest.

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 if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Returns
TypeDescription
ExportAgentResponse.Builder

This builder for chaining.

clearCommitSha()

public ExportAgentResponse.Builder clearCommitSha()

Commit SHA of the git push. This field is populated if git_destination is specified in ExportAgentRequest.

string commit_sha = 3;

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()

Uncompressed raw byte content for agent. This field is populated if none of agent_uri and git_destination are specified in ExportAgentRequest.

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 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 if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Returns
TypeDescription
ByteString

The bytes for agentUri.

getCommitSha()

public String getCommitSha()

Commit SHA of the git push. This field is populated if git_destination is specified in ExportAgentRequest.

string commit_sha = 3;

Returns
TypeDescription
String

The commitSha.

getCommitShaBytes()

public ByteString getCommitShaBytes()

Commit SHA of the git push. This field is populated if git_destination is specified in ExportAgentRequest.

string commit_sha = 3;

Returns
TypeDescription
ByteString

The bytes for commitSha.

getDefaultInstanceForType()

public ExportAgentResponse getDefaultInstanceForType()
Returns
TypeDescription
ExportAgentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

hasAgentContent()

public boolean hasAgentContent()

Uncompressed raw byte content for agent. This field is populated if none of agent_uri and git_destination are specified in ExportAgentRequest.

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 if agent_uri is specified in ExportAgentRequest.

string agent_uri = 1;

Returns
TypeDescription
boolean

Whether the agentUri field is set.

hasCommitSha()

public boolean hasCommitSha()

Commit SHA of the git push. This field is populated if git_destination is specified in ExportAgentRequest.

string commit_sha = 3;

Returns
TypeDescription
boolean

Whether the commitSha 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)

Uncompressed raw byte content for agent. This field is populated if none of agent_uri and git_destination are specified in ExportAgentRequest.

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

setCommitSha(String value)

public ExportAgentResponse.Builder setCommitSha(String value)

Commit SHA of the git push. This field is populated if git_destination is specified in ExportAgentRequest.

string commit_sha = 3;

Parameter
NameDescription
valueString

The commitSha to set.

Returns
TypeDescription
ExportAgentResponse.Builder

This builder for chaining.

setCommitShaBytes(ByteString value)

public ExportAgentResponse.Builder setCommitShaBytes(ByteString value)

Commit SHA of the git push. This field is populated if git_destination is specified in ExportAgentRequest.

string commit_sha = 3;

Parameter
NameDescription
valueByteString

The bytes for commitSha 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