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()
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>
|
public ListNpmPackagesResponse.Builder addNpmPackages(NpmPackage value)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public ListNpmPackagesResponse.Builder addNpmPackages(NpmPackage.Builder builderForValue)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public ListNpmPackagesResponse.Builder addNpmPackages(int index, NpmPackage value)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public ListNpmPackagesResponse.Builder addNpmPackages(int index, NpmPackage.Builder builderForValue)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public NpmPackage.Builder addNpmPackagesBuilder()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public NpmPackage.Builder addNpmPackagesBuilder(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter |
---|
Name | Description |
index | int
|
public ListNpmPackagesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListNpmPackagesResponse build()
public ListNpmPackagesResponse buildPartial()
public ListNpmPackagesResponse.Builder clear()
Overrides
public ListNpmPackagesResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
public ListNpmPackagesResponse.Builder clearNpmPackages()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public ListNpmPackagesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListNpmPackagesResponse.Builder clone()
Overrides
public ListNpmPackagesResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Name | Description |
index | int
|
public NpmPackage.Builder getNpmPackagesBuilder(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<NpmPackage.Builder> getNpmPackagesBuilderList()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public int getNpmPackagesCount()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Returns |
---|
Type | Description |
int | |
public List<NpmPackage> getNpmPackagesList()
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public NpmPackageOrBuilder getNpmPackagesOrBuilder(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter |
---|
Name | Description |
index | int
|
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()
Overrides
public final boolean isInitialized()
Overrides
public ListNpmPackagesResponse.Builder mergeFrom(ListNpmPackagesResponse other)
public ListNpmPackagesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListNpmPackagesResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final ListNpmPackagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ListNpmPackagesResponse.Builder removeNpmPackages(int index)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
Parameter |
---|
Name | Description |
index | int
|
public ListNpmPackagesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public ListNpmPackagesResponse.Builder setNpmPackages(int index, NpmPackage value)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public ListNpmPackagesResponse.Builder setNpmPackages(int index, NpmPackage.Builder builderForValue)
The npm packages returned.
repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1;
public ListNpmPackagesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ListNpmPackagesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides