Class ListNpmPackagesResponse.Builder (1.31.0)

public static final class ListNpmPackagesResponse.Builder extends GeneratedMessageV3.Builder<ListNpmPackagesResponse.Builder> implements ListNpmPackagesResponseOrBuilder

The response from listing npm packages.

Protobuf type google.devtools.artifactregistry.v1.ListNpmPackagesResponse

Static Methods

getDescriptor()

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

Methods

addAllNpmPackages(Iterable<? extends NpmPackage> values)

public ListNpmPackagesResponse.Builder addAllNpmPackages(Iterable<? extends NpmPackage> values)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.devtools.artifactregistry.v1.NpmPackage>
Returns
TypeDescription
ListNpmPackagesResponse.Builder

addNpmPackages(NpmPackage value)

public ListNpmPackagesResponse.Builder addNpmPackages(NpmPackage value)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameter
NameDescription
valueNpmPackage
Returns
TypeDescription
ListNpmPackagesResponse.Builder

addNpmPackages(NpmPackage.Builder builderForValue)

public ListNpmPackagesResponse.Builder addNpmPackages(NpmPackage.Builder builderForValue)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameter
NameDescription
builderForValueNpmPackage.Builder
Returns
TypeDescription
ListNpmPackagesResponse.Builder

addNpmPackages(int index, NpmPackage value)

public ListNpmPackagesResponse.Builder addNpmPackages(int index, NpmPackage value)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameters
NameDescription
indexint
valueNpmPackage
Returns
TypeDescription
ListNpmPackagesResponse.Builder

addNpmPackages(int index, NpmPackage.Builder builderForValue)

public ListNpmPackagesResponse.Builder addNpmPackages(int index, NpmPackage.Builder builderForValue)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameters
NameDescription
indexint
builderForValueNpmPackage.Builder
Returns
TypeDescription
ListNpmPackagesResponse.Builder

addNpmPackagesBuilder()

public NpmPackage.Builder addNpmPackagesBuilder()

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Returns
TypeDescription
NpmPackage.Builder

addNpmPackagesBuilder(int index)

public NpmPackage.Builder addNpmPackagesBuilder(int index)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NpmPackage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListNpmPackagesResponse build()
Returns
TypeDescription
ListNpmPackagesResponse

buildPartial()

public ListNpmPackagesResponse buildPartial()
Returns
TypeDescription
ListNpmPackagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListNpmPackagesResponse.Builder clearNextPageToken()

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Returns
TypeDescription
ListNpmPackagesResponse.Builder

This builder for chaining.

clearNpmPackages()

public ListNpmPackagesResponse.Builder clearNpmPackages()

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Returns
TypeDescription
ListNpmPackagesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListNpmPackagesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListNpmPackagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getNpmPackages(int index)

public NpmPackage getNpmPackages(int index)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NpmPackage

getNpmPackagesBuilder(int index)

public NpmPackage.Builder getNpmPackagesBuilder(int index)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NpmPackage.Builder

getNpmPackagesBuilderList()

public List<NpmPackage.Builder> getNpmPackagesBuilderList()

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Returns
TypeDescription
List<Builder>

getNpmPackagesCount()

public int getNpmPackagesCount()

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Returns
TypeDescription
int

getNpmPackagesList()

public List<NpmPackage> getNpmPackagesList()

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Returns
TypeDescription
List<NpmPackage>

getNpmPackagesOrBuilder(int index)

public NpmPackageOrBuilder getNpmPackagesOrBuilder(int index)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NpmPackageOrBuilder

getNpmPackagesOrBuilderList()

public List<? extends NpmPackageOrBuilder> getNpmPackagesOrBuilderList()

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Returns
TypeDescription
List<? extends com.google.devtools.artifactregistry.v1.NpmPackageOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListNpmPackagesResponse other)

public ListNpmPackagesResponse.Builder mergeFrom(ListNpmPackagesResponse other)
Parameter
NameDescription
otherListNpmPackagesResponse
Returns
TypeDescription
ListNpmPackagesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNpmPackages(int index)

public ListNpmPackagesResponse.Builder removeNpmPackages(int index)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListNpmPackagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListNpmPackagesResponse.Builder setNextPageToken(String value)

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListNpmPackagesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListNpmPackagesResponse.Builder setNextPageTokenBytes(ByteString value)

The token to retrieve the next page of artifacts, or empty if there are no more artifacts to return.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListNpmPackagesResponse.Builder

This builder for chaining.

setNpmPackages(int index, NpmPackage value)

public ListNpmPackagesResponse.Builder setNpmPackages(int index, NpmPackage value)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameters
NameDescription
indexint
valueNpmPackage
Returns
TypeDescription
ListNpmPackagesResponse.Builder

setNpmPackages(int index, NpmPackage.Builder builderForValue)

public ListNpmPackagesResponse.Builder setNpmPackages(int index, NpmPackage.Builder builderForValue)

The npm packages returned.

repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;

Parameters
NameDescription
indexint
builderForValueNpmPackage.Builder
Returns
TypeDescription
ListNpmPackagesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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