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()
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>
|
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
|
public ListContactsResponse.Builder addContacts(Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
public ListContactsResponse.Builder addContacts(int index, Contact value)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
public ListContactsResponse.Builder addContacts(int index, Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
public Contact.Builder addContactsBuilder()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
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
|
public ListContactsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ListContactsResponse build()
public ListContactsResponse buildPartial()
public ListContactsResponse.Builder clear()
Overrides
public ListContactsResponse.Builder clearContacts()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
public ListContactsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
public ListContactsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ListContactsResponse.Builder clone()
Overrides
public Contact getContacts(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter |
---|
Name | Description |
index | int
|
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
|
public List<Contact.Builder> getContactsBuilderList()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
public int getContactsCount()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Returns |
---|
Type | Description |
int | |
public List<Contact> getContactsList()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
public ContactOrBuilder getContactsOrBuilder(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
Parameter |
---|
Name | Description |
index | int
|
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()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
public final boolean isInitialized()
Overrides
public ListContactsResponse.Builder mergeFrom(ListContactsResponse other)
public ListContactsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ListContactsResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final ListContactsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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
|
public ListContactsResponse.Builder setContacts(int index, Contact value)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
public ListContactsResponse.Builder setContacts(int index, Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
public ListContactsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
public ListContactsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ListContactsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides