Class ListVersionsResponse.Builder (1.53.0)

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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllVersions(Iterable<? extends Version> values)

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
Type Description
ListVersionsResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVersions(Version value)

public ListVersionsResponse.Builder addVersions(Version value)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameter
Name Description
value Version
Returns
Type Description
ListVersionsResponse.Builder

addVersions(Version.Builder builderForValue)

public ListVersionsResponse.Builder addVersions(Version.Builder builderForValue)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameter
Name Description
builderForValue Version.Builder
Returns
Type Description
ListVersionsResponse.Builder

addVersions(int index, Version value)

public ListVersionsResponse.Builder addVersions(int index, Version value)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameters
Name Description
index int
value Version
Returns
Type Description
ListVersionsResponse.Builder

addVersions(int index, Version.Builder builderForValue)

public ListVersionsResponse.Builder addVersions(int index, Version.Builder builderForValue)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameters
Name Description
index int
builderForValue Version.Builder
Returns
Type Description
ListVersionsResponse.Builder

addVersionsBuilder()

public Version.Builder addVersionsBuilder()

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Returns
Type Description
Version.Builder

addVersionsBuilder(int index)

public Version.Builder addVersionsBuilder(int index)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
Version.Builder

build()

public ListVersionsResponse build()
Returns
Type Description
ListVersionsResponse

buildPartial()

public ListVersionsResponse buildPartial()
Returns
Type Description
ListVersionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersions()

public ListVersionsResponse.Builder clearVersions()

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Returns
Type Description
ListVersionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListVersionsResponse getDefaultInstanceForType()
Returns
Type Description
ListVersionsResponse

getDescriptorForType()

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

getVersions(int index)

public Version getVersions(int index)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
Version

getVersionsBuilder(int index)

public Version.Builder getVersionsBuilder(int index)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
Version.Builder

getVersionsBuilderList()

public List<Version.Builder> getVersionsBuilderList()

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Returns
Type Description
List<Builder>

getVersionsCount()

public int getVersionsCount()

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Returns
Type Description
int

getVersionsList()

public List<Version> getVersionsList()

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Returns
Type Description
List<Version>

getVersionsOrBuilder(int index)

public VersionOrBuilder getVersionsOrBuilder(int index)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
VersionOrBuilder

getVersionsOrBuilderList()

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>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListVersionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVersions(int index)

public ListVersionsResponse.Builder removeVersions(int index)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameter
Name Description
index int
Returns
Type Description
ListVersionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

This builder for chaining.

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
Type Description
ListVersionsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersions(int index, Version value)

public ListVersionsResponse.Builder setVersions(int index, Version value)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameters
Name Description
index int
value Version
Returns
Type Description
ListVersionsResponse.Builder

setVersions(int index, Version.Builder builderForValue)

public ListVersionsResponse.Builder setVersions(int index, Version.Builder builderForValue)

The versions returned.

repeated .google.devtools.artifactregistry.v1.Version versions = 1;

Parameters
Name Description
index int
builderForValue Version.Builder
Returns
Type Description
ListVersionsResponse.Builder