Class ListRepositoriesResponse.Builder (1.46.0)

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

The response from listing repositories.

Protobuf type google.devtools.artifactregistry.v1.ListRepositoriesResponse

Static Methods

getDescriptor()

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

Methods

addAllRepositories(Iterable<? extends Repository> values)

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

The repositories returned.

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

Parameter
Name Description
values Iterable<? extends com.google.devtools.artifactregistry.v1.Repository>
Returns
Type Description
ListRepositoriesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRepositories(Repository value)

public ListRepositoriesResponse.Builder addRepositories(Repository value)

The repositories returned.

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

Parameter
Name Description
value Repository
Returns
Type Description
ListRepositoriesResponse.Builder

addRepositories(Repository.Builder builderForValue)

public ListRepositoriesResponse.Builder addRepositories(Repository.Builder builderForValue)

The repositories returned.

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

Parameter
Name Description
builderForValue Repository.Builder
Returns
Type Description
ListRepositoriesResponse.Builder

addRepositories(int index, Repository value)

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

The repositories returned.

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

Parameters
Name Description
index int
value Repository
Returns
Type Description
ListRepositoriesResponse.Builder

addRepositories(int index, Repository.Builder builderForValue)

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

The repositories returned.

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

Parameters
Name Description
index int
builderForValue Repository.Builder
Returns
Type Description
ListRepositoriesResponse.Builder

addRepositoriesBuilder()

public Repository.Builder addRepositoriesBuilder()

The repositories returned.

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

Returns
Type Description
Repository.Builder

addRepositoriesBuilder(int index)

public Repository.Builder addRepositoriesBuilder(int index)

The repositories returned.

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

Parameter
Name Description
index int
Returns
Type Description
Repository.Builder

build()

public ListRepositoriesResponse build()
Returns
Type Description
ListRepositoriesResponse

buildPartial()

public ListRepositoriesResponse buildPartial()
Returns
Type Description
ListRepositoriesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRepositories()

public ListRepositoriesResponse.Builder clearRepositories()

The repositories returned.

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

Returns
Type Description
ListRepositoriesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListRepositoriesResponse getDefaultInstanceForType()
Returns
Type Description
ListRepositoriesResponse

getDescriptorForType()

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

The bytes for nextPageToken.

getRepositories(int index)

public Repository getRepositories(int index)

The repositories returned.

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

Parameter
Name Description
index int
Returns
Type Description
Repository

getRepositoriesBuilder(int index)

public Repository.Builder getRepositoriesBuilder(int index)

The repositories returned.

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

Parameter
Name Description
index int
Returns
Type Description
Repository.Builder

getRepositoriesBuilderList()

public List<Repository.Builder> getRepositoriesBuilderList()

The repositories returned.

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

Returns
Type Description
List<Builder>

getRepositoriesCount()

public int getRepositoriesCount()

The repositories returned.

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

Returns
Type Description
int

getRepositoriesList()

public List<Repository> getRepositoriesList()

The repositories returned.

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

Returns
Type Description
List<Repository>

getRepositoriesOrBuilder(int index)

public RepositoryOrBuilder getRepositoriesOrBuilder(int index)

The repositories returned.

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

Parameter
Name Description
index int
Returns
Type Description
RepositoryOrBuilder

getRepositoriesOrBuilderList()

public List<? extends RepositoryOrBuilder> getRepositoriesOrBuilderList()

The repositories returned.

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

Returns
Type Description
List<? extends com.google.devtools.artifactregistry.v1.RepositoryOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListRepositoriesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRepositories(int index)

public ListRepositoriesResponse.Builder removeRepositories(int index)

The repositories returned.

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

Parameter
Name Description
index int
Returns
Type Description
ListRepositoriesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListRepositoriesResponse.Builder
Overrides

setRepositories(int index, Repository value)

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

The repositories returned.

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

Parameters
Name Description
index int
value Repository
Returns
Type Description
ListRepositoriesResponse.Builder

setRepositories(int index, Repository.Builder builderForValue)

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

The repositories returned.

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

Parameters
Name Description
index int
builderForValue Repository.Builder
Returns
Type Description
ListRepositoriesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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