Class UnregisterSubscriberRequest.Builder

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

public static final class UnregisterSubscriberRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UnregisterSubscriberRequest.Builder> implements UnregisterSubscriberRequestOrBuilder
 Request Message for UnregisterSubscriber.
 
Protobuf type google.cloud.channel.v1.UnregisterSubscriberRequest
  • 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<UnregisterSubscriberRequest.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<UnregisterSubscriberRequest.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<UnregisterSubscriberRequest.Builder>
    • getDefaultInstanceForType

      public UnregisterSubscriberRequest 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 UnregisterSubscriberRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public UnregisterSubscriberRequest.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<UnregisterSubscriberRequest.Builder>
      Throws:
      IOException
    • getAccount

      public String getAccount()
       Optional. Resource name of the account. Required if integrator is not
       provided. Otherwise, leave this field empty/unset.
       
      string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAccount in interface UnregisterSubscriberRequestOrBuilder
      Returns:
      The account.
    • getAccountBytes

      public com.google.protobuf.ByteString getAccountBytes()
       Optional. Resource name of the account. Required if integrator is not
       provided. Otherwise, leave this field empty/unset.
       
      string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getAccountBytes in interface UnregisterSubscriberRequestOrBuilder
      Returns:
      The bytes for account.
    • setAccount

      public UnregisterSubscriberRequest.Builder setAccount(String value)
       Optional. Resource name of the account. Required if integrator is not
       provided. Otherwise, leave this field empty/unset.
       
      string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The account to set.
      Returns:
      This builder for chaining.
    • clearAccount

      public UnregisterSubscriberRequest.Builder clearAccount()
       Optional. Resource name of the account. Required if integrator is not
       provided. Otherwise, leave this field empty/unset.
       
      string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAccountBytes

      public UnregisterSubscriberRequest.Builder setAccountBytes(com.google.protobuf.ByteString value)
       Optional. Resource name of the account. Required if integrator is not
       provided. Otherwise, leave this field empty/unset.
       
      string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for account to set.
      Returns:
      This builder for chaining.
    • getServiceAccount

      public String getServiceAccount()
       Required. Service account to unregister from subscriber access to the
       topic.
       
      string service_account = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceAccount in interface UnregisterSubscriberRequestOrBuilder
      Returns:
      The serviceAccount.
    • getServiceAccountBytes

      public com.google.protobuf.ByteString getServiceAccountBytes()
       Required. Service account to unregister from subscriber access to the
       topic.
       
      string service_account = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getServiceAccountBytes in interface UnregisterSubscriberRequestOrBuilder
      Returns:
      The bytes for serviceAccount.
    • setServiceAccount

      public UnregisterSubscriberRequest.Builder setServiceAccount(String value)
       Required. Service account to unregister from subscriber access to the
       topic.
       
      string service_account = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The serviceAccount to set.
      Returns:
      This builder for chaining.
    • clearServiceAccount

      public UnregisterSubscriberRequest.Builder clearServiceAccount()
       Required. Service account to unregister from subscriber access to the
       topic.
       
      string service_account = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setServiceAccountBytes

      public UnregisterSubscriberRequest.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
       Required. Service account to unregister from subscriber access to the
       topic.
       
      string service_account = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for serviceAccount to set.
      Returns:
      This builder for chaining.
    • hasIntegrator

      public boolean hasIntegrator()
       Optional. Resource name of the integrator. Required if account is not
       provided. Otherwise, leave this field empty/unset.
       
      optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIntegrator in interface UnregisterSubscriberRequestOrBuilder
      Returns:
      Whether the integrator field is set.
    • getIntegrator

      public String getIntegrator()
       Optional. Resource name of the integrator. Required if account is not
       provided. Otherwise, leave this field empty/unset.
       
      optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntegrator in interface UnregisterSubscriberRequestOrBuilder
      Returns:
      The integrator.
    • getIntegratorBytes

      public com.google.protobuf.ByteString getIntegratorBytes()
       Optional. Resource name of the integrator. Required if account is not
       provided. Otherwise, leave this field empty/unset.
       
      optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntegratorBytes in interface UnregisterSubscriberRequestOrBuilder
      Returns:
      The bytes for integrator.
    • setIntegrator

      public UnregisterSubscriberRequest.Builder setIntegrator(String value)
       Optional. Resource name of the integrator. Required if account is not
       provided. Otherwise, leave this field empty/unset.
       
      optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The integrator to set.
      Returns:
      This builder for chaining.
    • clearIntegrator

      public UnregisterSubscriberRequest.Builder clearIntegrator()
       Optional. Resource name of the integrator. Required if account is not
       provided. Otherwise, leave this field empty/unset.
       
      optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setIntegratorBytes

      public UnregisterSubscriberRequest.Builder setIntegratorBytes(com.google.protobuf.ByteString value)
       Optional. Resource name of the integrator. Required if account is not
       provided. Otherwise, leave this field empty/unset.
       
      optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for integrator to set.
      Returns:
      This builder for chaining.