Class ListNotificationsRequest.Builder (0.33.0)

public static final class ListNotificationsRequest.Builder extends GeneratedMessageV3.Builder<ListNotificationsRequest.Builder> implements ListNotificationsRequestOrBuilder

Request for fetching all notifications for a given parent.

Protobuf type google.cloud.advisorynotifications.v1.ListNotificationsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListNotificationsRequest build()
Returns
Type Description
ListNotificationsRequest

buildPartial()

public ListNotificationsRequest buildPartial()
Returns
Type Description
ListNotificationsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public ListNotificationsRequest.Builder clearLanguageCode()

ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

string language_code = 5;

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListNotificationsRequest.Builder clearPageSize()

The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.

int32 page_size = 2;

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

clearPageToken()

public ListNotificationsRequest.Builder clearPageToken()

A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.

string page_token = 3;

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

clearParent()

public ListNotificationsRequest.Builder clearParent()

Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}".

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

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

clearView()

public ListNotificationsRequest.Builder clearView()

Specifies which parts of the notification resource should be returned in the response.

.google.cloud.advisorynotifications.v1.NotificationView view = 4;

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListNotificationsRequest getDefaultInstanceForType()
Returns
Type Description
ListNotificationsRequest

getDescriptorForType()

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

getLanguageCode()

public String getLanguageCode()

ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

string language_code = 5;

Returns
Type Description
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

string language_code = 5;

Returns
Type Description
ByteString

The bytes for languageCode.

getPageSize()

public int getPageSize()

The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}".

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}".

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

Returns
Type Description
ByteString

The bytes for parent.

getView()

public NotificationView getView()

Specifies which parts of the notification resource should be returned in the response.

.google.cloud.advisorynotifications.v1.NotificationView view = 4;

Returns
Type Description
NotificationView

The view.

getViewValue()

public int getViewValue()

Specifies which parts of the notification resource should be returned in the response.

.google.cloud.advisorynotifications.v1.NotificationView view = 4;

Returns
Type Description
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListNotificationsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

public ListNotificationsRequest.Builder setLanguageCode(String value)

ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

string language_code = 5;

Parameter
Name Description
value String

The languageCode to set.

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public ListNotificationsRequest.Builder setLanguageCodeBytes(ByteString value)

ISO code for requested localization language. If unset, will be interpereted as "en". If the requested language is valid, but not supported for this notification, English will be returned with an "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a real language), this RPC will throw an error.

string language_code = 5;

Parameter
Name Description
value ByteString

The bytes for languageCode to set.

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListNotificationsRequest.Builder setPageSize(int value)

The maximum number of notifications to return. The service may return fewer than this value. If unspecified or equal to 0, at most 50 notifications will be returned. The maximum value is 50; values above 50 will be coerced to 50.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListNotificationsRequest.Builder setPageToken(String value)

A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListNotificationsRequest.Builder setPageTokenBytes(ByteString value)

A page token returned from a previous request. When paginating, all other parameters provided in the request must match the call that returned the page token.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

setParent(String value)

public ListNotificationsRequest.Builder setParent(String value)

Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}".

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListNotificationsRequest.Builder setParentBytes(ByteString value)

Required. The parent, which owns this collection of notifications. Must be of the form "organizations/{organization}/locations/{location}" or "projects/{project}/locations/{location}".

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
ListNotificationsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setView(NotificationView value)

public ListNotificationsRequest.Builder setView(NotificationView value)

Specifies which parts of the notification resource should be returned in the response.

.google.cloud.advisorynotifications.v1.NotificationView view = 4;

Parameter
Name Description
value NotificationView

The view to set.

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.

setViewValue(int value)

public ListNotificationsRequest.Builder setViewValue(int value)

Specifies which parts of the notification resource should be returned in the response.

.google.cloud.advisorynotifications.v1.NotificationView view = 4;

Parameter
Name Description
value int

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

Returns
Type Description
ListNotificationsRequest.Builder

This builder for chaining.