Class ListSubscribersResponse.Builder

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

public static final class ListSubscribersResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ListSubscribersResponse.Builder> implements ListSubscribersResponseOrBuilder
 Response Message for ListSubscribers.
 
Protobuf type google.cloud.channel.v1.ListSubscribersResponse
  • 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<ListSubscribersResponse.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<ListSubscribersResponse.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<ListSubscribersResponse.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ListSubscribersResponse.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<ListSubscribersResponse.Builder>
      Throws:
      IOException
    • getTopic

      public String getTopic()
       Name of the topic registered with the reseller.
       
      string topic = 1;
      Specified by:
      getTopic in interface ListSubscribersResponseOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.ByteString getTopicBytes()
       Name of the topic registered with the reseller.
       
      string topic = 1;
      Specified by:
      getTopicBytes in interface ListSubscribersResponseOrBuilder
      Returns:
      The bytes for topic.
    • setTopic

      public ListSubscribersResponse.Builder setTopic(String value)
       Name of the topic registered with the reseller.
       
      string topic = 1;
      Parameters:
      value - The topic to set.
      Returns:
      This builder for chaining.
    • clearTopic

      public ListSubscribersResponse.Builder clearTopic()
       Name of the topic registered with the reseller.
       
      string topic = 1;
      Returns:
      This builder for chaining.
    • setTopicBytes

      public ListSubscribersResponse.Builder setTopicBytes(com.google.protobuf.ByteString value)
       Name of the topic registered with the reseller.
       
      string topic = 1;
      Parameters:
      value - The bytes for topic to set.
      Returns:
      This builder for chaining.
    • getServiceAccountsList

      public com.google.protobuf.ProtocolStringList getServiceAccountsList()
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Specified by:
      getServiceAccountsList in interface ListSubscribersResponseOrBuilder
      Returns:
      A list containing the serviceAccounts.
    • getServiceAccountsCount

      public int getServiceAccountsCount()
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Specified by:
      getServiceAccountsCount in interface ListSubscribersResponseOrBuilder
      Returns:
      The count of serviceAccounts.
    • getServiceAccounts

      public String getServiceAccounts(int index)
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Specified by:
      getServiceAccounts in interface ListSubscribersResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The serviceAccounts at the given index.
    • getServiceAccountsBytes

      public com.google.protobuf.ByteString getServiceAccountsBytes(int index)
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Specified by:
      getServiceAccountsBytes in interface ListSubscribersResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the serviceAccounts at the given index.
    • setServiceAccounts

      public ListSubscribersResponse.Builder setServiceAccounts(int index, String value)
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Parameters:
      index - The index to set the value at.
      value - The serviceAccounts to set.
      Returns:
      This builder for chaining.
    • addServiceAccounts

      public ListSubscribersResponse.Builder addServiceAccounts(String value)
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Parameters:
      value - The serviceAccounts to add.
      Returns:
      This builder for chaining.
    • addAllServiceAccounts

      public ListSubscribersResponse.Builder addAllServiceAccounts(Iterable<String> values)
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Parameters:
      values - The serviceAccounts to add.
      Returns:
      This builder for chaining.
    • clearServiceAccounts

      public ListSubscribersResponse.Builder clearServiceAccounts()
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Returns:
      This builder for chaining.
    • addServiceAccountsBytes

      public ListSubscribersResponse.Builder addServiceAccountsBytes(com.google.protobuf.ByteString value)
       List of service accounts which have subscriber access to the topic.
       
      repeated string service_accounts = 2;
      Parameters:
      value - The bytes of the serviceAccounts 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.
       If this field is omitted, there are no subsequent pages.
       
      string next_page_token = 3;
      Specified by:
      getNextPageToken in interface ListSubscribersResponseOrBuilder
      Returns:
      The nextPageToken.
    • getNextPageTokenBytes

      public com.google.protobuf.ByteString getNextPageTokenBytes()
       A token that 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 = 3;
      Specified by:
      getNextPageTokenBytes in interface ListSubscribersResponseOrBuilder
      Returns:
      The bytes for nextPageToken.
    • setNextPageToken

      public ListSubscribersResponse.Builder setNextPageToken(String value)
       A token that 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 = 3;
      Parameters:
      value - The nextPageToken to set.
      Returns:
      This builder for chaining.
    • clearNextPageToken

      public ListSubscribersResponse.Builder clearNextPageToken()
       A token that 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 = 3;
      Returns:
      This builder for chaining.
    • setNextPageTokenBytes

      public ListSubscribersResponse.Builder setNextPageTokenBytes(com.google.protobuf.ByteString value)
       A token that 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 = 3;
      Parameters:
      value - The bytes for nextPageToken to set.
      Returns:
      This builder for chaining.