Class ComputeContactsRequest.Builder (2.55.0)

public static final class ComputeContactsRequest.Builder extends GeneratedMessageV3.Builder<ComputeContactsRequest.Builder> implements ComputeContactsRequestOrBuilder

Request message for the ComputeContacts method.

Protobuf type google.cloud.essentialcontacts.v1.ComputeContactsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllNotificationCategories(Iterable<? extends NotificationCategory> values)

public ComputeContactsRequest.Builder addAllNotificationCategories(Iterable<? extends NotificationCategory> values)

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Parameter
Name Description
values Iterable<? extends com.google.cloud.essentialcontacts.v1.NotificationCategory>

The notificationCategories to add.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

addAllNotificationCategoriesValue(Iterable<Integer> values)

public ComputeContactsRequest.Builder addAllNotificationCategoriesValue(Iterable<Integer> values)

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for notificationCategories to add.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

addNotificationCategories(NotificationCategory value)

public ComputeContactsRequest.Builder addNotificationCategories(NotificationCategory value)

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Parameter
Name Description
value NotificationCategory

The notificationCategories to add.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

addNotificationCategoriesValue(int value)

public ComputeContactsRequest.Builder addNotificationCategoriesValue(int value)

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Parameter
Name Description
value int

The enum numeric value on the wire for notificationCategories to add.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeContactsRequest build()
Returns
Type Description
ComputeContactsRequest

buildPartial()

public ComputeContactsRequest buildPartial()
Returns
Type Description
ComputeContactsRequest

clear()

public ComputeContactsRequest.Builder clear()
Returns
Type Description
ComputeContactsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeContactsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeContactsRequest.Builder
Overrides

clearNotificationCategories()

public ComputeContactsRequest.Builder clearNotificationCategories()

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ComputeContactsRequest.Builder clearPageSize()

Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of next_page_token in the response indicates that more results might be available. If not specified, the default page_size is 100.

int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

clearPageToken()

public ComputeContactsRequest.Builder clearPageToken()

Optional. If present, retrieves the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. The values of other method parameters should be identical to those in the previous call.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

clearParent()

public ComputeContactsRequest.Builder clearParent()

Required. The name of the resource to compute contacts for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

clone()

public ComputeContactsRequest.Builder clone()
Returns
Type Description
ComputeContactsRequest.Builder
Overrides

getDefaultInstanceForType()

public ComputeContactsRequest getDefaultInstanceForType()
Returns
Type Description
ComputeContactsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNotificationCategories(int index)

public NotificationCategory getNotificationCategories(int index)

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
NotificationCategory

The notificationCategories at the given index.

getNotificationCategoriesCount()

public int getNotificationCategoriesCount()

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Returns
Type Description
int

The count of notificationCategories.

getNotificationCategoriesList()

public List<NotificationCategory> getNotificationCategoriesList()

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Returns
Type Description
List<NotificationCategory>

A list containing the notificationCategories.

getNotificationCategoriesValue(int index)

public int getNotificationCategoriesValue(int index)

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of notificationCategories at the given index.

getNotificationCategoriesValueList()

public List<Integer> getNotificationCategoriesValueList()

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for notificationCategories.

getPageSize()

public int getPageSize()

Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of next_page_token in the response indicates that more results might be available. If not specified, the default page_size is 100.

int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. If present, retrieves the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. The values of other method parameters should be identical to those in the previous call.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. If present, retrieves the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. The values of other method parameters should be identical to those in the previous call.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The name of the resource to compute contacts for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the resource to compute contacts for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComputeContactsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeContactsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeContactsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setNotificationCategories(int index, NotificationCategory value)

public ComputeContactsRequest.Builder setNotificationCategories(int index, NotificationCategory value)

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Parameters
Name Description
index int

The index to set the value at.

value NotificationCategory

The notificationCategories to set.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

setNotificationCategoriesValue(int index, int value)

public ComputeContactsRequest.Builder setNotificationCategoriesValue(int index, int value)

The categories of notifications to compute contacts for. If ALL is included in this list, contacts subscribed to any notification category will be returned.

repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for notificationCategories to set.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

setPageSize(int value)

public ComputeContactsRequest.Builder setPageSize(int value)

Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of next_page_token in the response indicates that more results might be available. If not specified, the default page_size is 100.

int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ComputeContactsRequest.Builder setPageToken(String value)

Optional. If present, retrieves the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. The values of other method parameters should be identical to those in the previous call.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ComputeContactsRequest.Builder setPageTokenBytes(ByteString value)

Optional. If present, retrieves the next batch of results from the preceding call to this method. page_token must be the value of next_page_token from the previous response. The values of other method parameters should be identical to those in the previous call.

string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

setParent(String value)

public ComputeContactsRequest.Builder setParent(String value)

Required. The name of the resource to compute contacts for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ComputeContactsRequest.Builder setParentBytes(ByteString value)

Required. The name of the resource to compute contacts for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ComputeContactsRequest.Builder

This builder for chaining.

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

public ComputeContactsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeContactsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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