Class ListNotificationsResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
- com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder
-
- All Implemented Interfaces:
ListNotificationsResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ListNotificationsResponse
public static final class ListNotificationsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder> implements ListNotificationsResponseOrBuilder
Response of ListNotifications endpoint.
Protobuf typegoogle.cloud.advisorynotifications.v1.ListNotificationsResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ListNotificationsResponse.Builder
addAllNotifications(Iterable<? extends Notification> values)
List of notifications under a given parent.ListNotificationsResponse.Builder
addNotifications(int index, Notification value)
List of notifications under a given parent.ListNotificationsResponse.Builder
addNotifications(int index, Notification.Builder builderForValue)
List of notifications under a given parent.ListNotificationsResponse.Builder
addNotifications(Notification value)
List of notifications under a given parent.ListNotificationsResponse.Builder
addNotifications(Notification.Builder builderForValue)
List of notifications under a given parent.Notification.Builder
addNotificationsBuilder()
List of notifications under a given parent.Notification.Builder
addNotificationsBuilder(int index)
List of notifications under a given parent.ListNotificationsResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListNotificationsResponse
build()
ListNotificationsResponse
buildPartial()
ListNotificationsResponse.Builder
clear()
ListNotificationsResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ListNotificationsResponse.Builder
clearNextPageToken()
A token, which can be sent as `page_token` to retrieve the next page.ListNotificationsResponse.Builder
clearNotifications()
List of notifications under a given parent.ListNotificationsResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ListNotificationsResponse.Builder
clearTotalSize()
Estimation of a total number of notifications.ListNotificationsResponse.Builder
clone()
ListNotificationsResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getNextPageToken()
A token, which can be sent as `page_token` to retrieve the next page.com.google.protobuf.ByteString
getNextPageTokenBytes()
A token, which can be sent as `page_token` to retrieve the next page.Notification
getNotifications(int index)
List of notifications under a given parent.Notification.Builder
getNotificationsBuilder(int index)
List of notifications under a given parent.List<Notification.Builder>
getNotificationsBuilderList()
List of notifications under a given parent.int
getNotificationsCount()
List of notifications under a given parent.List<Notification>
getNotificationsList()
List of notifications under a given parent.NotificationOrBuilder
getNotificationsOrBuilder(int index)
List of notifications under a given parent.List<? extends NotificationOrBuilder>
getNotificationsOrBuilderList()
List of notifications under a given parent.int
getTotalSize()
Estimation of a total number of notifications.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ListNotificationsResponse.Builder
mergeFrom(ListNotificationsResponse other)
ListNotificationsResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ListNotificationsResponse.Builder
mergeFrom(com.google.protobuf.Message other)
ListNotificationsResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ListNotificationsResponse.Builder
removeNotifications(int index)
List of notifications under a given parent.ListNotificationsResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ListNotificationsResponse.Builder
setNextPageToken(String value)
A token, which can be sent as `page_token` to retrieve the next page.ListNotificationsResponse.Builder
setNextPageTokenBytes(com.google.protobuf.ByteString value)
A token, which can be sent as `page_token` to retrieve the next page.ListNotificationsResponse.Builder
setNotifications(int index, Notification value)
List of notifications under a given parent.ListNotificationsResponse.Builder
setNotifications(int index, Notification.Builder builderForValue)
List of notifications under a given parent.ListNotificationsResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ListNotificationsResponse.Builder
setTotalSize(int value)
Estimation of a total number of notifications.ListNotificationsResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
clear
public ListNotificationsResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
getDefaultInstanceForType
public ListNotificationsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListNotificationsResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListNotificationsResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListNotificationsResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
setField
public ListNotificationsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
clearField
public ListNotificationsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
clearOneof
public ListNotificationsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
setRepeatedField
public ListNotificationsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
addRepeatedField
public ListNotificationsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
mergeFrom
public ListNotificationsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListNotificationsResponse.Builder>
-
mergeFrom
public ListNotificationsResponse.Builder mergeFrom(ListNotificationsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
mergeFrom
public ListNotificationsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ListNotificationsResponse.Builder>
- Throws:
IOException
-
getNotificationsList
public List<Notification> getNotificationsList()
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
- Specified by:
getNotificationsList
in interfaceListNotificationsResponseOrBuilder
-
getNotificationsCount
public int getNotificationsCount()
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
- Specified by:
getNotificationsCount
in interfaceListNotificationsResponseOrBuilder
-
getNotifications
public Notification getNotifications(int index)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
- Specified by:
getNotifications
in interfaceListNotificationsResponseOrBuilder
-
setNotifications
public ListNotificationsResponse.Builder setNotifications(int index, Notification value)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
setNotifications
public ListNotificationsResponse.Builder setNotifications(int index, Notification.Builder builderForValue)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
addNotifications
public ListNotificationsResponse.Builder addNotifications(Notification value)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
addNotifications
public ListNotificationsResponse.Builder addNotifications(int index, Notification value)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
addNotifications
public ListNotificationsResponse.Builder addNotifications(Notification.Builder builderForValue)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
addNotifications
public ListNotificationsResponse.Builder addNotifications(int index, Notification.Builder builderForValue)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
addAllNotifications
public ListNotificationsResponse.Builder addAllNotifications(Iterable<? extends Notification> values)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
clearNotifications
public ListNotificationsResponse.Builder clearNotifications()
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
removeNotifications
public ListNotificationsResponse.Builder removeNotifications(int index)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
getNotificationsBuilder
public Notification.Builder getNotificationsBuilder(int index)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
getNotificationsOrBuilder
public NotificationOrBuilder getNotificationsOrBuilder(int index)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
- Specified by:
getNotificationsOrBuilder
in interfaceListNotificationsResponseOrBuilder
-
getNotificationsOrBuilderList
public List<? extends NotificationOrBuilder> getNotificationsOrBuilderList()
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
- Specified by:
getNotificationsOrBuilderList
in interfaceListNotificationsResponseOrBuilder
-
addNotificationsBuilder
public Notification.Builder addNotificationsBuilder()
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
addNotificationsBuilder
public Notification.Builder addNotificationsBuilder(int index)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
getNotificationsBuilderList
public List<Notification.Builder> getNotificationsBuilderList()
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;
-
getNextPageToken
public String getNextPageToken()
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
- Specified by:
getNextPageToken
in interfaceListNotificationsResponseOrBuilder
- Returns:
- The nextPageToken.
-
getNextPageTokenBytes
public com.google.protobuf.ByteString getNextPageTokenBytes()
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
- Specified by:
getNextPageTokenBytes
in interfaceListNotificationsResponseOrBuilder
- Returns:
- The bytes for nextPageToken.
-
setNextPageToken
public ListNotificationsResponse.Builder setNextPageToken(String value)
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
- Parameters:
value
- The nextPageToken to set.- Returns:
- This builder for chaining.
-
clearNextPageToken
public ListNotificationsResponse.Builder clearNextPageToken()
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
- Returns:
- This builder for chaining.
-
setNextPageTokenBytes
public ListNotificationsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
- Parameters:
value
- The bytes for nextPageToken to set.- Returns:
- This builder for chaining.
-
getTotalSize
public int getTotalSize()
Estimation of a total number of notifications.
int32 total_size = 3;
- Specified by:
getTotalSize
in interfaceListNotificationsResponseOrBuilder
- Returns:
- The totalSize.
-
setTotalSize
public ListNotificationsResponse.Builder setTotalSize(int value)
Estimation of a total number of notifications.
int32 total_size = 3;
- Parameters:
value
- The totalSize to set.- Returns:
- This builder for chaining.
-
clearTotalSize
public ListNotificationsResponse.Builder clearTotalSize()
Estimation of a total number of notifications.
int32 total_size = 3;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final ListNotificationsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
mergeUnknownFields
public final ListNotificationsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
-