Class AgentGateway.Builder (0.50.0)

public static final class AgentGateway.Builder extends GeneratedMessage.Builder<AgentGateway.Builder> implements AgentGatewayOrBuilder

AgentGateway represents the agent gateway resource.

Protobuf type google.cloud.networkservices.v1.AgentGateway

Static Methods

getDescriptor()

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

Methods

addAllProtocols(Iterable<? extends AgentGateway.Protocol> values) (deprecated)

public AgentGateway.Builder addAllProtocols(Iterable<? extends AgentGateway.Protocol> values)

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networkservices.v1.AgentGateway.Protocol>

The protocols to add.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

addAllProtocolsValue(Iterable<Integer> values) (deprecated)

public AgentGateway.Builder addAllProtocolsValue(Iterable<Integer> values)

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for protocols to add.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

addAllRegistries(Iterable<String> values)

public AgentGateway.Builder addAllRegistries(Iterable<String> values)

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The registries to add.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

addProtocols(AgentGateway.Protocol value) (deprecated)

public AgentGateway.Builder addProtocols(AgentGateway.Protocol value)

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AgentGateway.Protocol

The protocols to add.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

addProtocolsValue(int value) (deprecated)

public AgentGateway.Builder addProtocolsValue(int value)

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for protocols to add.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

addRegistries(String value)

public AgentGateway.Builder addRegistries(String value)

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The registries to add.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

addRegistriesBytes(ByteString value)

public AgentGateway.Builder addRegistriesBytes(ByteString value)

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the registries to add.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

build()

public AgentGateway build()
Returns
Type Description
AgentGateway

buildPartial()

public AgentGateway buildPartial()
Returns
Type Description
AgentGateway

clear()

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

clearAgentGatewayCard()

public AgentGateway.Builder clearAgentGatewayCard()

Output only. Field for populated AgentGateway card.

.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentGateway.Builder

clearCreateTime()

public AgentGateway.Builder clearCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentGateway.Builder

clearDeploymentMode()

public AgentGateway.Builder clearDeploymentMode()
Returns
Type Description
AgentGateway.Builder

clearDescription()

public AgentGateway.Builder clearDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

clearEtag()

public AgentGateway.Builder clearEtag()

Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

clearGoogleManaged()

public AgentGateway.Builder clearGoogleManaged()

Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.

.google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.Builder

clearLabels()

public AgentGateway.Builder clearLabels()
Returns
Type Description
AgentGateway.Builder

clearName()

public AgentGateway.Builder clearName()

Identifier. Name of the AgentGateway resource. It matches pattern projects/*/locations/*/agentGateways/<agent_gateway>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

clearNetworkConfig()

public AgentGateway.Builder clearNetworkConfig()

Optional. Network configuration for the AgentGateway.

.google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.Builder

clearProtocols() (deprecated)

public AgentGateway.Builder clearProtocols()

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

clearRegistries()

public AgentGateway.Builder clearRegistries()

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

clearSelfManaged()

public AgentGateway.Builder clearSelfManaged()

Optional. Attach to existing Application Load Balancers or Secure Web Proxies.

.google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.Builder

clearUpdateTime()

public AgentGateway.Builder clearUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentGateway.Builder

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Set of label tags associated with the AgentGateway resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAgentGatewayCard()

public AgentGateway.AgentGatewayOutputCard getAgentGatewayCard()

Output only. Field for populated AgentGateway card.

.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentGateway.AgentGatewayOutputCard

The agentGatewayCard.

getAgentGatewayCardBuilder()

public AgentGateway.AgentGatewayOutputCard.Builder getAgentGatewayCardBuilder()

Output only. Field for populated AgentGateway card.

.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentGateway.AgentGatewayOutputCard.Builder

getAgentGatewayCardOrBuilder()

public AgentGateway.AgentGatewayOutputCardOrBuilder getAgentGatewayCardOrBuilder()

Output only. Field for populated AgentGateway card.

.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentGateway.AgentGatewayOutputCardOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public AgentGateway getDefaultInstanceForType()
Returns
Type Description
AgentGateway

getDeploymentModeCase()

public AgentGateway.DeploymentModeCase getDeploymentModeCase()
Returns
Type Description
AgentGateway.DeploymentModeCase

getDescription()

public String getDescription()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getEtag()

public String getEtag()

Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getGoogleManaged()

public AgentGateway.GoogleManaged getGoogleManaged()

Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.

.google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.GoogleManaged

The googleManaged.

getGoogleManagedBuilder()

public AgentGateway.GoogleManaged.Builder getGoogleManagedBuilder()

Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.

.google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.GoogleManaged.Builder

getGoogleManagedOrBuilder()

public AgentGateway.GoogleManagedOrBuilder getGoogleManagedOrBuilder()

Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.

