public static final class ListVersionsResponse.Builder extends GeneratedMessageV3.Builder<ListVersionsResponse.Builder> implements ListVersionsResponseOrBuilder
The response from listing versions.
Protobuf type google.devtools.artifactregistry.v1.ListVersionsResponse
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.v1.Version versions = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.devtools.artifactregistry.v1.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.v1.Version versions = 1;
Parameter
Returns
public ListVersionsResponse.Builder addVersions(Version.Builder builderForValue)
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Parameter
Returns
public ListVersionsResponse.Builder addVersions(int index, Version value)
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Parameters
Returns
public ListVersionsResponse.Builder addVersions(int index, Version.Builder builderForValue)
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Parameters
Returns
public Version.Builder addVersionsBuilder()
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Returns
public Version.Builder addVersionsBuilder(int index)
The versions returned.
repeated .google.devtools.artifactregistry.v1.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.v1.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.v1.Version versions = 1;
Parameter
Returns
public Version.Builder getVersionsBuilder(int index)
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Parameter
Returns
public List<Version.Builder> getVersionsBuilderList()
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Returns
public int getVersionsCount()
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Returns
public List<Version> getVersionsList()
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Returns
public VersionOrBuilder getVersionsOrBuilder(int index)
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Parameter
Returns
public List<? extends VersionOrBuilder> getVersionsOrBuilderList()
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Returns
Type | Description |
List<? extends com.google.devtools.artifactregistry.v1.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.v1.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.v1.Version versions = 1;
Parameters
Returns
public ListVersionsResponse.Builder setVersions(int index, Version.Builder builderForValue)
The versions returned.
repeated .google.devtools.artifactregistry.v1.Version versions = 1;
Parameters
Returns