Class VPCSCConfig.Builder (1.33.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VPCSCConfig build()
Returns
TypeDescription
VPCSCConfig

buildPartial()

public VPCSCConfig buildPartial()
Returns
TypeDescription
VPCSCConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public VPCSCConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
VPCSCConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VPCSCConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
VPCSCConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public VPCSCConfig getDefaultInstanceForType()
Returns
TypeDescription
VPCSCConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for vpcscPolicy.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VPCSCConfig other)

public VPCSCConfig.Builder mergeFrom(VPCSCConfig other)
Parameter
NameDescription
otherVPCSCConfig
Returns
TypeDescription
VPCSCConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public VPCSCConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VPCSCConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VPCSCConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueVPCSCConfig.VPCSCPolicy

The vpcscPolicy to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
VPCSCConfig.Builder

This builder for chaining.