Class Gateway (1.87.0)

public final class Gateway extends GeneratedMessage implements GatewayOrBuilder

A gateway that can apply specialized traffic processing.

Protobuf type google.cloud.networkconnectivity.v1beta.Gateway

Implements

GatewayOrBuilder

Static Fields

CAPACITY_FIELD_NUMBER

public static final int CAPACITY_FIELD_NUMBER
Field Value
Type Description
int

CLOUD_ROUTERS_FIELD_NUMBER

public static final int CLOUD_ROUTERS_FIELD_NUMBER
Field Value
Type Description
int

IP_RANGE_RESERVATIONS_FIELD_NUMBER

public static final int IP_RANGE_RESERVATIONS_FIELD_NUMBER
Field Value
Type Description
int

SAC_ATTACHMENT_FIELD_NUMBER

public static final int SAC_ATTACHMENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Gateway getDefaultInstance()
Returns
Type Description
Gateway

getDescriptor()

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

newBuilder()

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

newBuilder(Gateway prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCapacity()

public Gateway.GatewayCapacity getCapacity()

Optional. The aggregate processing capacity of this gateway.

.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Gateway.GatewayCapacity

The capacity.

getCapacityValue()

public int getCapacityValue()

Optional. The aggregate processing capacity of this gateway.

.google.cloud.networkconnectivity.v1beta.Gateway.GatewayCapacity capacity = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for capacity.

getCloudRouters(int index)

public String getCloudRouters(int index)

Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}

repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The cloudRouters at the given index.

getCloudRoutersBytes(int index)

public ByteString getCloudRoutersBytes(int index)

Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}

repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the cloudRouters at the given index.

getCloudRoutersCount()

public int getCloudRoutersCount()

Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}

repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of cloudRouters.

getCloudRoutersList()

public ProtocolStringList getCloudRoutersList()

Output only. The list of Cloud Routers that are connected to this gateway. Should be in the form: https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/routers/{router}

repeated string cloud_routers = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the cloudRouters.

getDefaultInstanceForType()

public Gateway getDefaultInstanceForType()
Returns
Type Description
Gateway

getIpRangeReservations(int index)

public Gateway.IpRangeReservation getIpRangeReservations(int index)

Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.

repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Gateway.IpRangeReservation

getIpRangeReservationsCount()

public int getIpRangeReservationsCount()

Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.

repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getIpRangeReservationsList()

public List<Gateway.IpRangeReservation> getIpRangeReservationsList()

Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.

repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<IpRangeReservation>

getIpRangeReservationsOrBuilder(int index)

public Gateway.IpRangeReservationOrBuilder getIpRangeReservationsOrBuilder(int index)

Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.

repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Gateway.IpRangeReservationOrBuilder

getIpRangeReservationsOrBuilderList()

public List<? extends Gateway.IpRangeReservationOrBuilder> getIpRangeReservationsOrBuilderList()

Optional. A list of IP ranges that are reserved for this gateway's internal intfrastructure.

repeated .google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservation ip_range_reservations = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networkconnectivity.v1beta.Gateway.IpRangeReservationOrBuilder>

getParserForType()

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

getSacAttachment()

public String getSacAttachment()

Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}

string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The sacAttachment.

getSacAttachmentBytes()

public ByteString getSacAttachmentBytes()

Output only. The URI of the connected SACAttachment. Should be in the form: projects/{project}/locations/{location}/sacAttachments/{sac_attachment}

string sac_attachment = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for sacAttachment.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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