Class ComputeContactsResponse.Builder (2.43.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.essentialcontacts.v1.Contact>
Returns
Type Description
ComputeContactsResponse.Builder

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
Name Description
value Contact
Returns
Type Description
ComputeContactsResponse.Builder

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
Name Description
builderForValue Contact.Builder
Returns
Type Description
ComputeContactsResponse.Builder

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
Name Description
index int
value Contact
Returns
Type Description
ComputeContactsResponse.Builder

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
Name Description
index int
builderForValue Contact.Builder
Returns
Type Description
ComputeContactsResponse.Builder

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
Type Description
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
Name Description
index int
Returns
Type Description
Contact.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeContactsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeContactsResponse.Builder
Overrides

build()

public ComputeContactsResponse build()
Returns
Type Description
ComputeContactsResponse

buildPartial()

public ComputeContactsResponse buildPartial()
Returns
Type Description
ComputeContactsResponse

clear()

public ComputeContactsResponse.Builder clear()
Returns
Type Description
ComputeContactsResponse.Builder
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
Type Description
ComputeContactsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ComputeContactsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeContactsResponse.Builder
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
Type Description
ComputeContactsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeContactsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeContactsResponse.Builder
Overrides

clone()

public ComputeContactsResponse.Builder clone()
Returns
Type Description
ComputeContactsResponse.Builder
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.essentialcontacts.v1.ContactOrBuilder>

getDefaultInstanceForType()

public ComputeContactsResponse getDefaultInstanceForType()
Returns
Type Description
ComputeContactsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeContactsResponse other)

public ComputeContactsResponse.Builder mergeFrom(ComputeContactsResponse other)
Parameter
Name Description
other ComputeContactsResponse
Returns
Type Description
ComputeContactsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeContactsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeContactsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeContactsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeContactsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeContactsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeContactsResponse.Builder
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
Name Description
index int
Returns
Type Description
ComputeContactsResponse.Builder

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
Name Description
index int
value Contact
Returns
Type Description
ComputeContactsResponse.Builder

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
Name Description
index int
builderForValue Contact.Builder
Returns
Type Description
ComputeContactsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeContactsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeContactsResponse.Builder
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeContactsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeContactsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeContactsResponse.Builder
Overrides