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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ListNotificationsRequest.BuilderImplements
ListNotificationsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListNotificationsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListNotificationsRequest.Builder |
build()
public ListNotificationsRequest build()
Type | Description |
ListNotificationsRequest |
buildPartial()
public ListNotificationsRequest buildPartial()
Type | Description |
ListNotificationsRequest |
clear()
public ListNotificationsRequest.Builder clear()
Type | Description |
ListNotificationsRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public ListNotificationsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ListNotificationsRequest.Builder |
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;
Type | Description |
ListNotificationsRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ListNotificationsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ListNotificationsRequest.Builder |
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;
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;
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}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
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;
Type | Description |
ListNotificationsRequest.Builder | This builder for chaining. |
clone()
public ListNotificationsRequest.Builder clone()
Type | Description |
ListNotificationsRequest.Builder |
getDefaultInstanceForType()
public ListNotificationsRequest getDefaultInstanceForType()
Type | Description |
ListNotificationsRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
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;
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;
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;
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;
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}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
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}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
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;
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;
Type | Description |
int | The enum numeric value on the wire for view. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ListNotificationsRequest other)
public ListNotificationsRequest.Builder mergeFrom(ListNotificationsRequest other)
Name | Description |
other | ListNotificationsRequest |
Type | Description |
ListNotificationsRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListNotificationsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ListNotificationsRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ListNotificationsRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ListNotificationsRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListNotificationsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListNotificationsRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ListNotificationsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ListNotificationsRequest.Builder |
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;
Name | Description |
value | String The languageCode to set. |
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;
Name | Description |
value | ByteString The bytes for languageCode to set. |
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;
Name | Description |
value | int The pageSize to set. |
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;
Name | Description |
value | String The pageToken to set. |
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;
Name | Description |
value | ByteString The bytes for pageToken to set. |
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}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The parent to set. |
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}".
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for parent to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ListNotificationsRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ListNotificationsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ListNotificationsRequest.Builder |
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;
Name | Description |
value | NotificationView The view to set. |
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;
Name | Description |
value | int The enum numeric value on the wire for view to set. |
Type | Description |
ListNotificationsRequest.Builder | This builder for chaining. |