Class SupportedDatabaseFlag

  • All Implemented Interfaces:
    SupportedDatabaseFlagOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class SupportedDatabaseFlag
    extends com.google.protobuf.GeneratedMessageV3
    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.v1alpha.SupportedDatabaseFlag
    See Also:
    Serialized Form
    • Field Detail

      • STRING_RESTRICTIONS_FIELD_NUMBER

        public static final int STRING_RESTRICTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INTEGER_RESTRICTIONS_FIELD_NUMBER

        public static final int INTEGER_RESTRICTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VALUE_TYPE_FIELD_NUMBER

        public static final int VALUE_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER

        public static final int ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SUPPORTED_DB_VERSIONS_FIELD_NUMBER

        public static final int SUPPORTED_DB_VERSIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REQUIRES_DB_RESTART_FIELD_NUMBER

        public static final int REQUIRES_DB_RESTART_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasStringRestrictions

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

        public boolean hasIntegerRestrictions()
         Restriction on INTEGER type value.
         
        .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
        Specified by:
        hasIntegerRestrictions in interface SupportedDatabaseFlagOrBuilder
        Returns:
        Whether the integerRestrictions field is set.
      • 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.
      • 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.
      • getValueTypeValue

        public int getValueTypeValue()
        .google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType value_type = 3;
        Specified by:
        getValueTypeValue in interface SupportedDatabaseFlagOrBuilder
        Returns:
        The enum numeric value on the wire for valueType.
      • 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.
      • getSupportedDbVersionsCount

        public int getSupportedDbVersionsCount()
         Major database engine versions for which this flag is supported.
         
        repeated .google.cloud.alloydb.v1alpha.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.v1alpha.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.
      • getSupportedDbVersionsValueList

        public List<Integer> getSupportedDbVersionsValueList()
         Major database engine versions for which this flag is supported.
         
        repeated .google.cloud.alloydb.v1alpha.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.v1alpha.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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SupportedDatabaseFlag parseFrom​(ByteBuffer data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SupportedDatabaseFlag parseFrom​(ByteBuffer data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SupportedDatabaseFlag parseFrom​(com.google.protobuf.ByteString data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SupportedDatabaseFlag parseFrom​(com.google.protobuf.ByteString data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SupportedDatabaseFlag parseFrom​(byte[] data)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SupportedDatabaseFlag parseFrom​(byte[] data,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected SupportedDatabaseFlag.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<SupportedDatabaseFlag> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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