Class AgentGateway (0.50.0)

public final class AgentGateway extends GeneratedMessage implements AgentGatewayOrBuilder

AgentGateway represents the agent gateway resource.

Protobuf type google.cloud.networkservices.v1.AgentGateway

Static Fields

AGENT_GATEWAY_CARD_FIELD_NUMBER

public static final int AGENT_GATEWAY_CARD_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
Type Description
int

GOOGLE_MANAGED_FIELD_NUMBER

public static final int GOOGLE_MANAGED_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_CONFIG_FIELD_NUMBER

public static final int NETWORK_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

PROTOCOLS_FIELD_NUMBER

public static final int PROTOCOLS_FIELD_NUMBER
Field Value
Type Description
int

REGISTRIES_FIELD_NUMBER

public static final int REGISTRIES_FIELD_NUMBER
Field Value
Type Description
int

SELF_MANAGED_FIELD_NUMBER

public static final int SELF_MANAGED_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AgentGateway getDefaultInstance()
Returns
Type Description
AgentGateway

getDescriptor()

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

newBuilder()

public static AgentGateway.Builder newBuilder()
Returns
Type Description
AgentGateway.Builder

newBuilder(AgentGateway prototype)

public static AgentGateway.Builder newBuilder(AgentGateway prototype)
Parameter
Name Description
prototype AgentGateway
Returns
Type Description
AgentGateway.Builder

parseDelimitedFrom(InputStream input)

public static AgentGateway parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentGateway
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentGateway parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AgentGateway parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AgentGateway
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AgentGateway parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AgentGateway parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AgentGateway
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AgentGateway parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AgentGateway parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AgentGateway
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentGateway parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AgentGateway parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentGateway
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentGateway parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AgentGateway parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AgentGateway
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AgentGateway parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AgentGateway> parser()
Returns
Type Description
Parser<AgentGateway>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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.

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.

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.

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

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.

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

getParserForType()

public Parser<AgentGateway> getParserForType()
Returns
Type Description
Parser<AgentGateway>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AgentGateway.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AgentGateway.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException