Class ListNotificationsRequest.Builder (0.30.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListNotificationsRequest build()
Returns
TypeDescription
ListNotificationsRequest

buildPartial()

public ListNotificationsRequest buildPartial()
Returns
TypeDescription
ListNotificationsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListNotificationsRequest getDefaultInstanceForType()
Returns
TypeDescription
ListNotificationsRequest

getDescriptorForType()

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

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListNotificationsRequest other)

public ListNotificationsRequest.Builder mergeFrom(ListNotificationsRequest other)
Parameter
NameDescription
otherListNotificationsRequest
Returns
TypeDescription
ListNotificationsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The languageCode to set.

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

The bytes for languageCode to set.

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

The pageSize to set.

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

The pageToken to set.

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

The bytes for pageToken to set.

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListNotificationsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueNotificationView

The view to set.

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

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

Returns
TypeDescription
ListNotificationsRequest.Builder

This builder for chaining.