Send feedback
Class ListPackagesResponse.Builder (1.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.2.1 keyboard_arrow_down
public static final class ListPackagesResponse . Builder extends GeneratedMessageV3 . Builder<ListPackagesResponse . Builder > implements ListPackagesResponseOrBuilder
The response from listing packages.
Protobuf type google.devtools.artifactregistry.v1.ListPackagesResponse
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Returns
Methods
public ListPackagesResponse . Builder addAllPackages ( Iterable <? extends Package > values )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameter
Name Description values Iterable <? extends com.google.devtools.artifactregistry.v1.Package >
Returns
public ListPackagesResponse . Builder addPackages ( Package value )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameter
Returns
public ListPackagesResponse . Builder addPackages ( Package . Builder builderForValue )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameter
Returns
public ListPackagesResponse . Builder addPackages ( int index , Package value )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameters
Returns
public ListPackagesResponse . Builder addPackages ( int index , Package . Builder builderForValue )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameters
Returns
public Package . Builder addPackagesBuilder ()
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Returns
public Package . Builder addPackagesBuilder ( int index )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameter
Returns
public ListPackagesResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public ListPackagesResponse build ()
Returns
public ListPackagesResponse buildPartial ()
Returns
public ListPackagesResponse . Builder clear ()
Returns
Overrides
public ListPackagesResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
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
public ListPackagesResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public ListPackagesResponse . Builder clearPackages ()
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Returns
public ListPackagesResponse . Builder clone ()
Returns
Overrides
public ListPackagesResponse getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
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.v1.Package packages = 1;
Parameter
Returns
public Package . Builder getPackagesBuilder ( int index )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameter
Returns
public List<Package . Builder > getPackagesBuilderList ()
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Returns
public int getPackagesCount ()
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Returns
public List<Package> getPackagesList ()
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Returns
public PackageOrBuilder getPackagesOrBuilder ( int index )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameter
Returns
public List <? extends PackageOrBuilder > getPackagesOrBuilderList ()
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Returns
Type Description List <? extends com.google.devtools.artifactregistry.v1.PackageOrBuilder >
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public ListPackagesResponse . Builder mergeFrom ( ListPackagesResponse other )
Parameter
Returns
public ListPackagesResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public ListPackagesResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public final ListPackagesResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public ListPackagesResponse . Builder removePackages ( int index )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameter
Returns
public ListPackagesResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
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
public ListPackagesResponse . Builder setPackages ( int index , Package value )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameters
Returns
public ListPackagesResponse . Builder setPackages ( int index , Package . Builder builderForValue )
The packages returned.
repeated .google.devtools.artifactregistry.v1.Package packages = 1;
Parameters
Returns
public ListPackagesResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public final ListPackagesResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]