Class RemoteRepositoryConfig.NpmRepository.Builder (1.46.0)

public static final class RemoteRepositoryConfig.NpmRepository.Builder extends GeneratedMessageV3.Builder<RemoteRepositoryConfig.NpmRepository.Builder> implements RemoteRepositoryConfig.NpmRepositoryOrBuilder

Configuration for a Npm remote repository.

Protobuf type google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RemoteRepositoryConfig.NpmRepository build()
Returns
Type Description
RemoteRepositoryConfig.NpmRepository

buildPartial()

public RemoteRepositoryConfig.NpmRepository buildPartial()
Returns
Type Description
RemoteRepositoryConfig.NpmRepository

clear()

public RemoteRepositoryConfig.NpmRepository.Builder clear()
Returns
Type Description
RemoteRepositoryConfig.NpmRepository.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPublicRepository()

public RemoteRepositoryConfig.NpmRepository.Builder clearPublicRepository()

One of the publicly available Npm repositories supported by Artifact Registry.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1;

Returns
Type Description
RemoteRepositoryConfig.NpmRepository.Builder

This builder for chaining.

clearUpstream()

public RemoteRepositoryConfig.NpmRepository.Builder clearUpstream()
Returns
Type Description
RemoteRepositoryConfig.NpmRepository.Builder

clone()

public RemoteRepositoryConfig.NpmRepository.Builder clone()
Returns
Type Description
RemoteRepositoryConfig.NpmRepository.Builder
Overrides

getDefaultInstanceForType()

public RemoteRepositoryConfig.NpmRepository getDefaultInstanceForType()
Returns
Type Description
RemoteRepositoryConfig.NpmRepository

getDescriptorForType()

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

getPublicRepository()

public RemoteRepositoryConfig.NpmRepository.PublicRepository getPublicRepository()

One of the publicly available Npm repositories supported by Artifact Registry.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1;

Returns
Type Description
RemoteRepositoryConfig.NpmRepository.PublicRepository

The publicRepository.

getPublicRepositoryValue()

public int getPublicRepositoryValue()

One of the publicly available Npm repositories supported by Artifact Registry.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1;

Returns
Type Description
int

The enum numeric value on the wire for publicRepository.

getUpstreamCase()

public RemoteRepositoryConfig.NpmRepository.UpstreamCase getUpstreamCase()
Returns
Type Description
RemoteRepositoryConfig.NpmRepository.UpstreamCase

hasPublicRepository()

public boolean hasPublicRepository()

One of the publicly available Npm repositories supported by Artifact Registry.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1;

Returns
Type Description
boolean

Whether the publicRepository field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RemoteRepositoryConfig.NpmRepository other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPublicRepository(RemoteRepositoryConfig.NpmRepository.PublicRepository value)

public RemoteRepositoryConfig.NpmRepository.Builder setPublicRepository(RemoteRepositoryConfig.NpmRepository.PublicRepository value)

One of the publicly available Npm repositories supported by Artifact Registry.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1;

Parameter
Name Description
value RemoteRepositoryConfig.NpmRepository.PublicRepository

The publicRepository to set.

Returns
Type Description
RemoteRepositoryConfig.NpmRepository.Builder

This builder for chaining.

setPublicRepositoryValue(int value)

public RemoteRepositoryConfig.NpmRepository.Builder setPublicRepositoryValue(int value)

One of the publicly available Npm repositories supported by Artifact Registry.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1;

Parameter
Name Description
value int

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

Returns
Type Description
RemoteRepositoryConfig.NpmRepository.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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