public static final class ListPackagesResponse.Builder extends GeneratedMessageV3.Builder<ListPackagesResponse.Builder> implements ListPackagesResponseOrBuilder
The response from listing packages.
Protobuf type google.devtools.artifactregistry.v1beta2.ListPackagesResponse
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 ListPackagesResponse.Builder addAllPackages(Iterable<? extends Package> values)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.devtools.artifactregistry.v1beta2.Package>
|
public ListPackagesResponse.Builder addPackages(Package value)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Parameter |
---|
Name | Description |
value | Package
|
public ListPackagesResponse.Builder addPackages(Package.Builder builderForValue)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public ListPackagesResponse.Builder addPackages(int index, Package value)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public ListPackagesResponse.Builder addPackages(int index, Package.Builder builderForValue)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public Package.Builder addPackagesBuilder()
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public Package.Builder addPackagesBuilder(int index)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Parameter |
---|
Name | Description |
index | int
|
public ListPackagesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListPackagesResponse build()
public ListPackagesResponse buildPartial()
public ListPackagesResponse.Builder clear()
Overrides
public ListPackagesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNextPageToken()
public ListPackagesResponse.Builder clearNextPageToken()
The token to retrieve the next page of packages, or empty if there are no
more packages to return.
string next_page_token = 2;
public ListPackagesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListPackagesResponse.Builder clearPackages()
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public ListPackagesResponse.Builder clone()
Overrides
public ListPackagesResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNextPageToken()
public String getNextPageToken()
The token to retrieve the next page of packages, or empty if there are no
more packages 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 packages, or empty if there are no
more packages to return.
string next_page_token = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for nextPageToken.
|
public Package getPackages(int index)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Parameter |
---|
Name | Description |
index | int
|
public Package.Builder getPackagesBuilder(int index)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<Package.Builder> getPackagesBuilderList()
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public int getPackagesCount()
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Returns |
---|
Type | Description |
int | |
public List<Package> getPackagesList()
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public PackageOrBuilder getPackagesOrBuilder(int index)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends PackageOrBuilder> getPackagesOrBuilderList()
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Returns |
---|
Type | Description |
List<? extends com.google.devtools.artifactregistry.v1beta2.PackageOrBuilder> | |
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ListPackagesResponse.Builder mergeFrom(ListPackagesResponse other)
public ListPackagesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListPackagesResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final ListPackagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ListPackagesResponse.Builder removePackages(int index)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
Parameter |
---|
Name | Description |
index | int
|
public ListPackagesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNextPageToken(String value)
public ListPackagesResponse.Builder setNextPageToken(String value)
The token to retrieve the next page of packages, or empty if there are no
more packages to return.
string next_page_token = 2;
Parameter |
---|
Name | Description |
value | String
The nextPageToken to set.
|
setNextPageTokenBytes(ByteString value)
public ListPackagesResponse.Builder setNextPageTokenBytes(ByteString value)
The token to retrieve the next page of packages, or empty if there are no
more packages to return.
string next_page_token = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
public ListPackagesResponse.Builder setPackages(int index, Package value)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public ListPackagesResponse.Builder setPackages(int index, Package.Builder builderForValue)
The packages returned.
repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;
public ListPackagesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ListPackagesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides