Class VpcAccess (0.28.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
TypeDescription
int

EGRESS_FIELD_NUMBER

public static final int EGRESS_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_INTERFACES_FIELD_NUMBER

public static final int NETWORK_INTERFACES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static VpcAccess getDefaultInstance()
Returns
TypeDescription
VpcAccess

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static VpcAccess.Builder newBuilder()
Returns
TypeDescription
VpcAccess.Builder

newBuilder(VpcAccess prototype)

public static VpcAccess.Builder newBuilder(VpcAccess prototype)
Parameter
NameDescription
prototypeVpcAccess
Returns
TypeDescription
VpcAccess.Builder

parseDelimitedFrom(InputStream input)

public static VpcAccess parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcAccess parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static VpcAccess parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VpcAccess parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VpcAccess parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VpcAccess parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VpcAccess parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcAccess parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static VpcAccess parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VpcAccess parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static VpcAccess parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VpcAccess parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcAccess
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<VpcAccess> parser()
Returns
TypeDescription
Parser<VpcAccess>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for connector.

getDefaultInstanceForType()

public VpcAccess getDefaultInstanceForType()
Returns
TypeDescription
VpcAccess

getEgress()

public VpcAccess.VpcEgress getEgress()

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

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Returns
TypeDescription
VpcAccess.VpcEgress

The egress.

getEgressValue()

public int getEgressValue()

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

.google.cloud.run.v2.VpcAccess.VpcEgress egress = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for egress.

getNetworkInterfaces(int index)

public VpcAccess.NetworkInterface getNetworkInterfaces(int index)

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpcAccess.NetworkInterface

getNetworkInterfacesCount()

public int getNetworkInterfacesCount()

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
TypeDescription
int

getNetworkInterfacesList()

public List<VpcAccess.NetworkInterface> getNetworkInterfacesList()

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Returns
TypeDescription
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public VpcAccess.NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
VpcAccess.NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

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

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

repeated .google.cloud.run.v2.VpcAccess.NetworkInterface network_interfaces = 3;

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

getParserForType()

public Parser<VpcAccess> getParserForType()
Returns
TypeDescription
Parser<VpcAccess>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public VpcAccess.Builder newBuilderForType()
Returns
TypeDescription
VpcAccess.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected VpcAccess.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
VpcAccess.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public VpcAccess.Builder toBuilder()
Returns
TypeDescription
VpcAccess.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException