Class ListCompaniesResponse.Builder (0.2.0)

public static final class ListCompaniesResponse.Builder extends GeneratedMessageV3.Builder<ListCompaniesResponse.Builder> implements ListCompaniesResponseOrBuilder

Response object for ListCompaniesRequest containing matching Company resources.

Protobuf type google.ads.admanager.v1.ListCompaniesResponse

Static Methods

getDescriptor()

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

Methods

addAllCompanies(Iterable<? extends Company> values)

public ListCompaniesResponse.Builder addAllCompanies(Iterable<? extends Company> values)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameter
Name Description
values Iterable<? extends com.google.ads.admanager.v1.Company>
Returns
Type Description
ListCompaniesResponse.Builder

addCompanies(Company value)

public ListCompaniesResponse.Builder addCompanies(Company value)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameter
Name Description
value Company
Returns
Type Description
ListCompaniesResponse.Builder

addCompanies(Company.Builder builderForValue)

public ListCompaniesResponse.Builder addCompanies(Company.Builder builderForValue)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameter
Name Description
builderForValue Company.Builder
Returns
Type Description
ListCompaniesResponse.Builder

addCompanies(int index, Company value)

public ListCompaniesResponse.Builder addCompanies(int index, Company value)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameters
Name Description
index int
value Company
Returns
Type Description
ListCompaniesResponse.Builder

addCompanies(int index, Company.Builder builderForValue)

public ListCompaniesResponse.Builder addCompanies(int index, Company.Builder builderForValue)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameters
Name Description
index int
builderForValue Company.Builder
Returns
Type Description
ListCompaniesResponse.Builder

addCompaniesBuilder()

public Company.Builder addCompaniesBuilder()

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Returns
Type Description
Company.Builder

addCompaniesBuilder(int index)

public Company.Builder addCompaniesBuilder(int index)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameter
Name Description
index int
Returns
Type Description
Company.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCompaniesResponse build()
Returns
Type Description
ListCompaniesResponse

buildPartial()

public ListCompaniesResponse buildPartial()
Returns
Type Description
ListCompaniesResponse

clear()

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

clearCompanies()

public ListCompaniesResponse.Builder clearCompanies()

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Returns
Type Description
ListCompaniesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCompaniesResponse.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
ListCompaniesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListCompaniesResponse.Builder clearTotalSize()

Total number of Companies. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
ListCompaniesResponse.Builder

This builder for chaining.

clone()

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

getCompanies(int index)

public Company getCompanies(int index)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameter
Name Description
index int
Returns
Type Description
Company

getCompaniesBuilder(int index)

public Company.Builder getCompaniesBuilder(int index)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameter
Name Description
index int
Returns
Type Description
Company.Builder

getCompaniesBuilderList()

public List<Company.Builder> getCompaniesBuilderList()

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Returns
Type Description
List<Builder>

getCompaniesCount()

public int getCompaniesCount()

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Returns
Type Description
int

getCompaniesList()

public List<Company> getCompaniesList()

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Returns
Type Description
List<Company>

getCompaniesOrBuilder(int index)

public CompanyOrBuilder getCompaniesOrBuilder(int index)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameter
Name Description
index int
Returns
Type Description
CompanyOrBuilder

getCompaniesOrBuilderList()

public List<? extends CompanyOrBuilder> getCompaniesOrBuilderList()

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Returns
Type Description
List<? extends com.google.ads.admanager.v1.CompanyOrBuilder>

getDefaultInstanceForType()

public ListCompaniesResponse getDefaultInstanceForType()
Returns
Type Description
ListCompaniesResponse

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.

getTotalSize()

public int getTotalSize()

Total number of Companies. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Returns
Type Description
int

The totalSize.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCompaniesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCompanies(int index)

public ListCompaniesResponse.Builder removeCompanies(int index)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCompaniesResponse.Builder

setCompanies(int index, Company value)

public ListCompaniesResponse.Builder setCompanies(int index, Company value)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameters
Name Description
index int
value Company
Returns
Type Description
ListCompaniesResponse.Builder

setCompanies(int index, Company.Builder builderForValue)

public ListCompaniesResponse.Builder setCompanies(int index, Company.Builder builderForValue)

The Company from the specified network.

repeated .google.ads.admanager.v1.Company companies = 1;

Parameters
Name Description
index int
builderForValue Company.Builder
Returns
Type Description
ListCompaniesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCompaniesResponse.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
ListCompaniesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCompaniesResponse.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
ListCompaniesResponse.Builder

This builder for chaining.

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

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

setTotalSize(int value)

public ListCompaniesResponse.Builder setTotalSize(int value)

Total number of Companies. If a filter was included in the request, this reflects the total number after the filtering is applied.

total_size will not be calculated in the response unless it has been included in a response field mask. The response field mask can be provided to the method by using the URL parameter $fields or fields, or by using the HTTP/gRPC header X-Goog-FieldMask.

For more information, see https://developers.google.com/ad-manager/api/beta/field-masks

int32 total_size = 3;

Parameter
Name Description
value int

The totalSize to set.

Returns
Type Description
ListCompaniesResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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