Class ListWatchlistsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ListWatchlistsResponse.Builder>
com.google.cloud.chronicle.v1.ListWatchlistsResponse.Builder
All Implemented Interfaces:
ListWatchlistsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListWatchlistsResponse

public static final class ListWatchlistsResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListWatchlistsResponse.Builder> implements ListWatchlistsResponseOrBuilder
 Response message for listing watchlists.
 
Protobuf type google.cloud.chronicle.v1.ListWatchlistsResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ListWatchlistsResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ListWatchlistsResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ListWatchlistsResponse.Builder>
    • getDefaultInstanceForType

      public ListWatchlistsResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ListWatchlistsResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ListWatchlistsResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ListWatchlistsResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListWatchlistsResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ListWatchlistsResponse.Builder>
    • mergeFrom

      public ListWatchlistsResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ListWatchlistsResponse.Builder>
      Throws:
      IOException
    • getWatchlistsList

      public List<Watchlist> getWatchlistsList()
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWatchlistsList in interface ListWatchlistsResponseOrBuilder
    • getWatchlistsCount

      public int getWatchlistsCount()
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWatchlistsCount in interface ListWatchlistsResponseOrBuilder
    • getWatchlists

      public Watchlist getWatchlists(int index)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWatchlists in interface ListWatchlistsResponseOrBuilder
    • setWatchlists

      public ListWatchlistsResponse.Builder setWatchlists(int index, Watchlist value)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setWatchlists

      public ListWatchlistsResponse.Builder setWatchlists(int index, Watchlist.Builder builderForValue)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addWatchlists

      public ListWatchlistsResponse.Builder addWatchlists(Watchlist value)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addWatchlists

      public ListWatchlistsResponse.Builder addWatchlists(int index, Watchlist value)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addWatchlists

      public ListWatchlistsResponse.Builder addWatchlists(Watchlist.Builder builderForValue)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addWatchlists

      public ListWatchlistsResponse.Builder addWatchlists(int index, Watchlist.Builder builderForValue)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllWatchlists

      public ListWatchlistsResponse.Builder addAllWatchlists(Iterable<? extends Watchlist> values)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearWatchlists

      public ListWatchlistsResponse.Builder clearWatchlists()
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeWatchlists

      public ListWatchlistsResponse.Builder removeWatchlists(int index)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getWatchlistsBuilder

      public Watchlist.Builder getWatchlistsBuilder(int index)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getWatchlistsOrBuilder

      public WatchlistOrBuilder getWatchlistsOrBuilder(int index)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWatchlistsOrBuilder in interface ListWatchlistsResponseOrBuilder
    • getWatchlistsOrBuilderList

      public List<? extends WatchlistOrBuilder> getWatchlistsOrBuilderList()
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getWatchlistsOrBuilderList in interface ListWatchlistsResponseOrBuilder
    • addWatchlistsBuilder

      public Watchlist.Builder addWatchlistsBuilder()
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addWatchlistsBuilder

      public Watchlist.Builder addWatchlistsBuilder(int index)
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getWatchlistsBuilderList

      public List<Watchlist.Builder> getWatchlistsBuilderList()
       Optional. The watchlists from the specified instance.
       
      repeated .google.cloud.chronicle.v1.Watchlist watchlists = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getNextPageToken

      public String getNextPageToken()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageToken in interface ListWatchlistsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageTokenBytes in interface ListWatchlistsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListWatchlistsResponse.Builder setNextPageToken(String value)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListWatchlistsResponse.Builder clearNextPageToken()
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListWatchlistsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.