Class SupportedDatabaseFlag.Builder (0.44.0)

public static final class SupportedDatabaseFlag.Builder extends GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder> 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSupportedDbVersions(Iterable<? extends DatabaseVersion> values)

public SupportedDatabaseFlag.Builder addAllSupportedDbVersions(Iterable<? extends DatabaseVersion> values)

Major database engine versions for which this flag is supported.

repeated .google.cloud.alloydb.v1alpha.DatabaseVersion supported_db_versions = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.alloydb.v1alpha.DatabaseVersion>

The supportedDbVersions to add.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

addAllSupportedDbVersionsValue(Iterable<Integer> values)

public SupportedDatabaseFlag.Builder addAllSupportedDbVersionsValue(Iterable<Integer> values)

Major database engine versions for which this flag is supported.

repeated .google.cloud.alloydb.v1alpha.DatabaseVersion supported_db_versions = 5;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for supportedDbVersions to add.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SupportedDatabaseFlag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

addSupportedDbVersions(DatabaseVersion value)

public SupportedDatabaseFlag.Builder addSupportedDbVersions(DatabaseVersion value)

Major database engine versions for which this flag is supported.

repeated .google.cloud.alloydb.v1alpha.DatabaseVersion supported_db_versions = 5;

Parameter
Name Description
value DatabaseVersion

The supportedDbVersions to add.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

addSupportedDbVersionsValue(int value)

public SupportedDatabaseFlag.Builder addSupportedDbVersionsValue(int value)

Major database engine versions for which this flag is supported.

repeated .google.cloud.alloydb.v1alpha.DatabaseVersion supported_db_versions = 5;

Parameter
Name Description
value int

The enum numeric value on the wire for supportedDbVersions to add.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

build()

public SupportedDatabaseFlag build()
Returns
Type Description
SupportedDatabaseFlag

buildPartial()

public SupportedDatabaseFlag buildPartial()
Returns
Type Description
SupportedDatabaseFlag

clear()

public SupportedDatabaseFlag.Builder clear()
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

clearAcceptsMultipleValues()

public SupportedDatabaseFlag.Builder clearAcceptsMultipleValues()

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
SupportedDatabaseFlag.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SupportedDatabaseFlag.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

clearFlagName()

public SupportedDatabaseFlag.Builder clearFlagName()

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
SupportedDatabaseFlag.Builder

This builder for chaining.

clearIntegerRestrictions()

public SupportedDatabaseFlag.Builder clearIntegerRestrictions()

Restriction on INTEGER type value.

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

Returns
Type Description
SupportedDatabaseFlag.Builder

clearName()

public SupportedDatabaseFlag.Builder clearName()

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
SupportedDatabaseFlag.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SupportedDatabaseFlag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

clearRequiresDbRestart()

public SupportedDatabaseFlag.Builder clearRequiresDbRestart()

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
SupportedDatabaseFlag.Builder

This builder for chaining.

clearRestrictions()

public SupportedDatabaseFlag.Builder clearRestrictions()
Returns
Type Description
SupportedDatabaseFlag.Builder

clearStringRestrictions()

public SupportedDatabaseFlag.Builder clearStringRestrictions()

Restriction on STRING type value.

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

Returns
Type Description
SupportedDatabaseFlag.Builder

clearSupportedDbVersions()

public SupportedDatabaseFlag.Builder clearSupportedDbVersions()

Major database engine versions for which this flag is supported.

repeated .google.cloud.alloydb.v1alpha.DatabaseVersion supported_db_versions = 5;

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

clearValueType()

public SupportedDatabaseFlag.Builder clearValueType()

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

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

clone()

public SupportedDatabaseFlag.Builder clone()
Returns
Type Description
SupportedDatabaseFlag.Builder
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
Type Description
SupportedDatabaseFlag

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.v1alpha.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;

Returns
Type Description
SupportedDatabaseFlag.IntegerRestrictions

The integerRestrictions.

getIntegerRestrictionsBuilder()

public SupportedDatabaseFlag.IntegerRestrictions.Builder getIntegerRestrictionsBuilder()

Restriction on INTEGER type value.

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

Returns
Type Description
SupportedDatabaseFlag.IntegerRestrictions.Builder

getIntegerRestrictionsOrBuilder()

public SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder()

Restriction on INTEGER type value.

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

Returns
Type Description
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
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.

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
Type Description
SupportedDatabaseFlag.RestrictionsCase

getStringRestrictions()

public SupportedDatabaseFlag.StringRestrictions getStringRestrictions()

Restriction on STRING type value.

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

Returns
Type Description
SupportedDatabaseFlag.StringRestrictions

The stringRestrictions.

getStringRestrictionsBuilder()

public SupportedDatabaseFlag.StringRestrictions.Builder getStringRestrictionsBuilder()

Restriction on STRING type value.

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

Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder

getStringRestrictionsOrBuilder()

public SupportedDatabaseFlag.StringRestrictionsOrBuilder getStringRestrictionsOrBuilder()

Restriction on STRING type value.

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

Returns
Type Description
SupportedDatabaseFlag.StringRestrictionsOrBuilder

