Class VpcAccess (0.51.0)

public final class VpcAccess extends GeneratedMessageV3 implements VpcAccessOrBuilder

VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

Protobuf type google.cloud.run.v2.VpcAccess

Implements

VpcAccessOrBuilder

Static Fields

CONNECTOR_FIELD_NUMBER

public static final int CONNECTOR_FIELD_NUMBER
Field Value
Type Description
int

EGRESS_FIELD_NUMBER

public static final int EGRESS_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_INTERFACES_FIELD_NUMBER

public static final int NETWORK_INTERFACES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VpcAccess getDefaultInstance()
Returns
Type Description
VpcAccess

getDescriptor()

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

newBuilder()

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

newBuilder(VpcAccess prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConnector()

public String getConnector()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The connector.

getConnectorBytes()

public ByteString getConnectorBytes()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}, where {project} can be project id or number. For more information on sending traffic to a VPC network via a connector, visit https://cloud.google.com/run/docs/configuring/vpc-connectors.

string connector = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for connector.

getDefaultInstanceForType()

public VpcAccess getDefaultInstanceForType()
Returns
Type Description
VpcAccess

getEgress()

public VpcAccess.VpcEgress getEgress()

Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VpcAccess.VpcEgress

The egress.

getEgressValue()

public int getEgressValue()

Optional. Traffic VPC egress settings. If not provided, it defaults to PRIVATE_RANGES_ONLY.

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for egress.

getNetworkInterfaces(int index)

public VpcAccess.NetworkInterface getNetworkInterfaces(int index)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.NetworkInterface

getNetworkInterfacesCount()

public int getNetworkInterfacesCount()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getNetworkInterfacesList()

public List<VpcAccess.NetworkInterface> getNetworkInterfacesList()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public VpcAccess.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
VpcAccess.NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

public List<? extends VpcAccess.NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()

Optional. Direct VPC egress settings. Currently only single network interface is supported.

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.run.v2.VpcAccess.NetworkInterfaceOrBuilder>

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VpcAccess.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VpcAccess.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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