Class VpcAccess (0.14.0)

public final class VpcAccess extends GeneratedMessageV3 implements VpcAccessOrBuilder

VPC Access settings. For more information on creating a VPC Connector, visit https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For information on how to configure Cloud Run with an existing VPC Connector, 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

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.

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.

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.

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

Returns
TypeDescription
VpcAccess.VpcEgress

The egress.

getEgressValue()

public int getEgressValue()

Traffic VPC egress settings.

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

Returns
TypeDescription
int

The enum numeric value on the wire for egress.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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