public final class SupportedDatabaseFlag extends 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.v1beta.SupportedDatabaseFlag
Static Fields
ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER
public static final int ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER
Field Value
FLAG_NAME_FIELD_NUMBER
public static final int FLAG_NAME_FIELD_NUMBER
Field Value
INTEGER_RESTRICTIONS_FIELD_NUMBER
public static final int INTEGER_RESTRICTIONS_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
REQUIRES_DB_RESTART_FIELD_NUMBER
public static final int REQUIRES_DB_RESTART_FIELD_NUMBER
Field Value
STRING_RESTRICTIONS_FIELD_NUMBER
public static final int STRING_RESTRICTIONS_FIELD_NUMBER
Field Value
SUPPORTED_DB_VERSIONS_FIELD_NUMBER
public static final int SUPPORTED_DB_VERSIONS_FIELD_NUMBER
Field Value
VALUE_TYPE_FIELD_NUMBER
public static final int VALUE_TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SupportedDatabaseFlag getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SupportedDatabaseFlag.Builder newBuilder()
Returns
newBuilder(SupportedDatabaseFlag prototype)
public static SupportedDatabaseFlag.Builder newBuilder(SupportedDatabaseFlag prototype)
Parameter
Returns
public static SupportedDatabaseFlag parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SupportedDatabaseFlag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SupportedDatabaseFlag parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SupportedDatabaseFlag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SupportedDatabaseFlag parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SupportedDatabaseFlag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SupportedDatabaseFlag parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SupportedDatabaseFlag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SupportedDatabaseFlag parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SupportedDatabaseFlag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SupportedDatabaseFlag parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SupportedDatabaseFlag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SupportedDatabaseFlag> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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;
Returns
Type |
Description |
boolean |
The acceptsMultipleValues.
|
getDefaultInstanceForType()
public SupportedDatabaseFlag getDefaultInstanceForType()
Returns
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;
Returns
Type |
Description |
String |
The flagName.
|
getFlagNameBytes()
public 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;
Returns
Type |
Description |
ByteString |
The bytes for flagName.
|
getIntegerRestrictions()
public SupportedDatabaseFlag.IntegerRestrictions getIntegerRestrictions()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
Returns
getIntegerRestrictionsOrBuilder()
public SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
Returns
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;
Returns
Type |
Description |
String |
The name.
|
getNameBytes()
public 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;
Returns
getParserForType()
public Parser<SupportedDatabaseFlag> getParserForType()
Returns
Overrides
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;
Returns
Type |
Description |
boolean |
The requiresDbRestart.
|
getRestrictionsCase()
public SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getStringRestrictions()
public SupportedDatabaseFlag.StringRestrictions getStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Returns
getStringRestrictionsOrBuilder()
public SupportedDatabaseFlag.StringRestrictionsOrBuilder getStringRestrictionsOrBuilder()
Restriction on STRING type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Returns
getSupportedDbVersions(int index)
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;
Parameter
Name |
Description |
index |
int
The index of the element to return.
|
Returns
Type |
Description |
DatabaseVersion |
The supportedDbVersions at the given index.
|
getSupportedDbVersionsCount()
public int getSupportedDbVersionsCount()
Major database engine versions for which this flag is supported.
repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;
Returns
Type |
Description |
int |
The count of supportedDbVersions.
|
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;
Returns
getSupportedDbVersionsValue(int index)
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;
Parameter
Name |
Description |
index |
int
The index of the value to return.
|
Returns
Type |
Description |
int |
The enum numeric value on the wire of supportedDbVersions at the given index.
|
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;
Returns
Type |
Description |
List<Integer> |
A list containing the enum numeric values on the wire for supportedDbVersions.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getValueType()
public SupportedDatabaseFlag.ValueType getValueType()
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;
Returns
getValueTypeValue()
public int getValueTypeValue()
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;
Returns
Type |
Description |
int |
The enum numeric value on the wire for valueType.
|
hasIntegerRestrictions()
public boolean hasIntegerRestrictions()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
Returns
Type |
Description |
boolean |
Whether the integerRestrictions field is set.
|
hasStringRestrictions()
public boolean hasStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Returns
Type |
Description |
boolean |
Whether the stringRestrictions field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SupportedDatabaseFlag.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SupportedDatabaseFlag.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SupportedDatabaseFlag.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions