Class VPCSCConfig.Builder (1.45.0)

public static final class VPCSCConfig.Builder extends GeneratedMessageV3.Builder<VPCSCConfig.Builder> implements VPCSCConfigOrBuilder

The Artifact Registry VPC SC config that apply to a Project.

Protobuf type google.devtools.artifactregistry.v1.VPCSCConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VPCSCConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VPCSCConfig.Builder
Overrides

build()

public VPCSCConfig build()
Returns
Type Description
VPCSCConfig

buildPartial()

public VPCSCConfig buildPartial()
Returns
Type Description
VPCSCConfig

clear()

public VPCSCConfig.Builder clear()
Returns
Type Description
VPCSCConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VPCSCConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VPCSCConfig.Builder
Overrides

clearName()

public VPCSCConfig.Builder clearName()

The name of the project's VPC SC Config.

Always of the form: projects/{projectID}/locations/{location}/vpcscConfig

In update request: never set In response: always set

string name = 1;

Returns
Type Description
VPCSCConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VPCSCConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VPCSCConfig.Builder
Overrides

clearVpcscPolicy()

public VPCSCConfig.Builder clearVpcscPolicy()

The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).

.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2;

Returns
Type Description
VPCSCConfig.Builder

This builder for chaining.

clone()

public VPCSCConfig.Builder clone()
Returns
Type Description
VPCSCConfig.Builder
Overrides

getDefaultInstanceForType()

public VPCSCConfig getDefaultInstanceForType()
Returns
Type Description
VPCSCConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

The name of the project's VPC SC Config.

Always of the form: projects/{projectID}/locations/{location}/vpcscConfig

In update request: never set In response: always set

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the project's VPC SC Config.

Always of the form: projects/{projectID}/locations/{location}/vpcscConfig

In update request: never set In response: always set

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getVpcscPolicy()

public VPCSCConfig.VPCSCPolicy getVpcscPolicy()

The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).

.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2;

Returns
Type Description
VPCSCConfig.VPCSCPolicy

The vpcscPolicy.

getVpcscPolicyValue()

public int getVpcscPolicyValue()

The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).

.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2;

Returns
Type Description
int

The enum numeric value on the wire for vpcscPolicy.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VPCSCConfig other)

public VPCSCConfig.Builder mergeFrom(VPCSCConfig other)
Parameter
Name Description
other VPCSCConfig
Returns
Type Description
VPCSCConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VPCSCConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VPCSCConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public VPCSCConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VPCSCConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VPCSCConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VPCSCConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public VPCSCConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VPCSCConfig.Builder
Overrides

setName(String value)

public VPCSCConfig.Builder setName(String value)

The name of the project's VPC SC Config.

Always of the form: projects/{projectID}/locations/{location}/vpcscConfig

In update request: never set In response: always set

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
VPCSCConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VPCSCConfig.Builder setNameBytes(ByteString value)

The name of the project's VPC SC Config.

Always of the form: projects/{projectID}/locations/{location}/vpcscConfig

In update request: never set In response: always set

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
VPCSCConfig.Builder

This builder for chaining.

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

public VPCSCConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VPCSCConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VPCSCConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VPCSCConfig.Builder
Overrides

setVpcscPolicy(VPCSCConfig.VPCSCPolicy value)

public VPCSCConfig.Builder setVpcscPolicy(VPCSCConfig.VPCSCPolicy value)

The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).

.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2;

Parameter
Name Description
value VPCSCConfig.VPCSCPolicy

The vpcscPolicy to set.

Returns
Type Description
VPCSCConfig.Builder

This builder for chaining.

setVpcscPolicyValue(int value)

public VPCSCConfig.Builder setVpcscPolicyValue(int value)

The project per location VPC SC policy that defines the VPC SC behavior for the Remote Repository (Allow/Deny).

.google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2;

Parameter
Name Description
value int

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

Returns
Type Description
VPCSCConfig.Builder

This builder for chaining.