Class Workload.KMSSettings.Builder

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

public static final class Workload.KMSSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<Workload.KMSSettings.Builder> implements Workload.KMSSettingsOrBuilder
 Settings specific to the Key Management Service.
 This message is deprecated.
 In order to create a Keyring, callers should specify,
 ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
 
Protobuf type google.cloud.assuredworkloads.v1.Workload.KMSSettings
  • 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<Workload.KMSSettings.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<Workload.KMSSettings.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<Workload.KMSSettings.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Workload.KMSSettings.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<Workload.KMSSettings.Builder>
      Throws:
      IOException
    • hasNextRotationTime

      public boolean hasNextRotationTime()
       Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
       new version of the crypto key and mark it as the primary.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasNextRotationTime in interface Workload.KMSSettingsOrBuilder
      Returns:
      Whether the nextRotationTime field is set.
    • getNextRotationTime

      public com.google.protobuf.Timestamp getNextRotationTime()
       Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
       new version of the crypto key and mark it as the primary.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNextRotationTime in interface Workload.KMSSettingsOrBuilder
      Returns:
      The nextRotationTime.
    • setNextRotationTime

      public Workload.KMSSettings.Builder setNextRotationTime(com.google.protobuf.Timestamp value)
       Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
       new version of the crypto key and mark it as the primary.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • setNextRotationTime

      public Workload.KMSSettings.Builder setNextRotationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
       new version of the crypto key and mark it as the primary.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • mergeNextRotationTime

      public Workload.KMSSettings.Builder mergeNextRotationTime(com.google.protobuf.Timestamp value)
       Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
       new version of the crypto key and mark it as the primary.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • clearNextRotationTime

      public Workload.KMSSettings.Builder clearNextRotationTime()
       Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
       new version of the crypto key and mark it as the primary.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • getNextRotationTimeBuilder

      public com.google.protobuf.Timestamp.Builder getNextRotationTimeBuilder()
       Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
       new version of the crypto key and mark it as the primary.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • getNextRotationTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getNextRotationTimeOrBuilder()
       Required. Input only. Immutable. The time at which the Key Management Service will automatically create a
       new version of the crypto key and mark it as the primary.
       
      .google.protobuf.Timestamp next_rotation_time = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getNextRotationTimeOrBuilder in interface Workload.KMSSettingsOrBuilder
    • hasRotationPeriod

      public boolean hasRotationPeriod()
       Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
       Management Service automatically rotates a key. Must be at least 24 hours
       and at most 876,000 hours.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      hasRotationPeriod in interface Workload.KMSSettingsOrBuilder
      Returns:
      Whether the rotationPeriod field is set.
    • getRotationPeriod

      public com.google.protobuf.Duration getRotationPeriod()
       Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
       Management Service automatically rotates a key. Must be at least 24 hours
       and at most 876,000 hours.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getRotationPeriod in interface Workload.KMSSettingsOrBuilder
      Returns:
      The rotationPeriod.
    • setRotationPeriod

      public Workload.KMSSettings.Builder setRotationPeriod(com.google.protobuf.Duration value)
       Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
       Management Service automatically rotates a key. Must be at least 24 hours
       and at most 876,000 hours.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • setRotationPeriod

      public Workload.KMSSettings.Builder setRotationPeriod(com.google.protobuf.Duration.Builder builderForValue)
       Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
       Management Service automatically rotates a key. Must be at least 24 hours
       and at most 876,000 hours.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • mergeRotationPeriod

      public Workload.KMSSettings.Builder mergeRotationPeriod(com.google.protobuf.Duration value)
       Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
       Management Service automatically rotates a key. Must be at least 24 hours
       and at most 876,000 hours.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • clearRotationPeriod

      public Workload.KMSSettings.Builder clearRotationPeriod()
       Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
       Management Service automatically rotates a key. Must be at least 24 hours
       and at most 876,000 hours.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • getRotationPeriodBuilder

      public com.google.protobuf.Duration.Builder getRotationPeriodBuilder()
       Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
       Management Service automatically rotates a key. Must be at least 24 hours
       and at most 876,000 hours.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
    • getRotationPeriodOrBuilder

      public com.google.protobuf.DurationOrBuilder getRotationPeriodOrBuilder()
       Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key
       Management Service automatically rotates a key. Must be at least 24 hours
       and at most 876,000 hours.
       
      .google.protobuf.Duration rotation_period = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];
      Specified by:
      getRotationPeriodOrBuilder in interface Workload.KMSSettingsOrBuilder