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.BuilderaddAllNotifications(Iterable<? extends Notification> values)List of notifications under a given parent.ListNotificationsResponse.BuilderaddNotifications(int index, Notification value)List of notifications under a given parent.ListNotificationsResponse.BuilderaddNotifications(int index, Notification.Builder builderForValue)List of notifications under a given parent.ListNotificationsResponse.BuilderaddNotifications(Notification value)List of notifications under a given parent.ListNotificationsResponse.BuilderaddNotifications(Notification.Builder builderForValue)List of notifications under a given parent.Notification.BuilderaddNotificationsBuilder()List of notifications under a given parent.Notification.BuilderaddNotificationsBuilder(int index)List of notifications under a given parent.ListNotificationsResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ListNotificationsResponsebuild()ListNotificationsResponsebuildPartial()ListNotificationsResponse.Builderclear()ListNotificationsResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ListNotificationsResponse.BuilderclearNextPageToken()A token, which can be sent as `page_token` to retrieve the next page.ListNotificationsResponse.BuilderclearNotifications()List of notifications under a given parent.ListNotificationsResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ListNotificationsResponse.BuilderclearTotalSize()Estimation of a total number of notifications.ListNotificationsResponse.Builderclone()ListNotificationsResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetNextPageToken()A token, which can be sent as `page_token` to retrieve the next page.com.google.protobuf.ByteStringgetNextPageTokenBytes()A token, which can be sent as `page_token` to retrieve the next page.NotificationgetNotifications(int index)List of notifications under a given parent.Notification.BuildergetNotificationsBuilder(int index)List of notifications under a given parent.List<Notification.Builder>getNotificationsBuilderList()List of notifications under a given parent.intgetNotificationsCount()List of notifications under a given parent.List<Notification>getNotificationsList()List of notifications under a given parent.NotificationOrBuildergetNotificationsOrBuilder(int index)List of notifications under a given parent.List<? extends NotificationOrBuilder>getNotificationsOrBuilderList()List of notifications under a given parent.intgetTotalSize()Estimation of a total number of notifications.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ListNotificationsResponse.BuildermergeFrom(ListNotificationsResponse other)ListNotificationsResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ListNotificationsResponse.BuildermergeFrom(com.google.protobuf.Message other)ListNotificationsResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ListNotificationsResponse.BuilderremoveNotifications(int index)List of notifications under a given parent.ListNotificationsResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ListNotificationsResponse.BuildersetNextPageToken(String value)A token, which can be sent as `page_token` to retrieve the next page.ListNotificationsResponse.BuildersetNextPageTokenBytes(com.google.protobuf.ByteString value)A token, which can be sent as `page_token` to retrieve the next page.ListNotificationsResponse.BuildersetNotifications(int index, Notification value)List of notifications under a given parent.ListNotificationsResponse.BuildersetNotifications(int index, Notification.Builder builderForValue)List of notifications under a given parent.ListNotificationsResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ListNotificationsResponse.BuildersetTotalSize(int value)Estimation of a total number of notifications.ListNotificationsResponse.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
clear
public ListNotificationsResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
getDefaultInstanceForType
public ListNotificationsResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ListNotificationsResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ListNotificationsResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ListNotificationsResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
setField
public ListNotificationsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
clearField
public ListNotificationsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
clearOneof
public ListNotificationsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
setRepeatedField
public ListNotificationsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
addRepeatedField
public ListNotificationsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
mergeFrom
public ListNotificationsResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ListNotificationsResponse.Builder>
-
mergeFrom
public ListNotificationsResponse.Builder mergeFrom(ListNotificationsResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getNotificationsListin interfaceListNotificationsResponseOrBuilder
-
getNotificationsCount
public int getNotificationsCount()
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;- Specified by:
getNotificationsCountin interfaceListNotificationsResponseOrBuilder
-
getNotifications
public Notification getNotifications(int index)
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;- Specified by:
getNotificationsin 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:
getNotificationsOrBuilderin interfaceListNotificationsResponseOrBuilder
-
getNotificationsOrBuilderList
public List<? extends NotificationOrBuilder> getNotificationsOrBuilderList()
List of notifications under a given parent.
repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1;- Specified by:
getNotificationsOrBuilderListin 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:
getNextPageTokenin 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:
getNextPageTokenBytesin 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:
getTotalSizein 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
mergeUnknownFields
public final ListNotificationsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ListNotificationsResponse.Builder>
-
-