Class ListContactsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
- com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder
-
- All Implemented Interfaces:
ListContactsResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ListContactsResponse
public static final class ListContactsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder> implements ListContactsResponseOrBuilder
Response message for the ListContacts method.
Protobuf typegoogle.cloud.essentialcontacts.v1.ListContactsResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListContactsResponse.BuilderaddAllContacts(Iterable<? extends Contact> values)The contacts for the specified resource.ListContactsResponse.BuilderaddContacts(int index, Contact value)The contacts for the specified resource.ListContactsResponse.BuilderaddContacts(int index, Contact.Builder builderForValue)The contacts for the specified resource.ListContactsResponse.BuilderaddContacts(Contact value)The contacts for the specified resource.ListContactsResponse.BuilderaddContacts(Contact.Builder builderForValue)The contacts for the specified resource.Contact.BuilderaddContactsBuilder()The contacts for the specified resource.Contact.BuilderaddContactsBuilder(int index)The contacts for the specified resource.ListContactsResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ListContactsResponsebuild()ListContactsResponsebuildPartial()ListContactsResponse.Builderclear()ListContactsResponse.BuilderclearContacts()The contacts for the specified resource.ListContactsResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ListContactsResponse.BuilderclearNextPageToken()If there are more results than those appearing in this response, then `next_page_token` is included.ListContactsResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ListContactsResponse.Builderclone()ContactgetContacts(int index)The contacts for the specified resource.Contact.BuildergetContactsBuilder(int index)The contacts for the specified resource.List<Contact.Builder>getContactsBuilderList()The contacts for the specified resource.intgetContactsCount()The contacts for the specified resource.List<Contact>getContactsList()The contacts for the specified resource.ContactOrBuildergetContactsOrBuilder(int index)The contacts for the specified resource.List<? extends ContactOrBuilder>getContactsOrBuilderList()The contacts for the specified resource.ListContactsResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetNextPageToken()If there are more results than those appearing in this response, then `next_page_token` is included.com.google.protobuf.ByteStringgetNextPageTokenBytes()If there are more results than those appearing in this response, then `next_page_token` is included.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ListContactsResponse.BuildermergeFrom(ListContactsResponse other)ListContactsResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ListContactsResponse.BuildermergeFrom(com.google.protobuf.Message other)ListContactsResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ListContactsResponse.BuilderremoveContacts(int index)The contacts for the specified resource.ListContactsResponse.BuildersetContacts(int index, Contact value)The contacts for the specified resource.ListContactsResponse.BuildersetContacts(int index, Contact.Builder builderForValue)The contacts for the specified resource.ListContactsResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ListContactsResponse.BuildersetNextPageToken(String value)If there are more results than those appearing in this response, then `next_page_token` is included.ListContactsResponse.BuildersetNextPageTokenBytes(com.google.protobuf.ByteString value)If there are more results than those appearing in this response, then `next_page_token` is included.ListContactsResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ListContactsResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
clear
public ListContactsResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
getDefaultInstanceForType
public ListContactsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListContactsResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListContactsResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListContactsResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
setField
public ListContactsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
clearField
public ListContactsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
clearOneof
public ListContactsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
setRepeatedField
public ListContactsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
addRepeatedField
public ListContactsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
mergeFrom
public ListContactsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListContactsResponse.Builder>
-
mergeFrom
public ListContactsResponse.Builder mergeFrom(ListContactsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
mergeFrom
public ListContactsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListContactsResponse.Builder>- Throws:
IOException
-
getContactsList
public List<Contact> getContactsList()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;- Specified by:
getContactsListin interfaceListContactsResponseOrBuilder
-
getContactsCount
public int getContactsCount()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;- Specified by:
getContactsCountin interfaceListContactsResponseOrBuilder
-
getContacts
public Contact getContacts(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;- Specified by:
getContactsin interfaceListContactsResponseOrBuilder
-
setContacts
public ListContactsResponse.Builder setContacts(int index, Contact value)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
setContacts
public ListContactsResponse.Builder setContacts(int index, Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
addContacts
public ListContactsResponse.Builder addContacts(Contact value)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
addContacts
public ListContactsResponse.Builder addContacts(int index, Contact value)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
addContacts
public ListContactsResponse.Builder addContacts(Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
addContacts
public ListContactsResponse.Builder addContacts(int index, Contact.Builder builderForValue)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
addAllContacts
public ListContactsResponse.Builder addAllContacts(Iterable<? extends Contact> values)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
clearContacts
public ListContactsResponse.Builder clearContacts()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
removeContacts
public ListContactsResponse.Builder removeContacts(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
getContactsBuilder
public Contact.Builder getContactsBuilder(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
getContactsOrBuilder
public ContactOrBuilder getContactsOrBuilder(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;- Specified by:
getContactsOrBuilderin interfaceListContactsResponseOrBuilder
-
getContactsOrBuilderList
public List<? extends ContactOrBuilder> getContactsOrBuilderList()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;- Specified by:
getContactsOrBuilderListin interfaceListContactsResponseOrBuilder
-
addContactsBuilder
public Contact.Builder addContactsBuilder()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
addContactsBuilder
public Contact.Builder addContactsBuilder(int index)
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
getContactsBuilderList
public List<Contact.Builder> getContactsBuilderList()
The contacts for the specified resource.
repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
-
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;- Specified by:
getNextPageTokenin interfaceListContactsResponseOrBuilder- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.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;- Specified by:
getNextPageTokenBytesin interfaceListContactsResponseOrBuilder- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
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;- Parameters:
value- The nextPageToken to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNextPageTokenBytes
public ListContactsResponse.Builder setNextPageTokenBytes(com.google.protobuf.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;- Parameters:
value- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListContactsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
mergeUnknownFields
public final ListContactsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListContactsResponse.Builder>
-
-