Class RevokeSubscriptionRequest.Builder

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

public static final class RevokeSubscriptionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<RevokeSubscriptionRequest.Builder> implements RevokeSubscriptionRequestOrBuilder
 Message for revoking a subscription.
 
Protobuf type google.cloud.bigquery.analyticshub.v1.RevokeSubscriptionRequest
  • 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<RevokeSubscriptionRequest.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<RevokeSubscriptionRequest.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<RevokeSubscriptionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RevokeSubscriptionRequest.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<RevokeSubscriptionRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Resource name of the subscription to revoke.
       e.g. projects/123/locations/us/subscriptions/456
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface RevokeSubscriptionRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Resource name of the subscription to revoke.
       e.g. projects/123/locations/us/subscriptions/456
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface RevokeSubscriptionRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public RevokeSubscriptionRequest.Builder setName(String value)
       Required. Resource name of the subscription to revoke.
       e.g. projects/123/locations/us/subscriptions/456
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. Resource name of the subscription to revoke.
       e.g. projects/123/locations/us/subscriptions/456
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public RevokeSubscriptionRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Resource name of the subscription to revoke.
       e.g. projects/123/locations/us/subscriptions/456
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getRevokeCommercial

      public boolean getRevokeCommercial()
       Optional. If the subscription is commercial then this field must be set to
       true, otherwise a failure is thrown. This acts as a safety guard to avoid
       revoking commercial subscriptions accidentally.
       
      bool revoke_commercial = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRevokeCommercial in interface RevokeSubscriptionRequestOrBuilder
      Returns:
      The revokeCommercial.
    • setRevokeCommercial

      public RevokeSubscriptionRequest.Builder setRevokeCommercial(boolean value)
       Optional. If the subscription is commercial then this field must be set to
       true, otherwise a failure is thrown. This acts as a safety guard to avoid
       revoking commercial subscriptions accidentally.
       
      bool revoke_commercial = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The revokeCommercial to set.
      Returns:
      This builder for chaining.
    • clearRevokeCommercial

      public RevokeSubscriptionRequest.Builder clearRevokeCommercial()
       Optional. If the subscription is commercial then this field must be set to
       true, otherwise a failure is thrown. This acts as a safety guard to avoid
       revoking commercial subscriptions accidentally.
       
      bool revoke_commercial = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.