Class ListTopicSubscriptionsResponse.Builder

    • Method Detail

      • 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<ListTopicSubscriptionsResponse.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<ListTopicSubscriptionsResponse.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public com.google.protobuf.ProtocolStringList getSubscriptionsList()
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getSubscriptionsList in interface ListTopicSubscriptionsResponseOrBuilder
        Returns:
        A list containing the subscriptions.
      • getSubscriptionsCount

        public int getSubscriptionsCount()
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getSubscriptionsCount in interface ListTopicSubscriptionsResponseOrBuilder
        Returns:
        The count of subscriptions.
      • getSubscriptions

        public String getSubscriptions​(int index)
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getSubscriptions in interface ListTopicSubscriptionsResponseOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The subscriptions at the given index.
      • getSubscriptionsBytes

        public com.google.protobuf.ByteString getSubscriptionsBytes​(int index)
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getSubscriptionsBytes in interface ListTopicSubscriptionsResponseOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the subscriptions at the given index.
      • setSubscriptions

        public ListTopicSubscriptionsResponse.Builder setSubscriptions​(int index,
                                                                       String value)
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The subscriptions to set.
        Returns:
        This builder for chaining.
      • addSubscriptions

        public ListTopicSubscriptionsResponse.Builder addSubscriptions​(String value)
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The subscriptions to add.
        Returns:
        This builder for chaining.
      • addAllSubscriptions

        public ListTopicSubscriptionsResponse.Builder addAllSubscriptions​(Iterable<String> values)
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        values - The subscriptions to add.
        Returns:
        This builder for chaining.
      • clearSubscriptions

        public ListTopicSubscriptionsResponse.Builder clearSubscriptions()
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addSubscriptionsBytes

        public ListTopicSubscriptionsResponse.Builder addSubscriptionsBytes​(com.google.protobuf.ByteString value)
         The names of subscriptions attached to the topic specified in the request.
         
        repeated string subscriptions = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the subscriptions to add.
        Returns:
        This builder for chaining.
      • getNextPageToken

        public String getNextPageToken()
         If not empty, indicates that there may be more subscriptions that match
         the request; this value should be passed in a new
         `ListTopicSubscriptionsRequest` to get more subscriptions.
         
        string next_page_token = 2;
        Specified by:
        getNextPageToken in interface ListTopicSubscriptionsResponseOrBuilder
        Returns:
        The nextPageToken.
      • getNextPageTokenBytes

        public com.google.protobuf.ByteString getNextPageTokenBytes()
         If not empty, indicates that there may be more subscriptions that match
         the request; this value should be passed in a new
         `ListTopicSubscriptionsRequest` to get more subscriptions.
         
        string next_page_token = 2;
        Specified by:
        getNextPageTokenBytes in interface ListTopicSubscriptionsResponseOrBuilder
        Returns:
        The bytes for nextPageToken.
      • setNextPageToken

        public ListTopicSubscriptionsResponse.Builder setNextPageToken​(String value)
         If not empty, indicates that there may be more subscriptions that match
         the request; this value should be passed in a new
         `ListTopicSubscriptionsRequest` to get more subscriptions.
         
        string next_page_token = 2;
        Parameters:
        value - The nextPageToken to set.
        Returns:
        This builder for chaining.
      • clearNextPageToken

        public ListTopicSubscriptionsResponse.Builder clearNextPageToken()
         If not empty, indicates that there may be more subscriptions that match
         the request; this value should be passed in a new
         `ListTopicSubscriptionsRequest` to get more subscriptions.
         
        string next_page_token = 2;
        Returns:
        This builder for chaining.
      • setNextPageTokenBytes

        public ListTopicSubscriptionsResponse.Builder setNextPageTokenBytes​(com.google.protobuf.ByteString value)
         If not empty, indicates that there may be more subscriptions that match
         the request; this value should be passed in a new
         `ListTopicSubscriptionsRequest` to get more subscriptions.
         
        string next_page_token = 2;
        Parameters:
        value - The bytes for nextPageToken to set.
        Returns:
        This builder for chaining.