Class SearchOrganizationsResponse.Builder (1.48.0)

public static final class SearchOrganizationsResponse.Builder extends GeneratedMessageV3.Builder<SearchOrganizationsResponse.Builder> implements SearchOrganizationsResponseOrBuilder

The response returned from the SearchOrganizations method.

Protobuf type google.cloud.resourcemanager.v3.SearchOrganizationsResponse

Static Methods

getDescriptor()

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

Methods

addAllOrganizations(Iterable<? extends Organization> values)

public SearchOrganizationsResponse.Builder addAllOrganizations(Iterable<? extends Organization> values)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.resourcemanager.v3.Organization>
Returns
Type Description
SearchOrganizationsResponse.Builder

addOrganizations(Organization value)

public SearchOrganizationsResponse.Builder addOrganizations(Organization value)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameter
Name Description
value Organization
Returns
Type Description
SearchOrganizationsResponse.Builder

addOrganizations(Organization.Builder builderForValue)

public SearchOrganizationsResponse.Builder addOrganizations(Organization.Builder builderForValue)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameter
Name Description
builderForValue Organization.Builder
Returns
Type Description
SearchOrganizationsResponse.Builder

addOrganizations(int index, Organization value)

public SearchOrganizationsResponse.Builder addOrganizations(int index, Organization value)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameters
Name Description
index int
value Organization
Returns
Type Description
SearchOrganizationsResponse.Builder

addOrganizations(int index, Organization.Builder builderForValue)

public SearchOrganizationsResponse.Builder addOrganizations(int index, Organization.Builder builderForValue)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameters
Name Description
index int
builderForValue Organization.Builder
Returns
Type Description
SearchOrganizationsResponse.Builder

addOrganizationsBuilder()

public Organization.Builder addOrganizationsBuilder()

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Returns
Type Description
Organization.Builder

addOrganizationsBuilder(int index)

public Organization.Builder addOrganizationsBuilder(int index)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Organization.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchOrganizationsResponse build()
Returns
Type Description
SearchOrganizationsResponse

buildPartial()

public SearchOrganizationsResponse buildPartial()
Returns
Type Description
SearchOrganizationsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SearchOrganizationsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchOrganizationsResponse.Builder
Overrides

clearNextPageToken()

public SearchOrganizationsResponse.Builder clearNextPageToken()

A pagination token to be used to retrieve the next page of results. If the result is too large to fit within the page size specified in the request, this field will be set with a token that can be used to fetch the next page of results. If this field is empty, it indicates that this response contains the last page of results.

string next_page_token = 2;

Returns
Type Description
SearchOrganizationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrganizations()

public SearchOrganizationsResponse.Builder clearOrganizations()

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Returns
Type Description
SearchOrganizationsResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchOrganizationsResponse getDefaultInstanceForType()
Returns
Type Description
SearchOrganizationsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A pagination token to be used to retrieve the next page of results. If the result is too large to fit within the page size specified in the request, this field will be set with a token that can be used to fetch the next page of results. If this field is empty, it indicates that this response contains the last page of results.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A pagination token to be used to retrieve the next page of results. If the result is too large to fit within the page size specified in the request, this field will be set with a token that can be used to fetch the next page of results. If this field is empty, it indicates that this response contains the last page of results.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getOrganizations(int index)

public Organization getOrganizations(int index)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Organization

getOrganizationsBuilder(int index)

public Organization.Builder getOrganizationsBuilder(int index)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Organization.Builder

getOrganizationsBuilderList()

public List<Organization.Builder> getOrganizationsBuilderList()

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Returns
Type Description
List<Builder>

getOrganizationsCount()

public int getOrganizationsCount()

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Returns
Type Description
int

getOrganizationsList()

public List<Organization> getOrganizationsList()

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Returns
Type Description
List<Organization>

getOrganizationsOrBuilder(int index)

public OrganizationOrBuilder getOrganizationsOrBuilder(int index)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
OrganizationOrBuilder

getOrganizationsOrBuilderList()

public List<? extends OrganizationOrBuilder> getOrganizationsOrBuilderList()

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Returns
Type Description
List<? extends com.google.cloud.resourcemanager.v3.OrganizationOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchOrganizationsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeOrganizations(int index)

public SearchOrganizationsResponse.Builder removeOrganizations(int index)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchOrganizationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public SearchOrganizationsResponse.Builder setNextPageToken(String value)

A pagination token to be used to retrieve the next page of results. If the result is too large to fit within the page size specified in the request, this field will be set with a token that can be used to fetch the next page of results. If this field is empty, it indicates that this response contains the last page of results.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
SearchOrganizationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public SearchOrganizationsResponse.Builder setNextPageTokenBytes(ByteString value)

A pagination token to be used to retrieve the next page of results. If the result is too large to fit within the page size specified in the request, this field will be set with a token that can be used to fetch the next page of results. If this field is empty, it indicates that this response contains the last page of results.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
SearchOrganizationsResponse.Builder

This builder for chaining.

setOrganizations(int index, Organization value)

public SearchOrganizationsResponse.Builder setOrganizations(int index, Organization value)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameters
Name Description
index int
value Organization
Returns
Type Description
SearchOrganizationsResponse.Builder

setOrganizations(int index, Organization.Builder builderForValue)

public SearchOrganizationsResponse.Builder setOrganizations(int index, Organization.Builder builderForValue)

The list of Organizations that matched the search query, possibly paginated.

repeated .google.cloud.resourcemanager.v3.Organization organizations = 1;

Parameters
Name Description
index int
builderForValue Organization.Builder
Returns
Type Description
SearchOrganizationsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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