Class SupportedDatabaseFlag (0.30.0)

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

Static Fields

ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER

public static final int ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

FLAG_NAME_FIELD_NUMBER

public static final int FLAG_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

INTEGER_RESTRICTIONS_FIELD_NUMBER

public static final int INTEGER_RESTRICTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

REQUIRES_DB_RESTART_FIELD_NUMBER

public static final int REQUIRES_DB_RESTART_FIELD_NUMBER
Field Value
TypeDescription
int

STRING_RESTRICTIONS_FIELD_NUMBER

public static final int STRING_RESTRICTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

SUPPORTED_DB_VERSIONS_FIELD_NUMBER

public static final int SUPPORTED_DB_VERSIONS_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_TYPE_FIELD_NUMBER

public static final int VALUE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SupportedDatabaseFlag getDefaultInstance()
Returns
TypeDescription
SupportedDatabaseFlag

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SupportedDatabaseFlag.Builder newBuilder()
Returns
TypeDescription
SupportedDatabaseFlag.Builder

newBuilder(SupportedDatabaseFlag prototype)

public static SupportedDatabaseFlag.Builder newBuilder(SupportedDatabaseFlag prototype)
Parameter
NameDescription
prototypeSupportedDatabaseFlag
Returns
TypeDescription
SupportedDatabaseFlag.Builder

parseDelimitedFrom(InputStream input)

public static SupportedDatabaseFlag parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SupportedDatabaseFlag parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SupportedDatabaseFlag parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SupportedDatabaseFlag parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SupportedDatabaseFlag parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SupportedDatabaseFlag parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SupportedDatabaseFlag> parser()
Returns
TypeDescription
Parser<SupportedDatabaseFlag>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
boolean

The acceptsMultipleValues.

getDefaultInstanceForType()

public SupportedDatabaseFlag getDefaultInstanceForType()
Returns
TypeDescription
SupportedDatabaseFlag

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
TypeDescription
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
TypeDescription
ByteString

The bytes for flagName.

getIntegerRestrictions()

public SupportedDatabaseFlag.IntegerRestrictions getIntegerRestrictions()

Restriction on INTEGER type value.

.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;

Returns
TypeDescription
SupportedDatabaseFlag.IntegerRestrictions

The integerRestrictions.

getIntegerRestrictionsOrBuilder()

public SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder()

Restriction on INTEGER type value.

.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;

Returns
TypeDescription
SupportedDatabaseFlag.IntegerRestrictionsOrBuilder

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;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<SupportedDatabaseFlag> getParserForType()
Returns
TypeDescription
Parser<SupportedDatabaseFlag>
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
TypeDescription
boolean

The requiresDbRestart.

getRestrictionsCase()

public SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase()
Returns
TypeDescription
SupportedDatabaseFlag.RestrictionsCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStringRestrictions()

public SupportedDatabaseFlag.StringRestrictions getStringRestrictions()

Restriction on STRING type value.

.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;

Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions

The stringRestrictions.

getStringRestrictionsOrBuilder()

public SupportedDatabaseFlag.StringRestrictionsOrBuilder getStringRestrictionsOrBuilder()

Restriction on STRING type value.

.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;

Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictionsOrBuilder

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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;

Returns
TypeDescription
List<DatabaseVersion>

A list containing the supportedDbVersions.

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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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;

Returns
TypeDescription
SupportedDatabaseFlag.ValueType

The valueType.

getValueTypeValue()

public int getValueTypeValue()

.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the stringRestrictions field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SupportedDatabaseFlag.Builder newBuilderForType()
Returns
TypeDescription
SupportedDatabaseFlag.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SupportedDatabaseFlag.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SupportedDatabaseFlag.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SupportedDatabaseFlag.Builder toBuilder()
Returns
TypeDescription
SupportedDatabaseFlag.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException