Send feedback
Class SupportedDatabaseFlag (0.34.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.34.0 keyboard_arrow_down
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.v1.SupportedDatabaseFlag
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER
public static final int ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER
Field Value
Type
Description
int
FLAG_NAME_FIELD_NUMBER
public static final int FLAG_NAME_FIELD_NUMBER
Field Value
Type
Description
int
INTEGER_RESTRICTIONS_FIELD_NUMBER
public static final int INTEGER_RESTRICTIONS_FIELD_NUMBER
Field Value
Type
Description
int
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Type
Description
int
REQUIRES_DB_RESTART_FIELD_NUMBER
public static final int REQUIRES_DB_RESTART_FIELD_NUMBER
Field Value
Type
Description
int
STRING_RESTRICTIONS_FIELD_NUMBER
public static final int STRING_RESTRICTIONS_FIELD_NUMBER
Field Value
Type
Description
int
SUPPORTED_DB_VERSIONS_FIELD_NUMBER
public static final int SUPPORTED_DB_VERSIONS_FIELD_NUMBER
Field Value
Type
Description
int
VALUE_TYPE_FIELD_NUMBER
public static final int VALUE_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static SupportedDatabaseFlag getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static SupportedDatabaseFlag . Builder newBuilder ()
newBuilder(SupportedDatabaseFlag prototype)
public static SupportedDatabaseFlag . Builder newBuilder ( SupportedDatabaseFlag prototype )
public static SupportedDatabaseFlag parseDelimitedFrom ( InputStream input )
public static SupportedDatabaseFlag parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static SupportedDatabaseFlag parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SupportedDatabaseFlag parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static SupportedDatabaseFlag parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SupportedDatabaseFlag parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static SupportedDatabaseFlag parseFrom ( CodedInputStream input )
public static SupportedDatabaseFlag parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static SupportedDatabaseFlag parseFrom ( InputStream input )
public static SupportedDatabaseFlag parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static SupportedDatabaseFlag parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SupportedDatabaseFlag parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<SupportedDatabaseFlag> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
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 ()
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.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
getIntegerRestrictionsOrBuilder()
public SupportedDatabaseFlag . IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder ()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
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
Type
Description
ByteString
The bytes for name.
getParserForType()
public Parser<SupportedDatabaseFlag> getParserForType ()
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 ()
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getStringRestrictions()
public SupportedDatabaseFlag . StringRestrictions getStringRestrictions ()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
getStringRestrictionsOrBuilder()
public SupportedDatabaseFlag . StringRestrictionsOrBuilder getStringRestrictionsOrBuilder ()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
getSupportedDbVersions(int index)
public DatabaseVersion getSupportedDbVersions ( int index )
Major database engine versions for which this flag is supported.
repeated .google.cloud.alloydb.v1.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.v1.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.v1.DatabaseVersion supported_db_versions = 5;
getSupportedDbVersionsValue(int index)
public int getSupportedDbVersionsValue ( int index )
Major database engine versions for which this flag is supported.
repeated .google.cloud.alloydb.v1.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.v1.DatabaseVersion supported_db_versions = 5;
Returns
Type
Description
List <Integer >
A list containing the enum numeric values on the wire for supportedDbVersions.
getValueType()
public SupportedDatabaseFlag . ValueType getValueType ()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
getValueTypeValue()
public int getValueTypeValue ()
.google.cloud.alloydb.v1.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.v1.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.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Returns
Type
Description
boolean
Whether the stringRestrictions field is set.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public SupportedDatabaseFlag . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SupportedDatabaseFlag . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public SupportedDatabaseFlag . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]