Class ListSnapshotsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
com.google.pubsub.v1.ListSnapshotsResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ListSnapshotsResponseOrBuilder, Cloneable
Enclosing class:
ListSnapshotsResponse

public static final class ListSnapshotsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder> implements ListSnapshotsResponseOrBuilder
 Response for the `ListSnapshots` method.
 
Protobuf type google.pubsub.v1.ListSnapshotsResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.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.GeneratedMessageV3.Builder<ListSnapshotsResponse.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.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
    • getDefaultInstanceForType

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
    • setField

      public ListSnapshotsResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
    • clearField

      public ListSnapshotsResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
    • clearOneof

      public ListSnapshotsResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
    • setRepeatedField

      public ListSnapshotsResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
    • addRepeatedField

      public ListSnapshotsResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
    • mergeFrom

      public ListSnapshotsResponse.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<ListSnapshotsResponse.Builder>
    • mergeFrom

    • isInitialized

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

      public ListSnapshotsResponse.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<ListSnapshotsResponse.Builder>
      Throws:
      IOException
    • getSnapshotsList

      public List<Snapshot> getSnapshotsList()
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSnapshotsList in interface ListSnapshotsResponseOrBuilder
    • getSnapshotsCount

      public int getSnapshotsCount()
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSnapshotsCount in interface ListSnapshotsResponseOrBuilder
    • getSnapshots

      public Snapshot getSnapshots(int index)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSnapshots in interface ListSnapshotsResponseOrBuilder
    • setSnapshots

      public ListSnapshotsResponse.Builder setSnapshots(int index, Snapshot value)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setSnapshots

      public ListSnapshotsResponse.Builder setSnapshots(int index, Snapshot.Builder builderForValue)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSnapshots

      public ListSnapshotsResponse.Builder addSnapshots(Snapshot value)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSnapshots

      public ListSnapshotsResponse.Builder addSnapshots(int index, Snapshot value)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSnapshots

      public ListSnapshotsResponse.Builder addSnapshots(Snapshot.Builder builderForValue)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSnapshots

      public ListSnapshotsResponse.Builder addSnapshots(int index, Snapshot.Builder builderForValue)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllSnapshots

      public ListSnapshotsResponse.Builder addAllSnapshots(Iterable<? extends Snapshot> values)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearSnapshots

      public ListSnapshotsResponse.Builder clearSnapshots()
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeSnapshots

      public ListSnapshotsResponse.Builder removeSnapshots(int index)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getSnapshotsBuilder

      public Snapshot.Builder getSnapshotsBuilder(int index)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getSnapshotsOrBuilder

      public SnapshotOrBuilder getSnapshotsOrBuilder(int index)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSnapshotsOrBuilder in interface ListSnapshotsResponseOrBuilder
    • getSnapshotsOrBuilderList

      public List<? extends SnapshotOrBuilder> getSnapshotsOrBuilderList()
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSnapshotsOrBuilderList in interface ListSnapshotsResponseOrBuilder
    • addSnapshotsBuilder

      public Snapshot.Builder addSnapshotsBuilder()
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addSnapshotsBuilder

      public Snapshot.Builder addSnapshotsBuilder(int index)
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getSnapshotsBuilderList

      public List<Snapshot.Builder> getSnapshotsBuilderList()
       Optional. The resulting snapshots.
       
      repeated .google.pubsub.v1.Snapshot snapshots = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getNextPageToken

      public String getNextPageToken()
       Optional. If not empty, indicates that there may be more snapshot that
       match the request; this value should be passed in a new
       `ListSnapshotsRequest`.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageToken in interface ListSnapshotsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       Optional. If not empty, indicates that there may be more snapshot that
       match the request; this value should be passed in a new
       `ListSnapshotsRequest`.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getNextPageTokenBytes in interface ListSnapshotsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListSnapshotsResponse.Builder setNextPageToken(String value)
       Optional. If not empty, indicates that there may be more snapshot that
       match the request; this value should be passed in a new
       `ListSnapshotsRequest`.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListSnapshotsResponse.Builder clearNextPageToken()
       Optional. If not empty, indicates that there may be more snapshot that
       match the request; this value should be passed in a new
       `ListSnapshotsRequest`.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListSnapshotsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. If not empty, indicates that there may be more snapshot that
       match the request; this value should be passed in a new
       `ListSnapshotsRequest`.
       
      string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ListSnapshotsResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>
    • mergeUnknownFields

      public final ListSnapshotsResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsResponse.Builder>