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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 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>
|
public ListVersionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListVersionsResponse.Builder addVersions(Version value)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter |
Name |
Description |
value |
Version
|
public ListVersionsResponse.Builder addVersions(Version.Builder builderForValue)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
public ListVersionsResponse.Builder addVersions(int index, Version value)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Version
|
public ListVersionsResponse.Builder addVersions(int index, Version.Builder builderForValue)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
public Version.Builder addVersionsBuilder()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
public Version.Builder addVersionsBuilder(int index)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter |
Name |
Description |
index |
int
|
public ListVersionsResponse build()
public ListVersionsResponse buildPartial()
public ListVersionsResponse.Builder clear()
Overrides
public ListVersionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
public ListVersionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListVersionsResponse.Builder clearVersions()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
public ListVersionsResponse.Builder clone()
Overrides
public ListVersionsResponse getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Name |
Description |
index |
int
|
public Version.Builder getVersionsBuilder(int index)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter |
Name |
Description |
index |
int
|
public List<Version.Builder> getVersionsBuilderList()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
public int getVersionsCount()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Returns |
Type |
Description |
int |
|
public List<Version> getVersionsList()
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
public VersionOrBuilder getVersionsOrBuilder(int index)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter |
Name |
Description |
index |
int
|
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()
Overrides
public final boolean isInitialized()
Overrides
public ListVersionsResponse.Builder mergeFrom(ListVersionsResponse other)
public ListVersionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListVersionsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final ListVersionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ListVersionsResponse.Builder removeVersions(int index)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameter |
Name |
Description |
index |
int
|
public ListVersionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public ListVersionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ListVersionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ListVersionsResponse.Builder setVersions(int index, Version value)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Version
|
public ListVersionsResponse.Builder setVersions(int index, Version.Builder builderForValue)
The versions returned.
repeated .google.devtools.artifactregistry.v1beta2.Version versions = 1;