Class Subscription.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Subscription.Builder>
com.google.apps.events.subscriptions.v1beta.Subscription.Builder
All Implemented Interfaces:
SubscriptionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Subscription

public static final class Subscription.Builder extends com.google.protobuf.GeneratedMessage.Builder<Subscription.Builder> implements SubscriptionOrBuilder
 A subscription to receive events about a Google Workspace resource. To learn
 more about subscriptions, see the [Google Workspace Events API
 overview](https://developers.google.com/workspace/events).
 
Protobuf type google.apps.events.subscriptions.v1beta.Subscription
  • 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<Subscription.Builder>
    • clear

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

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

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

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

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

      public Subscription.Builder mergeFrom(Subscription other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Subscription.Builder>
    • mergeFrom

      public Subscription.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<Subscription.Builder>
      Throws:
      IOException
    • getSubscriptionOptionsCase

      public Subscription.SubscriptionOptionsCase getSubscriptionOptionsCase()
      Specified by:
      getSubscriptionOptionsCase in interface SubscriptionOrBuilder
    • clearSubscriptionOptions

      public Subscription.Builder clearSubscriptionOptions()
    • getExpirationCase

      public Subscription.ExpirationCase getExpirationCase()
      Specified by:
      getExpirationCase in interface SubscriptionOrBuilder
    • clearExpiration

      public Subscription.Builder clearExpiration()
    • hasDriveOptions

      public boolean hasDriveOptions()
       Optional. Features that are supported only for subscriptions on Drive
       resources.
       
      .google.apps.events.subscriptions.v1beta.Subscription.DriveOptions drive_options = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDriveOptions in interface SubscriptionOrBuilder
      Returns:
      Whether the driveOptions field is set.
    • getDriveOptions

      public Subscription.DriveOptions getDriveOptions()
       Optional. Features that are supported only for subscriptions on Drive
       resources.
       
      .google.apps.events.subscriptions.v1beta.Subscription.DriveOptions drive_options = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDriveOptions in interface SubscriptionOrBuilder
      Returns:
      The driveOptions.
    • setDriveOptions

      public Subscription.Builder setDriveOptions(Subscription.DriveOptions value)
       Optional. Features that are supported only for subscriptions on Drive
       resources.
       
      .google.apps.events.subscriptions.v1beta.Subscription.DriveOptions drive_options = 20 [(.google.api.field_behavior) = OPTIONAL];
    • setDriveOptions

      public Subscription.Builder setDriveOptions(Subscription.DriveOptions.Builder builderForValue)
       Optional. Features that are supported only for subscriptions on Drive
       resources.
       
      .google.apps.events.subscriptions.v1beta.Subscription.DriveOptions drive_options = 20 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDriveOptions

      public Subscription.Builder mergeDriveOptions(Subscription.DriveOptions value)
       Optional. Features that are supported only for subscriptions on Drive
       resources.
       
      .google.apps.events.subscriptions.v1beta.Subscription.DriveOptions drive_options = 20 [(.google.api.field_behavior) = OPTIONAL];
    • clearDriveOptions

      public Subscription.Builder clearDriveOptions()
       Optional. Features that are supported only for subscriptions on Drive
       resources.
       
      .google.apps.events.subscriptions.v1beta.Subscription.DriveOptions drive_options = 20 [(.google.api.field_behavior) = OPTIONAL];
    • getDriveOptionsBuilder

      public Subscription.DriveOptions.Builder getDriveOptionsBuilder()
       Optional. Features that are supported only for subscriptions on Drive
       resources.
       
      .google.apps.events.subscriptions.v1beta.Subscription.DriveOptions drive_options = 20 [(.google.api.field_behavior) = OPTIONAL];
    • getDriveOptionsOrBuilder

      public Subscription.DriveOptionsOrBuilder getDriveOptionsOrBuilder()
       Optional. Features that are supported only for subscriptions on Drive
       resources.
       
      .google.apps.events.subscriptions.v1beta.Subscription.DriveOptions drive_options = 20 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDriveOptionsOrBuilder in interface SubscriptionOrBuilder
    • hasExpireTime

      public boolean hasExpireTime()
       Non-empty default. The timestamp in UTC when the subscription expires.
       Always displayed on output, regardless of what was used on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
      Specified by:
      hasExpireTime in interface SubscriptionOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Non-empty default. The timestamp in UTC when the subscription expires.
       Always displayed on output, regardless of what was used on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
      Specified by:
      getExpireTime in interface SubscriptionOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public Subscription.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Non-empty default. The timestamp in UTC when the subscription expires.
       Always displayed on output, regardless of what was used on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
    • setExpireTime

      public Subscription.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Non-empty default. The timestamp in UTC when the subscription expires.
       Always displayed on output, regardless of what was used on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
    • mergeExpireTime

      public Subscription.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Non-empty default. The timestamp in UTC when the subscription expires.
       Always displayed on output, regardless of what was used on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
    • clearExpireTime

      public Subscription.Builder clearExpireTime()
       Non-empty default. The timestamp in UTC when the subscription expires.
       Always displayed on output, regardless of what was used on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Non-empty default. The timestamp in UTC when the subscription expires.
       Always displayed on output, regardless of what was used on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Non-empty default. The timestamp in UTC when the subscription expires.
       Always displayed on output, regardless of what was used on input.
       
      .google.protobuf.Timestamp expire_time = 13 [(.google.api.field_behavior) = NON_EMPTY_DEFAULT];
      Specified by:
      getExpireTimeOrBuilder in interface SubscriptionOrBuilder
    • hasTtl

      public boolean hasTtl()
       Input only. The time-to-live (TTL) or duration for the subscription. If
       unspecified or set to `0`, uses the maximum possible duration.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      hasTtl in interface SubscriptionOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public com.google.protobuf.Duration getTtl()
       Input only. The time-to-live (TTL) or duration for the subscription. If
       unspecified or set to `0`, uses the maximum possible duration.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getTtl in interface SubscriptionOrBuilder
      Returns:
      The ttl.
    • setTtl

      public Subscription.Builder setTtl(com.google.protobuf.Duration value)
       Input only. The time-to-live (TTL) or duration for the subscription. If
       unspecified or set to `0`, uses the maximum possible duration.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY];
    • setTtl

      public Subscription.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
       Input only. The time-to-live (TTL) or duration for the subscription. If
       unspecified or set to `0`, uses the maximum possible duration.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY];
    • mergeTtl

      public Subscription.Builder mergeTtl(com.google.protobuf.Duration value)
       Input only. The time-to-live (TTL) or duration for the subscription. If
       unspecified or set to `0`, uses the maximum possible duration.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY];
    • clearTtl

      public Subscription.Builder clearTtl()
       Input only. The time-to-live (TTL) or duration for the subscription. If
       unspecified or set to `0`, uses the maximum possible duration.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY];
    • getTtlBuilder

      public com.google.protobuf.Duration.Builder getTtlBuilder()
       Input only. The time-to-live (TTL) or duration for the subscription. If
       unspecified or set to `0`, uses the maximum possible duration.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY];
    • getTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
       Input only. The time-to-live (TTL) or duration for the subscription. If
       unspecified or set to `0`, uses the maximum possible duration.
       
      .google.protobuf.Duration ttl = 14 [(.google.api.field_behavior) = INPUT_ONLY];
      Specified by:
      getTtlOrBuilder in interface SubscriptionOrBuilder
    • getName

      public String getName()
       Identifier. Resource name of the subscription.
      
       Format: `subscriptions/{subscription}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SubscriptionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Resource name of the subscription.
      
       Format: `subscriptions/{subscription}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Subscription.Builder setName(String value)
       Identifier. Resource name of the subscription.
      
       Format: `subscriptions/{subscription}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Subscription.Builder clearName()
       Identifier. Resource name of the subscription.
      
       Format: `subscriptions/{subscription}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Subscription.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Resource name of the subscription.
      
       Format: `subscriptions/{subscription}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. System-assigned unique identifier for the subscription.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface SubscriptionOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. System-assigned unique identifier for the subscription.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public Subscription.Builder setUid(String value)
       Output only. System-assigned unique identifier for the subscription.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public Subscription.Builder clearUid()
       Output only. System-assigned unique identifier for the subscription.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public Subscription.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. System-assigned unique identifier for the subscription.
       
      string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.
    • getTargetResource

      public String getTargetResource()
       Required. Immutable. The Google Workspace resource that's monitored for
       events, formatted as the [full resource
       name](https://google.aip.dev/122#full-resource-names). To learn about
       target resources and the events that they support, see [Supported Google
       Workspace
       events](https://developers.google.com/workspace/events#supported-events).
      
       A user can only authorize your app to create one subscription for a given
       target resource. If your app tries to create another subscription with the
       same user credentials, the request returns an `ALREADY_EXISTS` error.
       
      string target_resource = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getTargetResource in interface SubscriptionOrBuilder
      Returns:
      The targetResource.
    • getTargetResourceBytes

      public com.google.protobuf.ByteString getTargetResourceBytes()
       Required. Immutable. The Google Workspace resource that's monitored for
       events, formatted as the [full resource
       name](https://google.aip.dev/122#full-resource-names). To learn about
       target resources and the events that they support, see [Supported Google
       Workspace
       events](https://developers.google.com/workspace/events#supported-events).
      
       A user can only authorize your app to create one subscription for a given
       target resource. If your app tries to create another subscription with the
       same user credentials, the request returns an `ALREADY_EXISTS` error.
       
      string target_resource = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getTargetResourceBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for targetResource.
    • setTargetResource

      public Subscription.Builder setTargetResource(String value)
       Required. Immutable. The Google Workspace resource that's monitored for
       events, formatted as the [full resource
       name](https://google.aip.dev/122#full-resource-names). To learn about
       target resources and the events that they support, see [Supported Google
       Workspace
       events](https://developers.google.com/workspace/events#supported-events).
      
       A user can only authorize your app to create one subscription for a given
       target resource. If your app tries to create another subscription with the
       same user credentials, the request returns an `ALREADY_EXISTS` error.
       
      string target_resource = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The targetResource to set.
      Returns:
      This builder for chaining.
    • clearTargetResource

      public Subscription.Builder clearTargetResource()
       Required. Immutable. The Google Workspace resource that's monitored for
       events, formatted as the [full resource
       name](https://google.aip.dev/122#full-resource-names). To learn about
       target resources and the events that they support, see [Supported Google
       Workspace
       events](https://developers.google.com/workspace/events#supported-events).
      
       A user can only authorize your app to create one subscription for a given
       target resource. If your app tries to create another subscription with the
       same user credentials, the request returns an `ALREADY_EXISTS` error.
       
      string target_resource = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setTargetResourceBytes

      public Subscription.Builder setTargetResourceBytes(com.google.protobuf.ByteString value)
       Required. Immutable. The Google Workspace resource that's monitored for
       events, formatted as the [full resource
       name](https://google.aip.dev/122#full-resource-names). To learn about
       target resources and the events that they support, see [Supported Google
       Workspace
       events](https://developers.google.com/workspace/events#supported-events).
      
       A user can only authorize your app to create one subscription for a given
       target resource. If your app tries to create another subscription with the
       same user credentials, the request returns an `ALREADY_EXISTS` error.
       
      string target_resource = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for targetResource to set.
      Returns:
      This builder for chaining.
    • getEventTypesList

      public com.google.protobuf.ProtocolStringList getEventTypesList()
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getEventTypesList in interface SubscriptionOrBuilder
      Returns:
      A list containing the eventTypes.
    • getEventTypesCount

      public int getEventTypesCount()
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getEventTypesCount in interface SubscriptionOrBuilder
      Returns:
      The count of eventTypes.
    • getEventTypes

      public String getEventTypes(int index)
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getEventTypes in interface SubscriptionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The eventTypes at the given index.
    • getEventTypesBytes

      public com.google.protobuf.ByteString getEventTypesBytes(int index)
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Specified by:
      getEventTypesBytes in interface SubscriptionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the eventTypes at the given index.
    • setEventTypes

      public Subscription.Builder setEventTypes(int index, String value)
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      index - The index to set the value at.
      value - The eventTypes to set.
      Returns:
      This builder for chaining.
    • addEventTypes

      public Subscription.Builder addEventTypes(String value)
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      value - The eventTypes to add.
      Returns:
      This builder for chaining.
    • addAllEventTypes

      public Subscription.Builder addAllEventTypes(Iterable<String> values)
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      values - The eventTypes to add.
      Returns:
      This builder for chaining.
    • clearEventTypes

      public Subscription.Builder clearEventTypes()
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Returns:
      This builder for chaining.
    • addEventTypesBytes

      public Subscription.Builder addEventTypesBytes(com.google.protobuf.ByteString value)
       Required. Unordered list. Input for creating a subscription. Otherwise,
       output only. One or more types of events to receive about the target
       resource. Formatted according to the CloudEvents specification.
      
       The supported event types depend on the target resource of your
       subscription. For details, see [Supported Google Workspace
       events](https://developers.google.com/workspace/events/guides#supported-events).
      
       By default, you also receive events about the [lifecycle of your
       subscription](https://developers.google.com/workspace/events/guides/events-lifecycle).
       You don't need to specify lifecycle events for this field.
      
       If you specify an event type that doesn't exist for the target resource,
       the request returns an HTTP `400 Bad Request` status code.
       
      repeated string event_types = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST];
      Parameters:
      value - The bytes of the eventTypes to add.
      Returns:
      This builder for chaining.
    • hasPayloadOptions

      public boolean hasPayloadOptions()
       Optional. Options about what data to include in the event payload. Only
       supported for Google Chat events.
       
      .google.apps.events.subscriptions.v1beta.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPayloadOptions in interface SubscriptionOrBuilder
      Returns:
      Whether the payloadOptions field is set.
    • getPayloadOptions

      public PayloadOptions getPayloadOptions()
       Optional. Options about what data to include in the event payload. Only
       supported for Google Chat events.
       
      .google.apps.events.subscriptions.v1beta.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPayloadOptions in interface SubscriptionOrBuilder
      Returns:
      The payloadOptions.
    • setPayloadOptions

      public Subscription.Builder setPayloadOptions(PayloadOptions value)
       Optional. Options about what data to include in the event payload. Only
       supported for Google Chat events.
       
      .google.apps.events.subscriptions.v1beta.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setPayloadOptions

      public Subscription.Builder setPayloadOptions(PayloadOptions.Builder builderForValue)
       Optional. Options about what data to include in the event payload. Only
       supported for Google Chat events.
       
      .google.apps.events.subscriptions.v1beta.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergePayloadOptions

      public Subscription.Builder mergePayloadOptions(PayloadOptions value)
       Optional. Options about what data to include in the event payload. Only
       supported for Google Chat events.
       
      .google.apps.events.subscriptions.v1beta.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearPayloadOptions

      public Subscription.Builder clearPayloadOptions()
       Optional. Options about what data to include in the event payload. Only
       supported for Google Chat events.
       
      .google.apps.events.subscriptions.v1beta.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getPayloadOptionsBuilder

      public PayloadOptions.Builder getPayloadOptionsBuilder()
       Optional. Options about what data to include in the event payload. Only
       supported for Google Chat events.
       
      .google.apps.events.subscriptions.v1beta.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getPayloadOptionsOrBuilder

      public PayloadOptionsOrBuilder getPayloadOptionsOrBuilder()
       Optional. Options about what data to include in the event payload. Only
       supported for Google Chat events.
       
      .google.apps.events.subscriptions.v1beta.PayloadOptions payload_options = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPayloadOptionsOrBuilder in interface SubscriptionOrBuilder
    • hasNotificationEndpoint

      public boolean hasNotificationEndpoint()
       Required. Immutable. The endpoint where the subscription delivers events,
       such as a Pub/Sub topic.
       
      .google.apps.events.subscriptions.v1beta.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasNotificationEndpoint in interface SubscriptionOrBuilder
      Returns:
      Whether the notificationEndpoint field is set.
    • getNotificationEndpoint

      public NotificationEndpoint getNotificationEndpoint()
       Required. Immutable. The endpoint where the subscription delivers events,
       such as a Pub/Sub topic.
       
      .google.apps.events.subscriptions.v1beta.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNotificationEndpoint in interface SubscriptionOrBuilder
      Returns:
      The notificationEndpoint.
    • setNotificationEndpoint

      public Subscription.Builder setNotificationEndpoint(NotificationEndpoint value)
       Required. Immutable. The endpoint where the subscription delivers events,
       such as a Pub/Sub topic.
       
      .google.apps.events.subscriptions.v1beta.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • setNotificationEndpoint

      public Subscription.Builder setNotificationEndpoint(NotificationEndpoint.Builder builderForValue)
       Required. Immutable. The endpoint where the subscription delivers events,
       such as a Pub/Sub topic.
       
      .google.apps.events.subscriptions.v1beta.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • mergeNotificationEndpoint

      public Subscription.Builder mergeNotificationEndpoint(NotificationEndpoint value)
       Required. Immutable. The endpoint where the subscription delivers events,
       such as a Pub/Sub topic.
       
      .google.apps.events.subscriptions.v1beta.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • clearNotificationEndpoint

      public Subscription.Builder clearNotificationEndpoint()
       Required. Immutable. The endpoint where the subscription delivers events,
       such as a Pub/Sub topic.
       
      .google.apps.events.subscriptions.v1beta.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getNotificationEndpointBuilder

      public NotificationEndpoint.Builder getNotificationEndpointBuilder()
       Required. Immutable. The endpoint where the subscription delivers events,
       such as a Pub/Sub topic.
       
      .google.apps.events.subscriptions.v1beta.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
    • getNotificationEndpointOrBuilder

      public NotificationEndpointOrBuilder getNotificationEndpointOrBuilder()
       Required. Immutable. The endpoint where the subscription delivers events,
       such as a Pub/Sub topic.
       
      .google.apps.events.subscriptions.v1beta.NotificationEndpoint notification_endpoint = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNotificationEndpointOrBuilder in interface SubscriptionOrBuilder
    • getStateValue

      public int getStateValue()
       Output only. The state of the subscription. Determines whether the
       subscription can receive events and deliver them to the notification
       endpoint.
       
      .google.apps.events.subscriptions.v1beta.Subscription.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface SubscriptionOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Subscription.Builder setStateValue(int value)
       Output only. The state of the subscription. Determines whether the
       subscription can receive events and deliver them to the notification
       endpoint.
       
      .google.apps.events.subscriptions.v1beta.Subscription.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Subscription.State getState()
       Output only. The state of the subscription. Determines whether the
       subscription can receive events and deliver them to the notification
       endpoint.
       
      .google.apps.events.subscriptions.v1beta.Subscription.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface SubscriptionOrBuilder
      Returns:
      The state.
    • setState

      public Subscription.Builder setState(Subscription.State value)
       Output only. The state of the subscription. Determines whether the
       subscription can receive events and deliver them to the notification
       endpoint.
       
      .google.apps.events.subscriptions.v1beta.Subscription.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Subscription.Builder clearState()
       Output only. The state of the subscription. Determines whether the
       subscription can receive events and deliver them to the notification
       endpoint.
       
      .google.apps.events.subscriptions.v1beta.Subscription.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getSuspensionReasonValue

      public int getSuspensionReasonValue()
       Output only. The error that suspended the subscription.
      
       To reactivate the subscription, resolve the error and call the
       [`ReactivateSubscription`][google.apps.events.subscriptions.v1beta.SubscriptionsService.ReactivateSubscription]
       method.
       
      .google.apps.events.subscriptions.v1beta.Subscription.ErrorType suspension_reason = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSuspensionReasonValue in interface SubscriptionOrBuilder
      Returns:
      The enum numeric value on the wire for suspensionReason.
    • setSuspensionReasonValue

      public Subscription.Builder setSuspensionReasonValue(int value)
       Output only. The error that suspended the subscription.
      
       To reactivate the subscription, resolve the error and call the
       [`ReactivateSubscription`][google.apps.events.subscriptions.v1beta.SubscriptionsService.ReactivateSubscription]
       method.
       
      .google.apps.events.subscriptions.v1beta.Subscription.ErrorType suspension_reason = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for suspensionReason to set.
      Returns:
      This builder for chaining.
    • getSuspensionReason

      public Subscription.ErrorType getSuspensionReason()
       Output only. The error that suspended the subscription.
      
       To reactivate the subscription, resolve the error and call the
       [`ReactivateSubscription`][google.apps.events.subscriptions.v1beta.SubscriptionsService.ReactivateSubscription]
       method.
       
      .google.apps.events.subscriptions.v1beta.Subscription.ErrorType suspension_reason = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSuspensionReason in interface SubscriptionOrBuilder
      Returns:
      The suspensionReason.
    • setSuspensionReason

      public Subscription.Builder setSuspensionReason(Subscription.ErrorType value)
       Output only. The error that suspended the subscription.
      
       To reactivate the subscription, resolve the error and call the
       [`ReactivateSubscription`][google.apps.events.subscriptions.v1beta.SubscriptionsService.ReactivateSubscription]
       method.
       
      .google.apps.events.subscriptions.v1beta.Subscription.ErrorType suspension_reason = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The suspensionReason to set.
      Returns:
      This builder for chaining.
    • clearSuspensionReason

      public Subscription.Builder clearSuspensionReason()
       Output only. The error that suspended the subscription.
      
       To reactivate the subscription, resolve the error and call the
       [`ReactivateSubscription`][google.apps.events.subscriptions.v1beta.SubscriptionsService.ReactivateSubscription]
       method.
       
      .google.apps.events.subscriptions.v1beta.Subscription.ErrorType suspension_reason = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getAuthority

      public String getAuthority()
       Output only. The user who authorized the creation of the subscription.
      
       Format: `users/{user}`
      
       For Google Workspace users, the `{user}` value is the
       [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids)
       field from the Directory API.
       
      string authority = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAuthority in interface SubscriptionOrBuilder
      Returns:
      The authority.
    • getAuthorityBytes

      public com.google.protobuf.ByteString getAuthorityBytes()
       Output only. The user who authorized the creation of the subscription.
      
       Format: `users/{user}`
      
       For Google Workspace users, the `{user}` value is the
       [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids)
       field from the Directory API.
       
      string authority = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getAuthorityBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for authority.
    • setAuthority

      public Subscription.Builder setAuthority(String value)
       Output only. The user who authorized the creation of the subscription.
      
       Format: `users/{user}`
      
       For Google Workspace users, the `{user}` value is the
       [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids)
       field from the Directory API.
       
      string authority = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The authority to set.
      Returns:
      This builder for chaining.
    • clearAuthority

      public Subscription.Builder clearAuthority()
       Output only. The user who authorized the creation of the subscription.
      
       Format: `users/{user}`
      
       For Google Workspace users, the `{user}` value is the
       [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids)
       field from the Directory API.
       
      string authority = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setAuthorityBytes

      public Subscription.Builder setAuthorityBytes(com.google.protobuf.ByteString value)
       Output only. The user who authorized the creation of the subscription.
      
       Format: `users/{user}`
      
       For Google Workspace users, the `{user}` value is the
       [`user.id`](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User.FIELDS.ids)
       field from the Directory API.
       
      string authority = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for authority to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The time when the subscription is created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface SubscriptionOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the subscription is created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface SubscriptionOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Subscription.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the subscription is created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Subscription.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The time when the subscription is created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Subscription.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the subscription is created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Subscription.Builder clearCreateTime()
       Output only. The time when the subscription is created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The time when the subscription is created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the subscription is created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface SubscriptionOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. The last time that the subscription is updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface SubscriptionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The last time that the subscription is updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface SubscriptionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Subscription.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last time that the subscription is updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Subscription.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The last time that the subscription is updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Subscription.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The last time that the subscription is updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Subscription.Builder clearUpdateTime()
       Output only. The last time that the subscription is updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. The last time that the subscription is updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The last time that the subscription is updated.
       
      .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface SubscriptionOrBuilder
    • getReconciling

      public boolean getReconciling()
       Output only. If `true`, the subscription is in the process of being
       updated.
       
      bool reconciling = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getReconciling in interface SubscriptionOrBuilder
      Returns:
      The reconciling.
    • setReconciling

      public Subscription.Builder setReconciling(boolean value)
       Output only. If `true`, the subscription is in the process of being
       updated.
       
      bool reconciling = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The reconciling to set.
      Returns:
      This builder for chaining.
    • clearReconciling

      public Subscription.Builder clearReconciling()
       Output only. If `true`, the subscription is in the process of being
       updated.
       
      bool reconciling = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getEtag

      public String getEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and might be sent on update requests to ensure the client has
       an up-to-date value before proceeding.
       
      string etag = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface SubscriptionOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. This checksum is computed by the server based on the value of
       other fields, and might be sent on update requests to ensure the client has
       an up-to-date value before proceeding.
       
      string etag = 17 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface SubscriptionOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public Subscription.Builder setEtag(String value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and might be sent on update requests to ensure the client has
       an up-to-date value before proceeding.
       
      string etag = 17 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public Subscription.Builder clearEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and might be sent on update requests to ensure the client has
       an up-to-date value before proceeding.
       
      string etag = 17 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Subscription.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and might be sent on update requests to ensure the client has
       an up-to-date value before proceeding.
       
      string etag = 17 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.