Class GetCompanionAgentRequest.Builder (4.105.0)

public static final class GetCompanionAgentRequest.Builder extends GeneratedMessage.Builder<GetCompanionAgentRequest.Builder> implements GetCompanionAgentRequestOrBuilder

Request message for GetCompanionAgent.

Protobuf type google.cloud.dialogflow.v2.GetCompanionAgentRequest

Static Methods

getDescriptor()

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

Methods

build()

public GetCompanionAgentRequest build()
Returns
Type Description
GetCompanionAgentRequest

buildPartial()

public GetCompanionAgentRequest buildPartial()
Returns
Type Description
GetCompanionAgentRequest

clear()

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

clearName()

public GetCompanionAgentRequest.Builder clearName()

Required. The unique resource identifier of the CompanionAgent to get all information for. Format: projects/{project}/locations/{location}/companionAgents/{companion_agent}. Contains the information about the {project}, {location}, and {companion_agent}.

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

Returns
Type Description
GetCompanionAgentRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public GetCompanionAgentRequest getDefaultInstanceForType()
Returns
Type Description
GetCompanionAgentRequest

getDescriptorForType()

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

getName()

public String getName()

Required. The unique resource identifier of the CompanionAgent to get all information for. Format: projects/{project}/locations/{location}/companionAgents/{companion_agent}. Contains the information about the {project}, {location}, and {companion_agent}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The unique resource identifier of the CompanionAgent to get all information for. Format: projects/{project}/locations/{location}/companionAgents/{companion_agent}. Contains the information about the {project}, {location}, and {companion_agent}.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetCompanionAgentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public GetCompanionAgentRequest.Builder setName(String value)

Required. The unique resource identifier of the CompanionAgent to get all information for. Format: projects/{project}/locations/{location}/companionAgents/{companion_agent}. Contains the information about the {project}, {location}, and {companion_agent}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetCompanionAgentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetCompanionAgentRequest.Builder setNameBytes(ByteString value)

Required. The unique resource identifier of the CompanionAgent to get all information for. Format: projects/{project}/locations/{location}/companionAgents/{companion_agent}. Contains the information about the {project}, {location}, and {companion_agent}.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetCompanionAgentRequest.Builder

This builder for chaining.