Class ComputeContactsResponse.Builder (2.4.0)

public static final class ComputeContactsResponse.Builder extends GeneratedMessageV3.Builder<ComputeContactsResponse.Builder> implements ComputeContactsResponseOrBuilder

Response message for the ComputeContacts method.

Protobuf type google.cloud.essentialcontacts.v1.ComputeContactsResponse

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

getDescriptor()

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

Methods

addAllContacts(Iterable<? extends Contact> values)

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

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

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

addContacts(Contact value)

public ComputeContactsResponse.Builder addContacts(Contact value)

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameter
NameDescription
valueContact
Returns

addContacts(Contact.Builder builderForValue)

public ComputeContactsResponse.Builder addContacts(Contact.Builder builderForValue)

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameter
NameDescription
builderForValueContact.Builder
Returns

addContacts(int index, Contact value)

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

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameters
NameDescription
indexint
valueContact
Returns

addContacts(int index, Contact.Builder builderForValue)

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

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameters
NameDescription
indexint
builderForValueContact.Builder
Returns

addContactsBuilder()

public Contact.Builder addContactsBuilder()

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Returns
TypeDescription
Contact.Builder

addContactsBuilder(int index)

public Contact.Builder addContactsBuilder(int index)

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeContactsResponse build()
Returns

buildPartial()

public ComputeContactsResponse buildPartial()
Returns

clear()

public ComputeContactsResponse.Builder clear()
Returns Overrides

clearContacts()

public ComputeContactsResponse.Builder clearContacts()

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Returns

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ComputeContactsResponse.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
ComputeContactsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ComputeContactsResponse.Builder clone()
Returns Overrides

getContacts(int index)

public Contact getContacts(int index)

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact

getContactsBuilder(int index)

public Contact.Builder getContactsBuilder(int index)

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Contact.Builder

getContactsBuilderList()

public List<Contact.Builder> getContactsBuilderList()

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Returns
TypeDescription
List<Builder>

getContactsCount()

public int getContactsCount()

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Returns
TypeDescription
int

getContactsList()

public List<Contact> getContactsList()

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Returns
TypeDescription
List<Contact>

getContactsOrBuilder(int index)

public ContactOrBuilder getContactsOrBuilder(int index)

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ContactOrBuilder

getContactsOrBuilderList()

public List<? extends ContactOrBuilder> getContactsOrBuilderList()

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

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

getDefaultInstanceForType()

public ComputeContactsResponse getDefaultInstanceForType()
Returns

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(ComputeContactsResponse other)

public ComputeContactsResponse.Builder mergeFrom(ComputeContactsResponse other)
Parameter
NameDescription
otherComputeContactsResponse
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeContacts(int index)

public ComputeContactsResponse.Builder removeContacts(int index)

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameter
NameDescription
indexint
Returns

setContacts(int index, Contact value)

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

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameters
NameDescription
indexint
valueContact
Returns

setContacts(int index, Contact.Builder builderForValue)

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

All contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

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

Parameters
NameDescription
indexint
builderForValueContact.Builder
Returns

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ComputeContactsResponse.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
ComputeContactsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ComputeContactsResponse.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
ComputeContactsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComputeContactsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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