Class ListRepositoriesResponse.Builder (1.14.0)

public static final class ListRepositoriesResponse.Builder extends GeneratedMessageV3.Builder<ListRepositoriesResponse.Builder> implements ListRepositoriesResponseOrBuilder

The response from listing repositories.

Protobuf type google.devtools.artifactregistry.v1beta2.ListRepositoriesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllRepositories(Iterable<? extends Repository> values)

public ListRepositoriesResponse.Builder addAllRepositories(Iterable<? extends Repository> values)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.devtools.artifactregistry.v1beta2.Repository>
Returns
TypeDescription
ListRepositoriesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListRepositoriesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

addRepositories(Repository value)

public ListRepositoriesResponse.Builder addRepositories(Repository value)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameter
NameDescription
valueRepository
Returns
TypeDescription
ListRepositoriesResponse.Builder

addRepositories(Repository.Builder builderForValue)

public ListRepositoriesResponse.Builder addRepositories(Repository.Builder builderForValue)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameter
NameDescription
builderForValueRepository.Builder
Returns
TypeDescription
ListRepositoriesResponse.Builder

addRepositories(int index, Repository value)

public ListRepositoriesResponse.Builder addRepositories(int index, Repository value)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameters
NameDescription
indexint
valueRepository
Returns
TypeDescription
ListRepositoriesResponse.Builder

addRepositories(int index, Repository.Builder builderForValue)

public ListRepositoriesResponse.Builder addRepositories(int index, Repository.Builder builderForValue)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameters
NameDescription
indexint
builderForValueRepository.Builder
Returns
TypeDescription
ListRepositoriesResponse.Builder

addRepositoriesBuilder()

public Repository.Builder addRepositoriesBuilder()

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Returns
TypeDescription
Repository.Builder

addRepositoriesBuilder(int index)

public Repository.Builder addRepositoriesBuilder(int index)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Repository.Builder

build()

public ListRepositoriesResponse build()
Returns
TypeDescription
ListRepositoriesResponse

buildPartial()

public ListRepositoriesResponse buildPartial()
Returns
TypeDescription
ListRepositoriesResponse

clear()

public ListRepositoriesResponse.Builder clear()
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListRepositoriesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

clearNextPageToken()

public ListRepositoriesResponse.Builder clearNextPageToken()

The token to retrieve the next page of repositories, or empty if there are no more repositories to return.

string next_page_token = 2;

Returns
TypeDescription
ListRepositoriesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListRepositoriesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

clearRepositories()

public ListRepositoriesResponse.Builder clearRepositories()

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Returns
TypeDescription
ListRepositoriesResponse.Builder

clone()

public ListRepositoriesResponse.Builder clone()
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListRepositoriesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListRepositoriesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The token to retrieve the next page of repositories, or empty if there are no more repositories to return.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The token to retrieve the next page of repositories, or empty if there are no more repositories to return.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getRepositories(int index)

public Repository getRepositories(int index)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Repository

getRepositoriesBuilder(int index)

public Repository.Builder getRepositoriesBuilder(int index)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Repository.Builder

getRepositoriesBuilderList()

public List<Repository.Builder> getRepositoriesBuilderList()

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Returns
TypeDescription
List<Builder>

getRepositoriesCount()

public int getRepositoriesCount()

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Returns
TypeDescription
int

getRepositoriesList()

public List<Repository> getRepositoriesList()

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Returns
TypeDescription
List<Repository>

getRepositoriesOrBuilder(int index)

public RepositoryOrBuilder getRepositoriesOrBuilder(int index)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RepositoryOrBuilder

getRepositoriesOrBuilderList()

public List<? extends RepositoryOrBuilder> getRepositoriesOrBuilderList()

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Returns
TypeDescription
List<? extends com.google.devtools.artifactregistry.v1beta2.RepositoryOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListRepositoriesResponse other)

public ListRepositoriesResponse.Builder mergeFrom(ListRepositoriesResponse other)
Parameter
NameDescription
otherListRepositoriesResponse
Returns
TypeDescription
ListRepositoriesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListRepositoriesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListRepositoriesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListRepositoriesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

removeRepositories(int index)

public ListRepositoriesResponse.Builder removeRepositories(int index)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListRepositoriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListRepositoriesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

setNextPageToken(String value)

public ListRepositoriesResponse.Builder setNextPageToken(String value)

The token to retrieve the next page of repositories, or empty if there are no more repositories to return.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListRepositoriesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListRepositoriesResponse.Builder setNextPageTokenBytes(ByteString value)

The token to retrieve the next page of repositories, or empty if there are no more repositories to return.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListRepositoriesResponse.Builder

This builder for chaining.

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

public ListRepositoriesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides

setRepositories(int index, Repository value)

public ListRepositoriesResponse.Builder setRepositories(int index, Repository value)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameters
NameDescription
indexint
valueRepository
Returns
TypeDescription
ListRepositoriesResponse.Builder

setRepositories(int index, Repository.Builder builderForValue)

public ListRepositoriesResponse.Builder setRepositories(int index, Repository.Builder builderForValue)

The repositories returned.

repeated .google.devtools.artifactregistry.v1beta2.Repository repositories = 1;

Parameters
NameDescription
indexint
builderForValueRepository.Builder
Returns
TypeDescription
ListRepositoriesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ListRepositoriesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListRepositoriesResponse.Builder
Overrides