Class ListSnapshotsRequest.Builder

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

public static final class ListSnapshotsRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListSnapshotsRequest.Builder> implements ListSnapshotsRequestOrBuilder
 Request for the `ListSnapshots` method.
 
Protobuf type google.pubsub.v1.ListSnapshotsRequest
  • 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<ListSnapshotsRequest.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<ListSnapshotsRequest.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<ListSnapshotsRequest.Builder>
    • getDefaultInstanceForType

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

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

      public ListSnapshotsRequest 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<ListSnapshotsRequest.Builder>
    • setField

      public ListSnapshotsRequest.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<ListSnapshotsRequest.Builder>
    • clearField

      public ListSnapshotsRequest.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<ListSnapshotsRequest.Builder>
    • clearOneof

      public ListSnapshotsRequest.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<ListSnapshotsRequest.Builder>
    • setRepeatedField

      public ListSnapshotsRequest.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<ListSnapshotsRequest.Builder>
    • addRepeatedField

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

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

      public ListSnapshotsRequest.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<ListSnapshotsRequest.Builder>
      Throws:
      IOException
    • getProject

      public String getProject()
       Required. The name of the project in which to list snapshots.
       Format is `projects/{project-id}`.
       
      string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getProject in interface ListSnapshotsRequestOrBuilder
      Returns:
      The project.
    • getProjectBytes

      public com.google.protobuf.ByteString getProjectBytes()
       Required. The name of the project in which to list snapshots.
       Format is `projects/{project-id}`.
       
      string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getProjectBytes in interface ListSnapshotsRequestOrBuilder
      Returns:
      The bytes for project.
    • setProject

      public ListSnapshotsRequest.Builder setProject(String value)
       Required. The name of the project in which to list snapshots.
       Format is `projects/{project-id}`.
       
      string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The project to set.
      Returns:
      This builder for chaining.
    • clearProject

      public ListSnapshotsRequest.Builder clearProject()
       Required. The name of the project in which to list snapshots.
       Format is `projects/{project-id}`.
       
      string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setProjectBytes

      public ListSnapshotsRequest.Builder setProjectBytes(com.google.protobuf.ByteString value)
       Required. The name of the project in which to list snapshots.
       Format is `projects/{project-id}`.
       
      string project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for project to set.
      Returns:
      This builder for chaining.
    • getPageSize

      public int getPageSize()
       Optional. Maximum number of snapshots to return.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageSize in interface ListSnapshotsRequestOrBuilder
      Returns:
      The pageSize.
    • setPageSize

      public ListSnapshotsRequest.Builder setPageSize(int value)
       Optional. Maximum number of snapshots to return.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageSize to set.
      Returns:
      This builder for chaining.
    • clearPageSize

      public ListSnapshotsRequest.Builder clearPageSize()
       Optional. Maximum number of snapshots to return.
       
      int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPageToken

      public String getPageToken()
       Optional. The value returned by the last `ListSnapshotsResponse`; indicates
       that this is a continuation of a prior `ListSnapshots` call, and that the
       system should return the next page of data.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageToken in interface ListSnapshotsRequestOrBuilder
      Returns:
      The pageToken.
    • getPageTokenBytes

      public com.google.protobuf.ByteString getPageTokenBytes()
       Optional. The value returned by the last `ListSnapshotsResponse`; indicates
       that this is a continuation of a prior `ListSnapshots` call, and that the
       system should return the next page of data.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPageTokenBytes in interface ListSnapshotsRequestOrBuilder
      Returns:
      The bytes for pageToken.
    • setPageToken

      public ListSnapshotsRequest.Builder setPageToken(String value)
       Optional. The value returned by the last `ListSnapshotsResponse`; indicates
       that this is a continuation of a prior `ListSnapshots` call, and that the
       system should return the next page of data.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The pageToken to set.
      Returns:
      This builder for chaining.
    • clearPageToken

      public ListSnapshotsRequest.Builder clearPageToken()
       Optional. The value returned by the last `ListSnapshotsResponse`; indicates
       that this is a continuation of a prior `ListSnapshots` call, and that the
       system should return the next page of data.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPageTokenBytes

      public ListSnapshotsRequest.Builder setPageTokenBytes(com.google.protobuf.ByteString value)
       Optional. The value returned by the last `ListSnapshotsResponse`; indicates
       that this is a continuation of a prior `ListSnapshots` call, and that the
       system should return the next page of data.
       
      string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for pageToken to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ListSnapshotsRequest.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<ListSnapshotsRequest.Builder>
    • mergeUnknownFields

      public final ListSnapshotsRequest.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<ListSnapshotsRequest.Builder>