Class SupportedDatabaseFlag.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SupportedDatabaseFlag.Builder>
com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Builder
All Implemented Interfaces:
SupportedDatabaseFlagOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SupportedDatabaseFlag

public static final class SupportedDatabaseFlag.Builder extends com.google.protobuf.GeneratedMessage.Builder<SupportedDatabaseFlag.Builder> implements SupportedDatabaseFlagOrBuilder
 SupportedDatabaseFlag gives general information about a database flag,
 like type and allowed values. This is a static value that is defined
 on the server side, and it cannot be modified by callers.
 To set the Database flags on a particular Instance, a caller should modify
 the Instance.database_flags field.
 
Protobuf type google.cloud.alloydb.v1beta.SupportedDatabaseFlag
  • 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<SupportedDatabaseFlag.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<SupportedDatabaseFlag.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<SupportedDatabaseFlag.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SupportedDatabaseFlag.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<SupportedDatabaseFlag.Builder>
      Throws:
      IOException
    • getRestrictionsCase

      public SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase()
      Specified by:
      getRestrictionsCase in interface SupportedDatabaseFlagOrBuilder
    • clearRestrictions

      public SupportedDatabaseFlag.Builder clearRestrictions()
    • getRecommendedValueCase

      public SupportedDatabaseFlag.RecommendedValueCase getRecommendedValueCase()
      Specified by:
      getRecommendedValueCase in interface SupportedDatabaseFlagOrBuilder
    • clearRecommendedValue

      public SupportedDatabaseFlag.Builder clearRecommendedValue()
    • hasStringRestrictions

      public boolean hasStringRestrictions()
       Restriction on STRING type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
      Specified by:
      hasStringRestrictions in interface SupportedDatabaseFlagOrBuilder
      Returns:
      Whether the stringRestrictions field is set.
    • getStringRestrictions

      public SupportedDatabaseFlag.StringRestrictions getStringRestrictions()
       Restriction on STRING type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
      Specified by:
      getStringRestrictions in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The stringRestrictions.
    • setStringRestrictions

       Restriction on STRING type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
    • setStringRestrictions

       Restriction on STRING type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
    • mergeStringRestrictions

       Restriction on STRING type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
    • clearStringRestrictions

      public SupportedDatabaseFlag.Builder clearStringRestrictions()
       Restriction on STRING type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
    • getStringRestrictionsBuilder

      public SupportedDatabaseFlag.StringRestrictions.Builder getStringRestrictionsBuilder()
       Restriction on STRING type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
    • getStringRestrictionsOrBuilder

      public SupportedDatabaseFlag.StringRestrictionsOrBuilder getStringRestrictionsOrBuilder()
       Restriction on STRING type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
      Specified by:
      getStringRestrictionsOrBuilder in interface SupportedDatabaseFlagOrBuilder
    • hasIntegerRestrictions

      public boolean hasIntegerRestrictions()
       Restriction on INTEGER type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
      Specified by:
      hasIntegerRestrictions in interface SupportedDatabaseFlagOrBuilder
      Returns:
      Whether the integerRestrictions field is set.
    • getIntegerRestrictions

      public SupportedDatabaseFlag.IntegerRestrictions getIntegerRestrictions()
       Restriction on INTEGER type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
      Specified by:
      getIntegerRestrictions in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The integerRestrictions.
    • setIntegerRestrictions

       Restriction on INTEGER type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
    • setIntegerRestrictions

       Restriction on INTEGER type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
    • mergeIntegerRestrictions

       Restriction on INTEGER type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
    • clearIntegerRestrictions

      public SupportedDatabaseFlag.Builder clearIntegerRestrictions()
       Restriction on INTEGER type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
    • getIntegerRestrictionsBuilder

      public SupportedDatabaseFlag.IntegerRestrictions.Builder getIntegerRestrictionsBuilder()
       Restriction on INTEGER type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
    • getIntegerRestrictionsOrBuilder

      public SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder()
       Restriction on INTEGER type value.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
      Specified by:
      getIntegerRestrictionsOrBuilder in interface SupportedDatabaseFlagOrBuilder
    • hasRecommendedStringValue

      public boolean hasRecommendedStringValue()
       The recommended value for a STRING flag.
       
      string recommended_string_value = 10;
      Specified by:
      hasRecommendedStringValue in interface SupportedDatabaseFlagOrBuilder
      Returns:
      Whether the recommendedStringValue field is set.
    • getRecommendedStringValue

      public String getRecommendedStringValue()
       The recommended value for a STRING flag.
       
      string recommended_string_value = 10;
      Specified by:
      getRecommendedStringValue in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The recommendedStringValue.
    • getRecommendedStringValueBytes

      public com.google.protobuf.ByteString getRecommendedStringValueBytes()
       The recommended value for a STRING flag.
       
      string recommended_string_value = 10;
      Specified by:
      getRecommendedStringValueBytes in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The bytes for recommendedStringValue.
    • setRecommendedStringValue

      public SupportedDatabaseFlag.Builder setRecommendedStringValue(String value)
       The recommended value for a STRING flag.
       
      string recommended_string_value = 10;
      Parameters:
      value - The recommendedStringValue to set.
      Returns:
      This builder for chaining.
    • clearRecommendedStringValue

      public SupportedDatabaseFlag.Builder clearRecommendedStringValue()
       The recommended value for a STRING flag.
       
      string recommended_string_value = 10;
      Returns:
      This builder for chaining.
    • setRecommendedStringValueBytes

      public SupportedDatabaseFlag.Builder setRecommendedStringValueBytes(com.google.protobuf.ByteString value)
       The recommended value for a STRING flag.
       
      string recommended_string_value = 10;
      Parameters:
      value - The bytes for recommendedStringValue to set.
      Returns:
      This builder for chaining.
    • hasRecommendedIntegerValue

      public boolean hasRecommendedIntegerValue()
       The recommended value for an INTEGER flag.
       
      .google.protobuf.Int64Value recommended_integer_value = 11;
      Specified by:
      hasRecommendedIntegerValue in interface SupportedDatabaseFlagOrBuilder
      Returns:
      Whether the recommendedIntegerValue field is set.
    • getRecommendedIntegerValue

      public com.google.protobuf.Int64Value getRecommendedIntegerValue()
       The recommended value for an INTEGER flag.
       
      .google.protobuf.Int64Value recommended_integer_value = 11;
      Specified by:
      getRecommendedIntegerValue in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The recommendedIntegerValue.
    • setRecommendedIntegerValue

      public SupportedDatabaseFlag.Builder setRecommendedIntegerValue(com.google.protobuf.Int64Value value)
       The recommended value for an INTEGER flag.
       
      .google.protobuf.Int64Value recommended_integer_value = 11;
    • setRecommendedIntegerValue

      public SupportedDatabaseFlag.Builder setRecommendedIntegerValue(com.google.protobuf.Int64Value.Builder builderForValue)
       The recommended value for an INTEGER flag.
       
      .google.protobuf.Int64Value recommended_integer_value = 11;
    • mergeRecommendedIntegerValue

      public SupportedDatabaseFlag.Builder mergeRecommendedIntegerValue(com.google.protobuf.Int64Value value)
       The recommended value for an INTEGER flag.
       
      .google.protobuf.Int64Value recommended_integer_value = 11;
    • clearRecommendedIntegerValue

      public SupportedDatabaseFlag.Builder clearRecommendedIntegerValue()
       The recommended value for an INTEGER flag.
       
      .google.protobuf.Int64Value recommended_integer_value = 11;
    • getRecommendedIntegerValueBuilder

      public com.google.protobuf.Int64Value.Builder getRecommendedIntegerValueBuilder()
       The recommended value for an INTEGER flag.
       
      .google.protobuf.Int64Value recommended_integer_value = 11;
    • getRecommendedIntegerValueOrBuilder

      public com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder()
       The recommended value for an INTEGER flag.
       
      .google.protobuf.Int64Value recommended_integer_value = 11;
      Specified by:
      getRecommendedIntegerValueOrBuilder in interface SupportedDatabaseFlagOrBuilder
    • getName

      public String getName()
       The name of the flag resource, following Google Cloud conventions, e.g.:
       * projects/{project}/locations/{location}/flags/{flag}
       This field currently has no semantic meaning.
       
      string name = 1;
      Specified by:
      getName in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the flag resource, following Google Cloud conventions, e.g.:
       * projects/{project}/locations/{location}/flags/{flag}
       This field currently has no semantic meaning.
       
      string name = 1;
      Specified by:
      getNameBytes in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The bytes for name.
    • setName

      public SupportedDatabaseFlag.Builder setName(String value)
       The name of the flag resource, following Google Cloud conventions, e.g.:
       * projects/{project}/locations/{location}/flags/{flag}
       This field currently has no semantic meaning.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public SupportedDatabaseFlag.Builder clearName()
       The name of the flag resource, following Google Cloud conventions, e.g.:
       * projects/{project}/locations/{location}/flags/{flag}
       This field currently has no semantic meaning.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public SupportedDatabaseFlag.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the flag resource, following Google Cloud conventions, e.g.:
       * projects/{project}/locations/{location}/flags/{flag}
       This field currently has no semantic meaning.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getFlagName

      public String getFlagName()
       The name of the database flag, e.g. "max_allowed_packets".
       The is a possibly key for the Instance.database_flags map field.
       
      string flag_name = 2;
      Specified by:
      getFlagName in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The flagName.
    • getFlagNameBytes

      public com.google.protobuf.ByteString getFlagNameBytes()
       The name of the database flag, e.g. "max_allowed_packets".
       The is a possibly key for the Instance.database_flags map field.
       
      string flag_name = 2;
      Specified by:
      getFlagNameBytes in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The bytes for flagName.
    • setFlagName

      public SupportedDatabaseFlag.Builder setFlagName(String value)
       The name of the database flag, e.g. "max_allowed_packets".
       The is a possibly key for the Instance.database_flags map field.
       
      string flag_name = 2;
      Parameters:
      value - The flagName to set.
      Returns:
      This builder for chaining.
    • clearFlagName

      public SupportedDatabaseFlag.Builder clearFlagName()
       The name of the database flag, e.g. "max_allowed_packets".
       The is a possibly key for the Instance.database_flags map field.
       
      string flag_name = 2;
      Returns:
      This builder for chaining.
    • setFlagNameBytes

      public SupportedDatabaseFlag.Builder setFlagNameBytes(com.google.protobuf.ByteString value)
       The name of the database flag, e.g. "max_allowed_packets".
       The is a possibly key for the Instance.database_flags map field.
       
      string flag_name = 2;
      Parameters:
      value - The bytes for flagName to set.
      Returns:
      This builder for chaining.
    • getValueTypeValue

      public int getValueTypeValue()
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;
      Specified by:
      getValueTypeValue in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The enum numeric value on the wire for valueType.
    • setValueTypeValue

      public SupportedDatabaseFlag.Builder setValueTypeValue(int value)
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;
      Parameters:
      value - The enum numeric value on the wire for valueType to set.
      Returns:
      This builder for chaining.
    • getValueType

      public SupportedDatabaseFlag.ValueType getValueType()
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;
      Specified by:
      getValueType in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The valueType.
    • setValueType

      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;
      Parameters:
      value - The valueType to set.
      Returns:
      This builder for chaining.
    • clearValueType

      public SupportedDatabaseFlag.Builder clearValueType()
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;
      Returns:
      This builder for chaining.
    • getAcceptsMultipleValues

      public boolean getAcceptsMultipleValues()
       Whether the database flag accepts multiple values. If true,
       a comma-separated list of stringified values may be specified.
       
      bool accepts_multiple_values = 4;
      Specified by:
      getAcceptsMultipleValues in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The acceptsMultipleValues.
    • setAcceptsMultipleValues

      public SupportedDatabaseFlag.Builder setAcceptsMultipleValues(boolean value)
       Whether the database flag accepts multiple values. If true,
       a comma-separated list of stringified values may be specified.
       
      bool accepts_multiple_values = 4;
      Parameters:
      value - The acceptsMultipleValues to set.
      Returns:
      This builder for chaining.
    • clearAcceptsMultipleValues

      public SupportedDatabaseFlag.Builder clearAcceptsMultipleValues()
       Whether the database flag accepts multiple values. If true,
       a comma-separated list of stringified values may be specified.
       
      bool accepts_multiple_values = 4;
      Returns:
      This builder for chaining.
    • getSupportedDbVersionsList

      public List<DatabaseVersion> getSupportedDbVersionsList()
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Specified by:
      getSupportedDbVersionsList in interface SupportedDatabaseFlagOrBuilder
      Returns:
      A list containing the supportedDbVersions.
    • getSupportedDbVersionsCount

      public int getSupportedDbVersionsCount()
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Specified by:
      getSupportedDbVersionsCount in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The count of supportedDbVersions.
    • getSupportedDbVersions

      public DatabaseVersion getSupportedDbVersions(int index)
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Specified by:
      getSupportedDbVersions in interface SupportedDatabaseFlagOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The supportedDbVersions at the given index.
    • setSupportedDbVersions

      public SupportedDatabaseFlag.Builder setSupportedDbVersions(int index, DatabaseVersion value)
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Parameters:
      index - The index to set the value at.
      value - The supportedDbVersions to set.
      Returns:
      This builder for chaining.
    • addSupportedDbVersions

      public SupportedDatabaseFlag.Builder addSupportedDbVersions(DatabaseVersion value)
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Parameters:
      value - The supportedDbVersions to add.
      Returns:
      This builder for chaining.
    • addAllSupportedDbVersions

      public SupportedDatabaseFlag.Builder addAllSupportedDbVersions(Iterable<? extends DatabaseVersion> values)
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Parameters:
      values - The supportedDbVersions to add.
      Returns:
      This builder for chaining.
    • clearSupportedDbVersions

      public SupportedDatabaseFlag.Builder clearSupportedDbVersions()
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Returns:
      This builder for chaining.
    • getSupportedDbVersionsValueList

      public List<Integer> getSupportedDbVersionsValueList()
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Specified by:
      getSupportedDbVersionsValueList in interface SupportedDatabaseFlagOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for supportedDbVersions.
    • getSupportedDbVersionsValue

      public int getSupportedDbVersionsValue(int index)
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Specified by:
      getSupportedDbVersionsValue in interface SupportedDatabaseFlagOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of supportedDbVersions at the given index.
    • setSupportedDbVersionsValue

      public SupportedDatabaseFlag.Builder setSupportedDbVersionsValue(int index, int value)
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for supportedDbVersions to set.
      Returns:
      This builder for chaining.
    • addSupportedDbVersionsValue

      public SupportedDatabaseFlag.Builder addSupportedDbVersionsValue(int value)
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Parameters:
      value - The enum numeric value on the wire for supportedDbVersions to add.
      Returns:
      This builder for chaining.
    • addAllSupportedDbVersionsValue

      public SupportedDatabaseFlag.Builder addAllSupportedDbVersionsValue(Iterable<Integer> values)
       Major database engine versions for which this flag is supported.
       
      repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
      Parameters:
      values - The enum numeric values on the wire for supportedDbVersions to add.
      Returns:
      This builder for chaining.
    • getRequiresDbRestart

      public boolean getRequiresDbRestart()
       Whether setting or updating this flag on an Instance requires a database
       restart. If a flag that requires database restart is set, the backend
       will automatically restart the database (making sure to satisfy any
       availability SLO's).
       
      bool requires_db_restart = 6;
      Specified by:
      getRequiresDbRestart in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The requiresDbRestart.
    • setRequiresDbRestart

      public SupportedDatabaseFlag.Builder setRequiresDbRestart(boolean value)
       Whether setting or updating this flag on an Instance requires a database
       restart. If a flag that requires database restart is set, the backend
       will automatically restart the database (making sure to satisfy any
       availability SLO's).
       
      bool requires_db_restart = 6;
      Parameters:
      value - The requiresDbRestart to set.
      Returns:
      This builder for chaining.
    • clearRequiresDbRestart

      public SupportedDatabaseFlag.Builder clearRequiresDbRestart()
       Whether setting or updating this flag on an Instance requires a database
       restart. If a flag that requires database restart is set, the backend
       will automatically restart the database (making sure to satisfy any
       availability SLO's).
       
      bool requires_db_restart = 6;
      Returns:
      This builder for chaining.
    • getScopeValue

      public int getScopeValue()
       The scope of the flag.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9;
      Specified by:
      getScopeValue in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The enum numeric value on the wire for scope.
    • setScopeValue

      public SupportedDatabaseFlag.Builder setScopeValue(int value)
       The scope of the flag.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9;
      Parameters:
      value - The enum numeric value on the wire for scope to set.
      Returns:
      This builder for chaining.
    • getScope

      public SupportedDatabaseFlag.Scope getScope()
       The scope of the flag.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9;
      Specified by:
      getScope in interface SupportedDatabaseFlagOrBuilder
      Returns:
      The scope.
    • setScope

       The scope of the flag.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9;
      Parameters:
      value - The scope to set.
      Returns:
      This builder for chaining.
    • clearScope

      public SupportedDatabaseFlag.Builder clearScope()
       The scope of the flag.
       
      .google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9;
      Returns:
      This builder for chaining.