Class ListContactsResponse.Builder (0.10.0)

public static final class ListContactsResponse.Builder extends GeneratedMessageV3.Builder<ListContactsResponse.Builder> implements ListContactsResponseOrBuilder

Response object for ListContactsRequest containing matching Contact resources.

Protobuf type google.ads.admanager.v1.ListContactsResponse

Static Methods

getDescriptor()

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

Methods

addAllContacts(Iterable<? extends Contact> values)

public ListContactsResponse.Builder addAllContacts(Iterable<? extends Contact> values)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

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

addContacts(Contact value)

public ListContactsResponse.Builder addContacts(Contact value)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameter
Name Description
value Contact
Returns
Type Description
ListContactsResponse.Builder

addContacts(Contact.Builder builderForValue)

public ListContactsResponse.Builder addContacts(Contact.Builder builderForValue)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameter
Name Description
builderForValue Contact.Builder
Returns
Type Description
ListContactsResponse.Builder

addContacts(int index, Contact value)

public ListContactsResponse.Builder addContacts(int index, Contact value)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameters
Name Description
index int
value Contact
Returns
Type Description
ListContactsResponse.Builder

addContacts(int index, Contact.Builder builderForValue)

public ListContactsResponse.Builder addContacts(int index, Contact.Builder builderForValue)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameters
Name Description
index int
builderForValue Contact.Builder
Returns
Type Description
ListContactsResponse.Builder

addContactsBuilder()

public Contact.Builder addContactsBuilder()

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Returns
Type Description
Contact.Builder

addContactsBuilder(int index)

public Contact.Builder addContactsBuilder(int index)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameter
Name Description
index int
Returns
Type Description
Contact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListContactsResponse build()
Returns
Type Description
ListContactsResponse

buildPartial()

public ListContactsResponse buildPartial()
Returns
Type Description
ListContactsResponse

clear()

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

clearContacts()

public ListContactsResponse.Builder clearContacts()

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Returns
Type Description
ListContactsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListContactsResponse.Builder clearTotalSize()

Total number of Contacts. 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
ListContactsResponse.Builder

This builder for chaining.

clone()

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

getContacts(int index)

public Contact getContacts(int index)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameter
Name Description
index int
Returns
Type Description
Contact

getContactsBuilder(int index)

public Contact.Builder getContactsBuilder(int index)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameter
Name Description
index int
Returns
Type Description
Contact.Builder

getContactsBuilderList()

public List<Contact.Builder> getContactsBuilderList()

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Returns
Type Description
List<Builder>

getContactsCount()

public int getContactsCount()

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Returns
Type Description
int

getContactsList()

public List<Contact> getContactsList()

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Returns
Type Description
List<Contact>

getContactsOrBuilder(int index)

public ContactOrBuilder getContactsOrBuilder(int index)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameter
Name Description
index int
Returns
Type Description
ContactOrBuilder

getContactsOrBuilderList()

public List<? extends ContactOrBuilder> getContactsOrBuilderList()

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

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

getDefaultInstanceForType()

public ListContactsResponse getDefaultInstanceForType()
Returns
Type Description
ListContactsResponse

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 Contacts. 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(ListContactsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeContacts(int index)

public ListContactsResponse.Builder removeContacts(int index)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameter
Name Description
index int
Returns
Type Description
ListContactsResponse.Builder

setContacts(int index, Contact value)

public ListContactsResponse.Builder setContacts(int index, Contact value)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameters
Name Description
index int
value Contact
Returns
Type Description
ListContactsResponse.Builder

setContacts(int index, Contact.Builder builderForValue)

public ListContactsResponse.Builder setContacts(int index, Contact.Builder builderForValue)

The Contact from the specified network.

repeated .google.ads.admanager.v1.Contact contacts = 1;

Parameters
Name Description
index int
builderForValue Contact.Builder
Returns
Type Description
ListContactsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTotalSize(int value)

public ListContactsResponse.Builder setTotalSize(int value)

Total number of Contacts. 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
ListContactsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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