.google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.GoogleManagedOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Set of label tags associated with the AgentGateway resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Set of label tags associated with the AgentGateway resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Set of label tags associated with the AgentGateway resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Set of label tags associated with the AgentGateway resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. Name of the AgentGateway resource. It matches pattern projects/*/locations/*/agentGateways/<agent_gateway>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Name of the AgentGateway resource. It matches pattern projects/*/locations/*/agentGateways/<agent_gateway>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNetworkConfig()

public AgentGateway.NetworkConfig getNetworkConfig()

Optional. Network configuration for the AgentGateway.

.google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.NetworkConfig

The networkConfig.

getNetworkConfigBuilder()

public AgentGateway.NetworkConfig.Builder getNetworkConfigBuilder()

Optional. Network configuration for the AgentGateway.

.google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.NetworkConfig.Builder

getNetworkConfigOrBuilder()

public AgentGateway.NetworkConfigOrBuilder getNetworkConfigOrBuilder()

Optional. Network configuration for the AgentGateway.

.google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.NetworkConfigOrBuilder

getProtocols(int index) (deprecated)

public AgentGateway.Protocol getProtocols(int index)

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
AgentGateway.Protocol

The protocols at the given index.

getProtocolsCount() (deprecated)

public int getProtocolsCount()

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of protocols.

getProtocolsList() (deprecated)

public List<AgentGateway.Protocol> getProtocolsList()

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Protocol>

A list containing the protocols.

getProtocolsValue(int index) (deprecated)

public int getProtocolsValue(int index)

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of protocols at the given index.

getProtocolsValueList() (deprecated)

public List<Integer> getProtocolsValueList()

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for protocols.

getRegistries(int index)

public String getRegistries(int index)

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The registries at the given index.

getRegistriesBytes(int index)

public ByteString getRegistriesBytes(int index)

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the registries at the given index.

getRegistriesCount()

public int getRegistriesCount()

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of registries.

getRegistriesList()

public ProtocolStringList getRegistriesList()

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the registries.

getSelfManaged()

public AgentGateway.SelfManaged getSelfManaged()

Optional. Attach to existing Application Load Balancers or Secure Web Proxies.

.google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.SelfManaged

The selfManaged.

getSelfManagedBuilder()

public AgentGateway.SelfManaged.Builder getSelfManagedBuilder()

Optional. Attach to existing Application Load Balancers or Secure Web Proxies.

.google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.SelfManaged.Builder

getSelfManagedOrBuilder()

public AgentGateway.SelfManagedOrBuilder getSelfManagedOrBuilder()

Optional. Attach to existing Application Load Balancers or Secure Web Proxies.

.google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentGateway.SelfManagedOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasAgentGatewayCard()

public boolean hasAgentGatewayCard()

Output only. Field for populated AgentGateway card.

.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the agentGatewayCard field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasGoogleManaged()

public boolean hasGoogleManaged()

Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.

.google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the googleManaged field is set.

hasNetworkConfig()

public boolean hasNetworkConfig()

Optional. Network configuration for the AgentGateway.

.google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the networkConfig field is set.

hasSelfManaged()

public boolean hasSelfManaged()

Optional. Attach to existing Application Load Balancers or Secure Web Proxies.

.google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the selfManaged field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAgentGatewayCard(AgentGateway.AgentGatewayOutputCard value)

public AgentGateway.Builder mergeAgentGatewayCard(AgentGateway.AgentGatewayOutputCard value)

Output only. Field for populated AgentGateway card.

.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AgentGateway.AgentGatewayOutputCard
Returns
Type Description
AgentGateway.Builder

mergeCreateTime(Timestamp value)

public AgentGateway.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AgentGateway.Builder

mergeFrom(AgentGateway other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGoogleManaged(AgentGateway.GoogleManaged value)

public AgentGateway.Builder mergeGoogleManaged(AgentGateway.GoogleManaged value)

Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.

.google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AgentGateway.GoogleManaged
Returns
Type Description
AgentGateway.Builder

mergeNetworkConfig(AgentGateway.NetworkConfig value)

public AgentGateway.Builder mergeNetworkConfig(AgentGateway.NetworkConfig value)

Optional. Network configuration for the AgentGateway.

.google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AgentGateway.NetworkConfig
Returns
Type Description
AgentGateway.Builder

mergeSelfManaged(AgentGateway.SelfManaged value)

public AgentGateway.Builder mergeSelfManaged(AgentGateway.SelfManaged value)

Optional. Attach to existing Application Load Balancers or Secure Web Proxies.

.google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AgentGateway.SelfManaged
Returns
Type Description
AgentGateway.Builder

mergeUpdateTime(Timestamp value)

public AgentGateway.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AgentGateway.Builder

putAllLabels(Map<String,String> values)

public AgentGateway.Builder putAllLabels(Map<String,String> values)

Optional. Set of label tags associated with the AgentGateway resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
AgentGateway.Builder

putLabels(String key, String value)

public AgentGateway.Builder putLabels(String key, String value)

Optional. Set of label tags associated with the AgentGateway resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
AgentGateway.Builder

removeLabels(String key)

public AgentGateway.Builder removeLabels(String key)

Optional. Set of label tags associated with the AgentGateway resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
AgentGateway.Builder

setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard value)

