Class ComputeContactsRequest.Builder (2.41.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.essentialcontacts.v1.NotificationCategory>

The notificationCategories to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valueNotificationCategory

The notificationCategories to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ComputeContactsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeContactsRequest build()
Returns
TypeDescription
ComputeContactsRequest

buildPartial()

public ComputeContactsRequest buildPartial()
Returns
TypeDescription
ComputeContactsRequest

clear()

public ComputeContactsRequest.Builder clear()
Returns
TypeDescription
ComputeContactsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ComputeContactsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ComputeContactsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeContactsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ComputeContactsRequest.Builder

This builder for chaining.

clone()

public ComputeContactsRequest.Builder clone()
Returns
TypeDescription
ComputeContactsRequest.Builder
Overrides

getDefaultInstanceForType()

public ComputeContactsRequest getDefaultInstanceForType()
Returns
TypeDescription
ComputeContactsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ComputeContactsRequest other)

public ComputeContactsRequest.Builder mergeFrom(ComputeContactsRequest other)
Parameter
NameDescription
otherComputeContactsRequest
Returns
TypeDescription
ComputeContactsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeContactsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueNotificationCategory

The notificationCategories to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
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
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ComputeContactsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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