Class ListPackagesResponse.Builder (1.32.0)

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

Static Methods

getDescriptor()

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

Methods

addAllPackages(Iterable<? extends Package> values)

public ListPackagesResponse.Builder addAllPackages(Iterable<? extends Package> values)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.devtools.artifactregistry.v1beta2.Package>
Returns
TypeDescription
ListPackagesResponse.Builder

addPackages(Package value)

public ListPackagesResponse.Builder addPackages(Package value)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameter
NameDescription
valuePackage
Returns
TypeDescription
ListPackagesResponse.Builder

addPackages(Package.Builder builderForValue)

public ListPackagesResponse.Builder addPackages(Package.Builder builderForValue)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameter
NameDescription
builderForValuePackage.Builder
Returns
TypeDescription
ListPackagesResponse.Builder

addPackages(int index, Package value)

public ListPackagesResponse.Builder addPackages(int index, Package value)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameters
NameDescription
indexint
valuePackage
Returns
TypeDescription
ListPackagesResponse.Builder

addPackages(int index, Package.Builder builderForValue)

public ListPackagesResponse.Builder addPackages(int index, Package.Builder builderForValue)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameters
NameDescription
indexint
builderForValuePackage.Builder
Returns
TypeDescription
ListPackagesResponse.Builder

addPackagesBuilder()

public Package.Builder addPackagesBuilder()

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Returns
TypeDescription
Package.Builder

addPackagesBuilder(int index)

public Package.Builder addPackagesBuilder(int index)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Package.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPackagesResponse build()
Returns
TypeDescription
ListPackagesResponse

buildPartial()

public ListPackagesResponse buildPartial()
Returns
TypeDescription
ListPackagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListPackagesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListPackagesResponse.Builder
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;

Returns
TypeDescription
ListPackagesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackages()

public ListPackagesResponse.Builder clearPackages()

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Returns
TypeDescription
ListPackagesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPackagesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPackagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

getPackages(int index)

public Package getPackages(int index)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Package

getPackagesBuilder(int index)

public Package.Builder getPackagesBuilder(int index)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Package.Builder

getPackagesBuilderList()

public List<Package.Builder> getPackagesBuilderList()

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Returns
TypeDescription
List<Builder>

getPackagesCount()

public int getPackagesCount()

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Returns
TypeDescription
int

getPackagesList()

public List<Package> getPackagesList()

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Returns
TypeDescription
List<Package>

getPackagesOrBuilder(int index)

public PackageOrBuilder getPackagesOrBuilder(int index)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PackageOrBuilder

getPackagesOrBuilderList()

public List<? extends PackageOrBuilder> getPackagesOrBuilderList()

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Returns
TypeDescription
List<? extends com.google.devtools.artifactregistry.v1beta2.PackageOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPackagesResponse other)

public ListPackagesResponse.Builder mergeFrom(ListPackagesResponse other)
Parameter
NameDescription
otherListPackagesResponse
Returns
TypeDescription
ListPackagesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePackages(int index)

public ListPackagesResponse.Builder removePackages(int index)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListPackagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListPackagesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListPackagesResponse.Builder
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListPackagesResponse.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListPackagesResponse.Builder

This builder for chaining.

setPackages(int index, Package value)

public ListPackagesResponse.Builder setPackages(int index, Package value)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameters
NameDescription
indexint
valuePackage
Returns
TypeDescription
ListPackagesResponse.Builder

setPackages(int index, Package.Builder builderForValue)

public ListPackagesResponse.Builder setPackages(int index, Package.Builder builderForValue)

The packages returned.

repeated .google.devtools.artifactregistry.v1beta2.Package packages = 1;

Parameters
NameDescription
indexint
builderForValuePackage.Builder
Returns
TypeDescription
ListPackagesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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