Send feedback
Class ListVersionsResponse.Builder (1.7.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.7.0 keyboard_arrow_down
public static final class ListVersionsResponse . Builder extends GeneratedMessageV3 . Builder<ListVersionsResponse . Builder > implements ListVersionsResponseOrBuilder
The response from listing versions.
Protobuf type google.devtools.artifactregistry.v1beta2.ListVersionsResponse
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 ()
Returns
Methods
public ListVersionsResponse . Builder addAllVersions ( Iterable <? extends Version > values )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter
Name Description values Iterable <? extends com.google.devtools.artifactregistry.v1beta2.Version >
Returns
public ListVersionsResponse . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
public ListVersionsResponse . Builder addVersions ( Version value )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter
Returns
public ListVersionsResponse . Builder addVersions ( Version . Builder builderForValue )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter
Returns
public ListVersionsResponse . Builder addVersions ( int index , Version value )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameters
Returns
public ListVersionsResponse . Builder addVersions ( int index , Version . Builder builderForValue )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameters
Returns
public Version . Builder addVersionsBuilder ()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Returns
public Version . Builder addVersionsBuilder ( int index )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter
Returns
public ListVersionsResponse build ()
Returns
public ListVersionsResponse buildPartial ()
Returns
public ListVersionsResponse . Builder clear ()
Returns
Overrides
public ListVersionsResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearNextPageToken()
public ListVersionsResponse . Builder clearNextPageToken ()
The token to retrieve the next page of versions, or empty if there are no
more versions to return.
string next_page_token = 2;
Returns
public ListVersionsResponse . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
public ListVersionsResponse . Builder clearVersions ()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Returns
public ListVersionsResponse . Builder clone ()
Returns
Overrides
public ListVersionsResponse getDefaultInstanceForType ()
Returns
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
getNextPageToken()
public String getNextPageToken ()
The token to retrieve the next page of versions, or empty if there are no
more versions 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 versions, or empty if there are no
more versions to return.
string next_page_token = 2;
Returns
Type Description ByteString The bytes for nextPageToken.
public Version getVersions ( int index )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter
Returns
public Version . Builder getVersionsBuilder ( int index )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter
Returns
public List<Version . Builder > getVersionsBuilderList ()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Returns
public int getVersionsCount ()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Returns
public List<Version> getVersionsList ()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Returns
public VersionOrBuilder getVersionsOrBuilder ( int index )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter
Returns
public List <? extends VersionOrBuilder > getVersionsOrBuilderList ()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Returns
Type Description List <? extends com.google.devtools.artifactregistry.v1beta2.VersionOrBuilder >
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public ListVersionsResponse . Builder mergeFrom ( ListVersionsResponse other )
Parameter
Returns
public ListVersionsResponse . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
public ListVersionsResponse . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
public final ListVersionsResponse . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public ListVersionsResponse . Builder removeVersions ( int index )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter
Returns
public ListVersionsResponse . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListVersionsResponse . Builder setNextPageToken ( String value )
The token to retrieve the next page of versions, or empty if there are no
more versions to return.
string next_page_token = 2;
Parameter
Name Description value String
The nextPageToken to set.
Returns
setNextPageTokenBytes(ByteString value)
public ListVersionsResponse . Builder setNextPageTokenBytes ( ByteString value )
The token to retrieve the next page of versions, or empty if there are no
more versions to return.
string next_page_token = 2;
Parameter
Name Description value ByteString
The bytes for nextPageToken to set.
Returns
public ListVersionsResponse . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
public final ListVersionsResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
public ListVersionsResponse . Builder setVersions ( int index , Version value )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameters
Returns
public ListVersionsResponse . Builder setVersions ( int index , Version . Builder builderForValue )
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameters
Returns
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."],[],[]]