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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
public ListContactsResponse.Builder addContacts(Contact value)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter
Returns
public ListContactsResponse.Builder addContacts(Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter
Returns
public ListContactsResponse.Builder addContacts(int index, Contact value)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameters
Returns
public ListContactsResponse.Builder addContacts(int index, Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameters
Returns
public Contact.Builder addContactsBuilder()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Returns
public Contact.Builder addContactsBuilder(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter
Returns
public ListContactsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public ListContactsResponse build()
Returns
public ListContactsResponse buildPartial()
Returns
public ListContactsResponse.Builder clear()
Returns
Overrides
public ListContactsResponse.Builder clearContacts()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Returns
public ListContactsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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
public ListContactsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public ListContactsResponse.Builder clone()
Returns
Overrides
public Contact getContacts(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter
Returns
public Contact.Builder getContactsBuilder(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter
Returns
public List<Contact.Builder> getContactsBuilderList()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Returns
public int getContactsCount()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Returns
public List<Contact> getContactsList()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Returns
public ContactOrBuilder getContactsOrBuilder(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter
Returns
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> | |
public ListContactsResponse getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public ListContactsResponse.Builder mergeFrom(ListContactsResponse other)
Parameter
Returns
public ListContactsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public ListContactsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final ListContactsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public ListContactsResponse.Builder removeContacts(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter
Returns
public ListContactsResponse.Builder setContacts(int index, Contact value)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameters
Returns
public ListContactsResponse.Builder setContacts(int index, Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameters
Returns
public ListContactsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Name | Description |
value | String
The nextPageToken to set.
|
Returns
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 | ByteString
The bytes for nextPageToken to set.
|
Returns
public ListContactsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final ListContactsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides