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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
public ListNpmPackagesResponse.Builder addNpmPackages(NpmPackage value)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter
Returns
public ListNpmPackagesResponse.Builder addNpmPackages(NpmPackage.Builder builderForValue)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter
Returns
public ListNpmPackagesResponse.Builder addNpmPackages(int index, NpmPackage value)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameters
Returns
public ListNpmPackagesResponse.Builder addNpmPackages(int index, NpmPackage.Builder builderForValue)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameters
Returns
public NpmPackage.Builder addNpmPackagesBuilder()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Returns
public NpmPackage.Builder addNpmPackagesBuilder(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter
Returns
public ListNpmPackagesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ListNpmPackagesResponse build()
Returns
public ListNpmPackagesResponse buildPartial()
Returns
public ListNpmPackagesResponse.Builder clear()
Returns
Overrides
public ListNpmPackagesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
public ListNpmPackagesResponse.Builder clearNpmPackages()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Returns
public ListNpmPackagesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public ListNpmPackagesResponse.Builder clone()
Returns
Overrides
public ListNpmPackagesResponse getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
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.
|
public NpmPackage getNpmPackages(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter
Returns
public NpmPackage.Builder getNpmPackagesBuilder(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter
Returns
public List<NpmPackage.Builder> getNpmPackagesBuilderList()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Returns
public int getNpmPackagesCount()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Returns
public List<NpmPackage> getNpmPackagesList()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Returns
public NpmPackageOrBuilder getNpmPackagesOrBuilder(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter
Returns
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> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ListNpmPackagesResponse.Builder mergeFrom(ListNpmPackagesResponse other)
Parameter
Returns
public ListNpmPackagesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public ListNpmPackagesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final ListNpmPackagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public ListNpmPackagesResponse.Builder removeNpmPackages(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter
Returns
public ListNpmPackagesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
public ListNpmPackagesResponse.Builder setNpmPackages(int index, NpmPackage value)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameters
Returns
public ListNpmPackagesResponse.Builder setNpmPackages(int index, NpmPackage.Builder builderForValue)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameters
Returns
public ListNpmPackagesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final ListNpmPackagesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides