Class VpcAccess.Builder (0.2.0)

public static final class VpcAccess.Builder extends GeneratedMessageV3.Builder<VpcAccess.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VpcAccess.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VpcAccess.Builder
Overrides

build()

public VpcAccess build()
Returns
TypeDescription
VpcAccess

buildPartial()

public VpcAccess buildPartial()
Returns
TypeDescription
VpcAccess

clear()

public VpcAccess.Builder clear()
Returns
TypeDescription
VpcAccess.Builder
Overrides

clearConnector()

public VpcAccess.Builder clearConnector()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}

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

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

clearEgress()

public VpcAccess.Builder clearEgress()

Traffic VPC egress settings.

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

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VpcAccess.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VpcAccess.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public VpcAccess.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VpcAccess.Builder
Overrides

clone()

public VpcAccess.Builder clone()
Returns
TypeDescription
VpcAccess.Builder
Overrides

getConnector()

public String getConnector()

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}

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}

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

Returns
TypeDescription
ByteString

The bytes for connector.

getDefaultInstanceForType()

public VpcAccess getDefaultInstanceForType()
Returns
TypeDescription
VpcAccess

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VpcAccess other)

public VpcAccess.Builder mergeFrom(VpcAccess other)
Parameter
NameDescription
otherVpcAccess
Returns
TypeDescription
VpcAccess.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VpcAccess.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VpcAccess.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VpcAccess.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VpcAccess.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VpcAccess.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpcAccess.Builder
Overrides

setConnector(String value)

public VpcAccess.Builder setConnector(String value)

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}

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

Parameter
NameDescription
valueString

The connector to set.

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

setConnectorBytes(ByteString value)

public VpcAccess.Builder setConnectorBytes(ByteString value)

VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}

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

Parameter
NameDescription
valueByteString

The bytes for connector to set.

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

setEgress(VpcAccess.VpcEgress value)

public VpcAccess.Builder setEgress(VpcAccess.VpcEgress value)

Traffic VPC egress settings.

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

Parameter
NameDescription
valueVpcAccess.VpcEgress

The egress to set.

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

setEgressValue(int value)

public VpcAccess.Builder setEgressValue(int value)

Traffic VPC egress settings.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for egress to set.

Returns
TypeDescription
VpcAccess.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VpcAccess.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VpcAccess.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VpcAccess.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VpcAccess.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VpcAccess.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VpcAccess.Builder
Overrides