Package com.google.cloud.alloydb.v1alpha
Class SupportedDatabaseFlag
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.alloydb.v1alpha.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 typegoogle.cloud.alloydb.v1alpha.SupportedDatabaseFlag
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SupportedDatabaseFlag.Builder
SupportedDatabaseFlag gives general information about a database flag, like type and allowed values.static class
SupportedDatabaseFlag.IntegerRestrictions
Restrictions on INTEGER type values.static interface
SupportedDatabaseFlag.IntegerRestrictionsOrBuilder
static class
SupportedDatabaseFlag.RestrictionsCase
static class
SupportedDatabaseFlag.StringRestrictions
Restrictions on STRING type valuesstatic interface
SupportedDatabaseFlag.StringRestrictionsOrBuilder
static class
SupportedDatabaseFlag.ValueType
ValueType describes the semantic type of the value that the flag accepts.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER
static int
FLAG_NAME_FIELD_NUMBER
static int
INTEGER_RESTRICTIONS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
REQUIRES_DB_RESTART_FIELD_NUMBER
static int
STRING_RESTRICTIONS_FIELD_NUMBER
static int
SUPPORTED_DB_VERSIONS_FIELD_NUMBER
static int
VALUE_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
boolean
getAcceptsMultipleValues()
Whether the database flag accepts multiple values.static SupportedDatabaseFlag
getDefaultInstance()
SupportedDatabaseFlag
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getFlagName()
The name of the database flag, e.g.com.google.protobuf.ByteString
getFlagNameBytes()
The name of the database flag, e.g.SupportedDatabaseFlag.IntegerRestrictions
getIntegerRestrictions()
Restriction on INTEGER type value.SupportedDatabaseFlag.IntegerRestrictionsOrBuilder
getIntegerRestrictionsOrBuilder()
Restriction on INTEGER type value.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.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.com.google.protobuf.Parser<SupportedDatabaseFlag>
getParserForType()
boolean
getRequiresDbRestart()
Whether setting or updating this flag on an Instance requires a database restart.SupportedDatabaseFlag.RestrictionsCase
getRestrictionsCase()
int
getSerializedSize()
SupportedDatabaseFlag.StringRestrictions
getStringRestrictions()
Restriction on STRING type value.SupportedDatabaseFlag.StringRestrictionsOrBuilder
getStringRestrictionsOrBuilder()
Restriction on STRING type value.DatabaseVersion
getSupportedDbVersions(int index)
Major database engine versions for which this flag is supported.int
getSupportedDbVersionsCount()
Major database engine versions for which this flag is supported.List<DatabaseVersion>
getSupportedDbVersionsList()
Major database engine versions for which this flag is supported.int
getSupportedDbVersionsValue(int index)
Major database engine versions for which this flag is supported.List<Integer>
getSupportedDbVersionsValueList()
Major database engine versions for which this flag is supported.SupportedDatabaseFlag.ValueType
getValueType()
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType value_type = 3;
int
getValueTypeValue()
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType value_type = 3;
int
hashCode()
boolean
hasIntegerRestrictions()
Restriction on INTEGER type value.boolean
hasStringRestrictions()
Restriction on STRING type value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static SupportedDatabaseFlag.Builder
newBuilder()
static SupportedDatabaseFlag.Builder
newBuilder(SupportedDatabaseFlag prototype)
SupportedDatabaseFlag.Builder
newBuilderForType()
protected SupportedDatabaseFlag.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SupportedDatabaseFlag
parseDelimitedFrom(InputStream input)
static SupportedDatabaseFlag
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SupportedDatabaseFlag
parseFrom(byte[] data)
static SupportedDatabaseFlag
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SupportedDatabaseFlag
parseFrom(com.google.protobuf.ByteString data)
static SupportedDatabaseFlag
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SupportedDatabaseFlag
parseFrom(com.google.protobuf.CodedInputStream input)
static SupportedDatabaseFlag
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SupportedDatabaseFlag
parseFrom(InputStream input)
static SupportedDatabaseFlag
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SupportedDatabaseFlag
parseFrom(ByteBuffer data)
static SupportedDatabaseFlag
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SupportedDatabaseFlag>
parser()
SupportedDatabaseFlag.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLAG_NAME_FIELD_NUMBER
public static final int FLAG_NAME_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 classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
getRestrictionsCase
public SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase()
- Specified by:
getRestrictionsCase
in interfaceSupportedDatabaseFlagOrBuilder
-
hasStringRestrictions
public boolean hasStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
- Specified by:
hasStringRestrictions
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- Whether the stringRestrictions field is set.
-
getStringRestrictions
public SupportedDatabaseFlag.StringRestrictions getStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
- Specified by:
getStringRestrictions
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The stringRestrictions.
-
getStringRestrictionsOrBuilder
public SupportedDatabaseFlag.StringRestrictionsOrBuilder getStringRestrictionsOrBuilder()
Restriction on STRING type value.
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
- Specified by:
getStringRestrictionsOrBuilder
in interfaceSupportedDatabaseFlagOrBuilder
-
hasIntegerRestrictions
public boolean hasIntegerRestrictions()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
- Specified by:
hasIntegerRestrictions
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- Whether the integerRestrictions field is set.
-
getIntegerRestrictions
public SupportedDatabaseFlag.IntegerRestrictions getIntegerRestrictions()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
- Specified by:
getIntegerRestrictions
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The integerRestrictions.
-
getIntegerRestrictionsOrBuilder
public SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
- Specified by:
getIntegerRestrictionsOrBuilder
in interfaceSupportedDatabaseFlagOrBuilder
-
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 interfaceSupportedDatabaseFlagOrBuilder
- 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 interfaceSupportedDatabaseFlagOrBuilder
- 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 interfaceSupportedDatabaseFlagOrBuilder
- 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 interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The bytes for flagName.
-
getValueTypeValue
public int getValueTypeValue()
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType value_type = 3;
- Specified by:
getValueTypeValue
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The enum numeric value on the wire for valueType.
-
getValueType
public SupportedDatabaseFlag.ValueType getValueType()
.google.cloud.alloydb.v1alpha.SupportedDatabaseFlag.ValueType value_type = 3;
- Specified by:
getValueType
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The 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 interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The acceptsMultipleValues.
-
getSupportedDbVersionsList
public List<DatabaseVersion> getSupportedDbVersionsList()
Major database engine versions for which this flag is supported.
repeated .google.cloud.alloydb.v1alpha.DatabaseVersion supported_db_versions = 5;
- Specified by:
getSupportedDbVersionsList
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- A list containing the supportedDbVersions.
-
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 interfaceSupportedDatabaseFlagOrBuilder
- 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 interfaceSupportedDatabaseFlagOrBuilder
- 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 interfaceSupportedDatabaseFlagOrBuilder
- 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 interfaceSupportedDatabaseFlagOrBuilder
- 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 interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The requiresDbRestart.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.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
-
parseFrom
public static SupportedDatabaseFlag parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SupportedDatabaseFlag parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SupportedDatabaseFlag parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SupportedDatabaseFlag.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SupportedDatabaseFlag.Builder newBuilder()
-
newBuilder
public static SupportedDatabaseFlag.Builder newBuilder(SupportedDatabaseFlag prototype)
-
toBuilder
public SupportedDatabaseFlag.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SupportedDatabaseFlag.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SupportedDatabaseFlag getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SupportedDatabaseFlag> parser()
-
getParserForType
public com.google.protobuf.Parser<SupportedDatabaseFlag> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SupportedDatabaseFlag getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-