Class ListProjectsResponse.Builder (1.5.6)

public static final class ListProjectsResponse.Builder extends GeneratedMessageV3.Builder<ListProjectsResponse.Builder> implements ListProjectsResponseOrBuilder

A page of the response received from the ListProjects method. A paginated response where more pages are available has next_page_token set. This token can be used in a subsequent request to retrieve the next request page. NOTE: A response may contain fewer elements than the request page_size and still have a next_page_token.

Protobuf type google.cloud.resourcemanager.v3.ListProjectsResponse

Static Methods

getDescriptor()

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

Methods

addAllProjects(Iterable<? extends Project> values)

public ListProjectsResponse.Builder addAllProjects(Iterable<? extends Project> values)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.resourcemanager.v3.Project>
Returns
TypeDescription
ListProjectsResponse.Builder

addProjects(Project value)

public ListProjectsResponse.Builder addProjects(Project value)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameter
NameDescription
valueProject
Returns
TypeDescription
ListProjectsResponse.Builder

addProjects(Project.Builder builderForValue)

public ListProjectsResponse.Builder addProjects(Project.Builder builderForValue)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameter
NameDescription
builderForValueProject.Builder
Returns
TypeDescription
ListProjectsResponse.Builder

addProjects(int index, Project value)

public ListProjectsResponse.Builder addProjects(int index, Project value)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameters
NameDescription
indexint
valueProject
Returns
TypeDescription
ListProjectsResponse.Builder

addProjects(int index, Project.Builder builderForValue)

public ListProjectsResponse.Builder addProjects(int index, Project.Builder builderForValue)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameters
NameDescription
indexint
builderForValueProject.Builder
Returns
TypeDescription
ListProjectsResponse.Builder

addProjectsBuilder()

public Project.Builder addProjectsBuilder()

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Returns
TypeDescription
Project.Builder

addProjectsBuilder(int index)

public Project.Builder addProjectsBuilder(int index)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Project.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListProjectsResponse build()
Returns
TypeDescription
ListProjectsResponse

buildPartial()

public ListProjectsResponse buildPartial()
Returns
TypeDescription
ListProjectsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListProjectsResponse.Builder clearNextPageToken()

Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the page_token parameter gives the next page of the results. When next_page_token is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.

string next_page_token = 2;

Returns
TypeDescription
ListProjectsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjects()

public ListProjectsResponse.Builder clearProjects()

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Returns
TypeDescription
ListProjectsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListProjectsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListProjectsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the page_token parameter gives the next page of the results. When next_page_token is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the page_token parameter gives the next page of the results. When next_page_token is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getProjects(int index)

public Project getProjects(int index)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Project

getProjectsBuilder(int index)

public Project.Builder getProjectsBuilder(int index)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Project.Builder

getProjectsBuilderList()

public List<Project.Builder> getProjectsBuilderList()

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Returns
TypeDescription
List<Builder>

getProjectsCount()

public int getProjectsCount()

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Returns
TypeDescription
int

getProjectsList()

public List<Project> getProjectsList()

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Returns
TypeDescription
List<Project>

getProjectsOrBuilder(int index)

public ProjectOrBuilder getProjectsOrBuilder(int index)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProjectOrBuilder

getProjectsOrBuilderList()

public List<? extends ProjectOrBuilder> getProjectsOrBuilderList()

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Returns
TypeDescription
List<? extends com.google.cloud.resourcemanager.v3.ProjectOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListProjectsResponse other)

public ListProjectsResponse.Builder mergeFrom(ListProjectsResponse other)
Parameter
NameDescription
otherListProjectsResponse
Returns
TypeDescription
ListProjectsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeProjects(int index)

public ListProjectsResponse.Builder removeProjects(int index)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListProjectsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListProjectsResponse.Builder setNextPageToken(String value)

Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the page_token parameter gives the next page of the results. When next_page_token is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListProjectsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListProjectsResponse.Builder setNextPageTokenBytes(ByteString value)

Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the page_token parameter gives the next page of the results. When next_page_token is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListProjectsResponse.Builder

This builder for chaining.

setProjects(int index, Project value)

public ListProjectsResponse.Builder setProjects(int index, Project value)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameters
NameDescription
indexint
valueProject
Returns
TypeDescription
ListProjectsResponse.Builder

setProjects(int index, Project.Builder builderForValue)

public ListProjectsResponse.Builder setProjects(int index, Project.Builder builderForValue)

The list of Projects under the parent. This list can be paginated.

repeated .google.cloud.resourcemanager.v3.Project projects = 1;

Parameters
NameDescription
indexint
builderForValueProject.Builder
Returns
TypeDescription
ListProjectsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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