public AgentGateway.Builder setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard value)

Output only. Field for populated AgentGateway card.

.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value AgentGateway.AgentGatewayOutputCard
Returns
Type Description
AgentGateway.Builder

setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.Builder builderForValue)

public AgentGateway.Builder setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.Builder builderForValue)

Output only. Field for populated AgentGateway card.

.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue AgentGateway.AgentGatewayOutputCard.Builder
Returns
Type Description
AgentGateway.Builder

setCreateTime(Timestamp value)

public AgentGateway.Builder setCreateTime(Timestamp value)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AgentGateway.Builder

setCreateTime(Timestamp.Builder builderForValue)

public AgentGateway.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AgentGateway.Builder

setDescription(String value)

public AgentGateway.Builder setDescription(String value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public AgentGateway.Builder setDescriptionBytes(ByteString value)

Optional. A free-text description of the resource. Max length 1024 characters.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setEtag(String value)

public AgentGateway.Builder setEtag(String value)

Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public AgentGateway.Builder setEtagBytes(ByteString value)

Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.

string etag = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setGoogleManaged(AgentGateway.GoogleManaged value)

public AgentGateway.Builder setGoogleManaged(AgentGateway.GoogleManaged value)

Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.

.google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AgentGateway.GoogleManaged
Returns
Type Description
AgentGateway.Builder

setGoogleManaged(AgentGateway.GoogleManaged.Builder builderForValue)

public AgentGateway.Builder setGoogleManaged(AgentGateway.GoogleManaged.Builder builderForValue)

Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant project.

.google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AgentGateway.GoogleManaged.Builder
Returns
Type Description
AgentGateway.Builder

setName(String value)

public AgentGateway.Builder setName(String value)

Identifier. Name of the AgentGateway resource. It matches pattern projects/*/locations/*/agentGateways/<agent_gateway>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AgentGateway.Builder setNameBytes(ByteString value)

Identifier. Name of the AgentGateway resource. It matches pattern projects/*/locations/*/agentGateways/<agent_gateway>.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setNetworkConfig(AgentGateway.NetworkConfig value)

public AgentGateway.Builder setNetworkConfig(AgentGateway.NetworkConfig value)

Optional. Network configuration for the AgentGateway.

.google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AgentGateway.NetworkConfig
Returns
Type Description
AgentGateway.Builder

setNetworkConfig(AgentGateway.NetworkConfig.Builder builderForValue)

public AgentGateway.Builder setNetworkConfig(AgentGateway.NetworkConfig.Builder builderForValue)

Optional. Network configuration for the AgentGateway.

.google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AgentGateway.NetworkConfig.Builder
Returns
Type Description
AgentGateway.Builder

setProtocols(int index, AgentGateway.Protocol value) (deprecated)

public AgentGateway.Builder setProtocols(int index, AgentGateway.Protocol value)

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value AgentGateway.Protocol

The protocols to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setProtocolsValue(int index, int value) (deprecated)

public AgentGateway.Builder setProtocolsValue(int index, int value)

Deprecated. google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See google/cloud/networkservices/v1/agent_gateway.proto;l=183

Optional. Deprecated.

repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for protocols to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setRegistries(int index, String value)

public AgentGateway.Builder setRegistries(int index, String value)

Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format //agentregistry.googleapis.com/projects/{project}/locations/{location}/

repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The registries to set.

Returns
Type Description
AgentGateway.Builder

This builder for chaining.

setSelfManaged(AgentGateway.SelfManaged value)

public AgentGateway.Builder setSelfManaged(AgentGateway.SelfManaged value)

Optional. Attach to existing Application Load Balancers or Secure Web Proxies.

.google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AgentGateway.SelfManaged
Returns
Type Description
AgentGateway.Builder

setSelfManaged(AgentGateway.SelfManaged.Builder builderForValue)

public AgentGateway.Builder setSelfManaged(AgentGateway.SelfManaged.Builder builderForValue)

Optional. Attach to existing Application Load Balancers or Secure Web Proxies.

.google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AgentGateway.SelfManaged.Builder
Returns
Type Description
AgentGateway.Builder

setUpdateTime(Timestamp value)

public AgentGateway.Builder setUpdateTime(Timestamp value)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
AgentGateway.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public AgentGateway.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp when the resource was updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AgentGateway.Builder