Class ListRepositoriesResponse.Builder (3.37.0)

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

Message for response to listing Repositories.

Protobuf type google.devtools.cloudbuild.v2.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 list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloudbuild.v2.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 list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Parameter
NameDescription
valueRepository
Returns
TypeDescription
ListRepositoriesResponse.Builder

addRepositories(Repository.Builder builderForValue)

public ListRepositoriesResponse.Builder addRepositories(Repository.Builder builderForValue)

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.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 list of Repositories.

repeated .google.devtools.cloudbuild.v2.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 list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Parameters
NameDescription
indexint
builderForValueRepository.Builder
Returns
TypeDescription
ListRepositoriesResponse.Builder

addRepositoriesBuilder()

public Repository.Builder addRepositoriesBuilder()

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Returns
TypeDescription
Repository.Builder

addRepositoriesBuilder(int index)

public Repository.Builder addRepositoriesBuilder(int index)

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.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()

A token identifying a page of results the server should 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 list of Repositories.

repeated .google.devtools.cloudbuild.v2.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()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getRepositories(int index)

public Repository getRepositories(int index)

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Repository

getRepositoriesBuilder(int index)

public Repository.Builder getRepositoriesBuilder(int index)

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Repository.Builder

getRepositoriesBuilderList()

public List<Repository.Builder> getRepositoriesBuilderList()

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Returns
TypeDescription
List<Builder>

getRepositoriesCount()

public int getRepositoriesCount()

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Returns
TypeDescription
int

getRepositoriesList()

public List<Repository> getRepositoriesList()

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Returns
TypeDescription
List<Repository>

getRepositoriesOrBuilder(int index)

public RepositoryOrBuilder getRepositoriesOrBuilder(int index)

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RepositoryOrBuilder

getRepositoriesOrBuilderList()

public List<? extends RepositoryOrBuilder> getRepositoriesOrBuilderList()

The list of Repositories.

repeated .google.devtools.cloudbuild.v2.Repository repositories = 1;

Returns
TypeDescription
List<? extends com.google.cloudbuild.v2.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 list of Repositories.

repeated .google.devtools.cloudbuild.v2.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)

A token identifying a page of results the server should 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)

A token identifying a page of results the server should 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 list of Repositories.

repeated .google.devtools.cloudbuild.v2.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 list of Repositories.

repeated .google.devtools.cloudbuild.v2.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