getSupportedDbVersions(int index)

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;

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.v1alpha.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.v1alpha.DatabaseVersion supported_db_versions = 5;

Returns
Type Description
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.v1alpha.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.v1alpha.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.v1alpha.SupportedDatabaseFlag.ValueType value_type = 3;

Returns
Type Description
SupportedDatabaseFlag.ValueType

The valueType.

getValueTypeValue()

public int getValueTypeValue()

.google.cloud.alloydb.v1alpha.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.v1alpha.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.v1alpha.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;

Returns
Type Description
boolean

Whether the stringRestrictions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SupportedDatabaseFlag other)

public SupportedDatabaseFlag.Builder mergeFrom(SupportedDatabaseFlag other)
Parameter
Name Description
other SupportedDatabaseFlag
Returns
Type Description
SupportedDatabaseFlag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SupportedDatabaseFlag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SupportedDatabaseFlag.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

mergeIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)

public SupportedDatabaseFlag.Builder mergeIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)

Restriction on INTEGER type value.

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

Parameter
Name Description
value SupportedDatabaseFlag.IntegerRestrictions
Returns
Type Description
SupportedDatabaseFlag.Builder

mergeStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)

public SupportedDatabaseFlag.Builder mergeStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)

Restriction on STRING type value.

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

Parameter
Name Description
value SupportedDatabaseFlag.StringRestrictions
Returns
Type Description
SupportedDatabaseFlag.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SupportedDatabaseFlag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

setAcceptsMultipleValues(boolean value)

public SupportedDatabaseFlag.Builder setAcceptsMultipleValues(boolean value)

Whether the database flag accepts multiple values. If true, a comma-separated list of stringified values may be specified.

bool accepts_multiple_values = 4;

Parameter
Name Description
value boolean

The acceptsMultipleValues to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SupportedDatabaseFlag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

setFlagName(String value)

public SupportedDatabaseFlag.Builder setFlagName(String value)

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;

Parameter
Name Description
value String

The flagName to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setFlagNameBytes(ByteString value)

public SupportedDatabaseFlag.Builder setFlagNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for flagName to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)

public SupportedDatabaseFlag.Builder setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)

Restriction on INTEGER type value.

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

Parameter
Name Description
value SupportedDatabaseFlag.IntegerRestrictions
Returns
Type Description
SupportedDatabaseFlag.Builder

setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions.Builder builderForValue)

public SupportedDatabaseFlag.Builder setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions.Builder builderForValue)

Restriction on INTEGER type value.

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

Parameter
Name Description
builderForValue SupportedDatabaseFlag.IntegerRestrictions.Builder
Returns
Type Description
SupportedDatabaseFlag.Builder

setName(String value)

public SupportedDatabaseFlag.Builder setName(String value)

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;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SupportedDatabaseFlag.Builder setNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SupportedDatabaseFlag.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

setRequiresDbRestart(boolean value)

public SupportedDatabaseFlag.Builder setRequiresDbRestart(boolean value)

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;

Parameter
Name Description
value boolean

The requiresDbRestart to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)

public SupportedDatabaseFlag.Builder setStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)

Restriction on STRING type value.

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

Parameter
Name Description
value SupportedDatabaseFlag.StringRestrictions
Returns
Type Description
SupportedDatabaseFlag.Builder

setStringRestrictions(SupportedDatabaseFlag.StringRestrictions.Builder builderForValue)

public SupportedDatabaseFlag.Builder setStringRestrictions(SupportedDatabaseFlag.StringRestrictions.Builder builderForValue)

Restriction on STRING type value.

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

Parameter
Name Description
builderForValue SupportedDatabaseFlag.StringRestrictions.Builder
Returns
Type Description
SupportedDatabaseFlag.Builder

setSupportedDbVersions(int index, DatabaseVersion value)

public SupportedDatabaseFlag.Builder setSupportedDbVersions(int index, DatabaseVersion value)

Major database engine versions for which this flag is supported.

repeated .google.cloud.alloydb.v1alpha.DatabaseVersion supported_db_versions = 5;

Parameters
Name Description
index int

The index to set the value at.

value DatabaseVersion

The supportedDbVersions to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setSupportedDbVersionsValue(int index, int value)

public SupportedDatabaseFlag.Builder setSupportedDbVersionsValue(int index, int value)

Major database engine versions for which this flag is supported.

repeated .google.cloud.alloydb.v1alpha.DatabaseVersion supported_db_versions = 5;

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for supportedDbVersions to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SupportedDatabaseFlag.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SupportedDatabaseFlag.Builder
Overrides

setValueType(SupportedDatabaseFlag.ValueType value)

public SupportedDatabaseFlag.Builder setValueType(SupportedDatabaseFlag.ValueType value)

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

Parameter
Name Description
value SupportedDatabaseFlag.ValueType

The valueType to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.

setValueTypeValue(int value)

public SupportedDatabaseFlag.Builder setValueTypeValue(int value)

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

Parameter
Name Description
value int

The enum numeric value on the wire for valueType to set.

Returns
Type Description
SupportedDatabaseFlag.Builder

This builder for chaining.