Class ListNpmPackagesResponse.Builder (1.53.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
Type Description
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
Name Description
values Iterable<? extends com.google.devtools.artifactregistry.v1.NpmPackage>
Returns
Type Description
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
Name Description
value NpmPackage
Returns
Type Description
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
Name Description
builderForValue NpmPackage.Builder
Returns
Type Description
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
Name Description
index int
value NpmPackage
Returns
Type Description
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
Name Description
index int
builderForValue NpmPackage.Builder
Returns
Type Description
ListNpmPackagesResponse.Builder

addNpmPackagesBuilder()

public NpmPackage.Builder addNpmPackagesBuilder()

The npm packages returned.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
NpmPackage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListNpmPackagesResponse build()
Returns
Type Description
ListNpmPackagesResponse

buildPartial()

public ListNpmPackagesResponse buildPartial()
Returns
Type Description
ListNpmPackagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListNpmPackagesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
ListNpmPackagesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListNpmPackagesResponse getDefaultInstanceForType()
Returns
Type Description
ListNpmPackagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
NpmPackage

getNpmPackagesBuilder(int index)

public NpmPackage.Builder getNpmPackagesBuilder(int index)

The npm packages returned.

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

Parameter
Name Description
index int
Returns
Type Description
NpmPackage.Builder

getNpmPackagesBuilderList()

public List<NpmPackage.Builder> getNpmPackagesBuilderList()

The npm packages returned.

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

Returns
Type Description
List<Builder>

getNpmPackagesCount()

public int getNpmPackagesCount()

The npm packages returned.

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

Returns
Type Description
int

getNpmPackagesList()

public List<NpmPackage> getNpmPackagesList()

The npm packages returned.

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

Returns
Type Description
List<NpmPackage>

getNpmPackagesOrBuilder(int index)

public NpmPackageOrBuilder getNpmPackagesOrBuilder(int index)

The npm packages returned.

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

Parameter
Name Description
index int
Returns
Type Description
NpmPackageOrBuilder

getNpmPackagesOrBuilderList()

public List<? extends NpmPackageOrBuilder> getNpmPackagesOrBuilderList()

The npm packages returned.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListNpmPackagesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListNpmPackagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int
Returns
Type Description
ListNpmPackagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListNpmPackagesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
index int
value NpmPackage
Returns
Type Description
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
Name Description
index int
builderForValue NpmPackage.Builder
Returns
Type Description
ListNpmPackagesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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