Class ListOrganizationsResponse.Builder (0.34.0)

public static final class ListOrganizationsResponse.Builder extends GeneratedMessage.Builder<ListOrganizationsResponse.Builder> implements ListOrganizationsResponseOrBuilder

Response message for ListOrganizations RPC.

Protobuf type google.marketingplatform.admin.v1alpha.ListOrganizationsResponse

Static Methods

getDescriptor()

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

Methods

addAllOrganizations(Iterable<? extends Organization> values)

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

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Parameter
Name Description
values Iterable<? extends com.google.ads.marketingplatform.admin.v1alpha.Organization>
Returns
Type Description
ListOrganizationsResponse.Builder

addOrganizations(Organization value)

public ListOrganizationsResponse.Builder addOrganizations(Organization value)

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Parameter
Name Description
value Organization
Returns
Type Description
ListOrganizationsResponse.Builder

addOrganizations(Organization.Builder builderForValue)

public ListOrganizationsResponse.Builder addOrganizations(Organization.Builder builderForValue)

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

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

addOrganizations(int index, Organization value)

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

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

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

addOrganizations(int index, Organization.Builder builderForValue)

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

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

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

addOrganizationsBuilder()

public Organization.Builder addOrganizationsBuilder()

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Returns
Type Description
Organization.Builder

addOrganizationsBuilder(int index)

public Organization.Builder addOrganizationsBuilder(int index)

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Organization.Builder

build()

public ListOrganizationsResponse build()
Returns
Type Description
ListOrganizationsResponse

buildPartial()

public ListOrganizationsResponse buildPartial()
Returns
Type Description
ListOrganizationsResponse

clear()

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

clearNextPageToken()

public ListOrganizationsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListOrganizationsResponse.Builder

This builder for chaining.

clearOrganizations()

public ListOrganizationsResponse.Builder clearOrganizations()

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Returns
Type Description
ListOrganizationsResponse.Builder

getDefaultInstanceForType()

public ListOrganizationsResponse getDefaultInstanceForType()
Returns
Type Description
ListOrganizationsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getOrganizations(int index)

public Organization getOrganizations(int index)

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Organization

getOrganizationsBuilder(int index)

public Organization.Builder getOrganizationsBuilder(int index)

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
Organization.Builder

getOrganizationsBuilderList()

public List<Organization.Builder> getOrganizationsBuilderList()

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Returns
Type Description
List<Builder>

getOrganizationsCount()

public int getOrganizationsCount()

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Returns
Type Description
int

getOrganizationsList()

public List<Organization> getOrganizationsList()

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Returns
Type Description
List<Organization>

getOrganizationsOrBuilder(int index)

public OrganizationOrBuilder getOrganizationsOrBuilder(int index)

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
OrganizationOrBuilder

getOrganizationsOrBuilderList()

public List<? extends OrganizationOrBuilder> getOrganizationsOrBuilderList()

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Returns
Type Description
List<? extends com.google.ads.marketingplatform.admin.v1alpha.OrganizationOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListOrganizationsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeOrganizations(int index)

public ListOrganizationsResponse.Builder removeOrganizations(int index)

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

Parameter
Name Description
index int
Returns
Type Description
ListOrganizationsResponse.Builder

setNextPageToken(String value)

public ListOrganizationsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListOrganizationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListOrganizationsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListOrganizationsResponse.Builder

This builder for chaining.

setOrganizations(int index, Organization value)

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

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

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

setOrganizations(int index, Organization.Builder builderForValue)

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

The Organization resource that the user has access to, which includes the org id and display name.

repeated .google.marketingplatform.admin.v1alpha.Organization organizations = 1;

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