Class ListReservationTopicsResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<ListReservationTopicsResponse.Builder>
com.google.cloud.pubsublite.proto.ListReservationTopicsResponse.Builder
All Implemented Interfaces:
ListReservationTopicsResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ListReservationTopicsResponse

public static final class ListReservationTopicsResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ListReservationTopicsResponse.Builder> implements ListReservationTopicsResponseOrBuilder
 Response for ListReservationTopics.
 
Protobuf type google.cloud.pubsublite.v1.ListReservationTopicsResponse
  • 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<ListReservationTopicsResponse.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<ListReservationTopicsResponse.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<ListReservationTopicsResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

      public ListReservationTopicsResponse.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<ListReservationTopicsResponse.Builder>
      Throws:
      IOException
    • getTopicsList

      public com.google.protobuf.ProtocolStringList getTopicsList()
       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Specified by:
      getTopicsList in interface ListReservationTopicsResponseOrBuilder
      Returns:
      A list containing the topics.
    • getTopicsCount

      public int getTopicsCount()
       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Specified by:
      getTopicsCount in interface ListReservationTopicsResponseOrBuilder
      Returns:
      The count of topics.
    • getTopics

      public String getTopics(int index)
       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Specified by:
      getTopics in interface ListReservationTopicsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The topics at the given index.
    • getTopicsBytes

      public com.google.protobuf.ByteString getTopicsBytes(int index)
       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Specified by:
      getTopicsBytes in interface ListReservationTopicsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the topics at the given index.
    • setTopics

      public ListReservationTopicsResponse.Builder setTopics(int index, String value)
       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Parameters:
      index - The index to set the value at.
      value - The topics to set.
      Returns:
      This builder for chaining.
    • addTopics

       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Parameters:
      value - The topics to add.
      Returns:
      This builder for chaining.
    • addAllTopics

      public ListReservationTopicsResponse.Builder addAllTopics(Iterable<String> values)
       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Parameters:
      values - The topics to add.
      Returns:
      This builder for chaining.
    • clearTopics

       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Returns:
      This builder for chaining.
    • addTopicsBytes

      public ListReservationTopicsResponse.Builder addTopicsBytes(com.google.protobuf.ByteString value)
       The names of topics attached to the reservation. The order of the
       topics is unspecified.
       
      repeated string topics = 1;
      Parameters:
      value - The bytes of the topics to add.
      Returns:
      This builder for chaining.
    • getNextPageToken

      public String getNextPageToken()
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageToken in interface ListReservationTopicsResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Specified by:
      getNextPageTokenBytes in interface ListReservationTopicsResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListReservationTopicsResponse.Builder setNextPageToken(String value)
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListReservationTopicsResponse.Builder clearNextPageToken()
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListReservationTopicsResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token that can be sent as `page_token` to retrieve the next page of
       results. If this field is omitted, there are no more results.
       
      string next_page_token = 2;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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