Class ListPackagesResponse.Builder (1.41.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
Type Description
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
Name Description
values Iterable<? extends com.google.devtools.artifactregistry.v1beta2.Package>
Returns
Type Description
ListPackagesResponse.Builder

addPackages(Package value)

public ListPackagesResponse.Builder addPackages(Package value)

The packages returned.

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

Parameter
Name Description
value Package
Returns
Type Description
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
Name Description
builderForValue Package.Builder
Returns
Type Description
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
Name Description
index int
value Package
Returns
Type Description
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
Name Description
index int
builderForValue Package.Builder
Returns
Type Description
ListPackagesResponse.Builder

addPackagesBuilder()

public Package.Builder addPackagesBuilder()

The packages returned.

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

Returns
Type Description
Package.Builder

addPackagesBuilder(int index)

public Package.Builder addPackagesBuilder(int index)

The packages returned.

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

Parameter
Name Description
index int
Returns
Type Description
Package.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPackagesResponse build()
Returns
Type Description
ListPackagesResponse

buildPartial()

public ListPackagesResponse buildPartial()
Returns
Type Description
ListPackagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPackages()

public ListPackagesResponse.Builder clearPackages()

The packages returned.

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

Returns
Type Description
ListPackagesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPackagesResponse getDefaultInstanceForType()
Returns
Type Description
ListPackagesResponse

getDescriptorForType()

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

getPackages(int index)

public Package getPackages(int index)

The packages returned.

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

Parameter
Name Description
index int
Returns
Type Description
Package

getPackagesBuilder(int index)

public Package.Builder getPackagesBuilder(int index)

The packages returned.

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

Parameter
Name Description
index int
Returns
Type Description
Package.Builder

getPackagesBuilderList()

public List<Package.Builder> getPackagesBuilderList()

The packages returned.

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

Returns
Type Description
List<Builder>

getPackagesCount()

public int getPackagesCount()

The packages returned.

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

Returns
Type Description
int

getPackagesList()

public List<Package> getPackagesList()

The packages returned.

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

Returns
Type Description
List<Package>

getPackagesOrBuilder(int index)

public PackageOrBuilder getPackagesOrBuilder(int index)

The packages returned.

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

Parameter
Name Description
index int
Returns
Type Description
PackageOrBuilder

getPackagesOrBuilderList()

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>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListPackagesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListPackagesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListPackagesResponse.Builder
Overrides

removePackages(int index)

public ListPackagesResponse.Builder removePackages(int index)

The packages returned.

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

Parameter
Name Description
index int
Returns
Type Description
ListPackagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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