public static final class ListContactsResponse.Builder extends GeneratedMessage.Builder<ListContactsResponse.Builder> implements ListContactsResponseOrBuilderResponse message for the ListContacts method.
Protobuf type google.cloud.essentialcontacts.v1.ListContactsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListContactsResponse.BuilderImplements
ListContactsResponseOrBuilderStatic 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 contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.essentialcontacts.v1.Contact> |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
Contact |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
Contact.Builder |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| 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 contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Contact.Builder |
| Returns | |
|---|---|
| Type | Description |
ListContactsResponse.Builder |
|
addContactsBuilder()
public Contact.Builder addContactsBuilder()The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Contact.Builder |
|
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 |
|
clearContacts()
public ListContactsResponse.Builder clearContacts()The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Returns | |
|---|---|
| Type | Description |
ListContactsResponse.Builder |
|
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 | |
|---|---|
| Type | Description |
ListContactsResponse.Builder |
This builder for chaining. |
getContacts(int index)
public Contact getContacts(int index)The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Contact.Builder |
|
getContactsBuilderList()
public List<Contact.Builder> getContactsBuilderList()The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getContactsCount()
public int getContactsCount()The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getContactsList()
public List<Contact> getContactsList()The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ContactOrBuilder |
|
getContactsOrBuilderList()
public List<? extends ContactOrBuilder> getContactsOrBuilderList()The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.essentialcontacts.v1.ContactOrBuilder> |
|
getDefaultInstanceForType()
public ListContactsResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListContactsResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for nextPageToken. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListContactsResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListContactsResponse.Builder |
|
removeContacts(int index)
public ListContactsResponse.Builder removeContacts(int index)The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.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 contacts for the specified resource.
repeated .google.cloud.essentialcontacts.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 contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Contact.Builder |
| Returns | |
|---|---|
| Type | Description |
ListContactsResponse.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
StringThe nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListContactsResponse.Builder |
This builder for chaining. |