Class ListContactsResponse.Builder (2.1.11)

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

Response message for the ListContacts method.

Protobuf type google.cloud.essentialcontacts.v1.ListContactsResponse

Static Methods

getDescriptor()

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

Methods

addAllContacts(Iterable<? extends Contact> values)

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

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.essentialcontacts.v1.Contact>
Returns
TypeDescription
ListContactsResponse.Builder

addContacts(Contact value)

public ListContactsResponse.Builder addContacts(Contact value)

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameter
NameDescription
valueContact
Returns
TypeDescription
ListContactsResponse.Builder

addContacts(Contact.Builder builderForValue)

public ListContactsResponse.Builder addContacts(Contact.Builder builderForValue)

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameter
NameDescription
builderForValueContact.Builder
Returns
TypeDescription
ListContactsResponse.Builder

addContacts(int index, Contact value)

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

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameters
NameDescription
indexint
valueContact
Returns
TypeDescription
ListContactsResponse.Builder

addContacts(int index, Contact.Builder builderForValue)

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

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameters
NameDescription
indexint
builderForValueContact.Builder
Returns
TypeDescription
ListContactsResponse.Builder

addContactsBuilder()

public Contact.Builder addContactsBuilder()

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Returns
TypeDescription
Contact.Builder

addContactsBuilder(int index)

public Contact.Builder addContactsBuilder(int index)

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListContactsResponse build()
Returns
TypeDescription
ListContactsResponse

buildPartial()

public ListContactsResponse buildPartial()
Returns
TypeDescription
ListContactsResponse

clear()

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

clearContacts()

public ListContactsResponse.Builder clearContacts()

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Returns
TypeDescription
ListContactsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListContactsResponse.Builder clearNextPageToken()

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token and the rest of the parameters the same as the original request.

string next_page_token = 2;

Returns
TypeDescription
ListContactsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getContacts(int index)

public Contact getContacts(int index)

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact

getContactsBuilder(int index)

public Contact.Builder getContactsBuilder(int index)

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact.Builder

getContactsBuilderList()

public List<Contact.Builder> getContactsBuilderList()

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Returns
TypeDescription
List<Builder>

getContactsCount()

public int getContactsCount()

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Returns
TypeDescription
int

getContactsList()

public List<Contact> getContactsList()

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Returns
TypeDescription
List<Contact>

getContactsOrBuilder(int index)

public ContactOrBuilder getContactsOrBuilder(int index)

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContactOrBuilder

getContactsOrBuilderList()

public List<? extends ContactOrBuilder> getContactsOrBuilderList()

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Returns
TypeDescription
List<? extends com.google.cloud.essentialcontacts.v1.ContactOrBuilder>

getDefaultInstanceForType()

public ListContactsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListContactsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token and the rest of the parameters the same as the original request.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token and the rest of the parameters the same as the original request.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListContactsResponse other)

public ListContactsResponse.Builder mergeFrom(ListContactsResponse other)
Parameter
NameDescription
otherListContactsResponse
Returns
TypeDescription
ListContactsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeContacts(int index)

public ListContactsResponse.Builder removeContacts(int index)

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListContactsResponse.Builder

setContacts(int index, Contact value)

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

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameters
NameDescription
indexint
valueContact
Returns
TypeDescription
ListContactsResponse.Builder

setContacts(int index, Contact.Builder builderForValue)

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

The contacts for the specified resource.

repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;

Parameters
NameDescription
indexint
builderForValueContact.Builder
Returns
TypeDescription
ListContactsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListContactsResponse.Builder setNextPageToken(String value)

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token and the rest of the parameters the same as the original request.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListContactsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListContactsResponse.Builder setNextPageTokenBytes(ByteString value)

If there are more results than those appearing in this response, then next_page_token is included. To get the next set of results, call this method again using the value of next_page_token as page_token and the rest of the parameters the same as the original request.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListContactsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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