Class AgentGatewaySetting.AgentGatewayReference.Builder (0.90.0)

public static final class AgentGatewaySetting.AgentGatewayReference.Builder extends GeneratedMessage.Builder<AgentGatewaySetting.AgentGatewayReference.Builder> implements AgentGatewaySetting.AgentGatewayReferenceOrBuilder

Reference to an Agent Gateway resource.

Protobuf type google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference

Static Methods

getDescriptor()

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

Methods

build()

public AgentGatewaySetting.AgentGatewayReference build()
Returns
Type Description
AgentGatewaySetting.AgentGatewayReference

buildPartial()

public AgentGatewaySetting.AgentGatewayReference buildPartial()
Returns
Type Description
AgentGatewaySetting.AgentGatewayReference

clear()

public AgentGatewaySetting.AgentGatewayReference.Builder clear()
Returns
Type Description
AgentGatewaySetting.AgentGatewayReference.Builder
Overrides

clearName()

public AgentGatewaySetting.AgentGatewayReference.Builder clearName()

Required. Immutable. The resource name of the agent gateway.

Expected format: projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}.

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

Returns
Type Description
AgentGatewaySetting.AgentGatewayReference.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentGatewaySetting.AgentGatewayReference getDefaultInstanceForType()
Returns
Type Description
AgentGatewaySetting.AgentGatewayReference

getDescriptorForType()

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

getName()

public String getName()

Required. Immutable. The resource name of the agent gateway.

Expected format: projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Immutable. The resource name of the agent gateway.

Expected format: projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.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(AgentGatewaySetting.AgentGatewayReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public AgentGatewaySetting.AgentGatewayReference.Builder setName(String value)

Required. Immutable. The resource name of the agent gateway.

Expected format: projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AgentGatewaySetting.AgentGatewayReference.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AgentGatewaySetting.AgentGatewayReference.Builder setNameBytes(ByteString value)

Required. Immutable. The resource name of the agent gateway.

Expected format: projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AgentGatewaySetting.AgentGatewayReference.Builder

This builder for chaining.