Class SupportedDatabaseFlag.Builder (0.30.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.v1.SupportedDatabaseFlag

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1.DatabaseVersion supported_db_versions = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.alloydb.v1.DatabaseVersion>

The supportedDbVersions to add.

Returns
TypeDescription
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.v1.DatabaseVersion supported_db_versions = 5;

Parameter
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SupportedDatabaseFlag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1.DatabaseVersion supported_db_versions = 5;

Parameter
NameDescription
valueDatabaseVersion

The supportedDbVersions to add.

Returns
TypeDescription
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.v1.DatabaseVersion supported_db_versions = 5;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

build()

public SupportedDatabaseFlag build()
Returns
TypeDescription
SupportedDatabaseFlag

buildPartial()

public SupportedDatabaseFlag buildPartial()
Returns
TypeDescription
SupportedDatabaseFlag

clear()

public SupportedDatabaseFlag.Builder clear()
Returns
TypeDescription
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
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SupportedDatabaseFlag.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

clearIntegerRestrictions()

public SupportedDatabaseFlag.Builder clearIntegerRestrictions()

Restriction on INTEGER type value.

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

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SupportedDatabaseFlag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

clearRestrictions()

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

clearStringRestrictions()

public SupportedDatabaseFlag.Builder clearStringRestrictions()

Restriction on STRING type value.

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

Returns
TypeDescription
SupportedDatabaseFlag.Builder

clearSupportedDbVersions()

public SupportedDatabaseFlag.Builder clearSupportedDbVersions()

Major database engine versions for which this flag is supported.

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

Returns
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

clearValueType()

public SupportedDatabaseFlag.Builder clearValueType()

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

Returns
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

clone()

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

The acceptsMultipleValues.

getDefaultInstanceForType()

public SupportedDatabaseFlag getDefaultInstanceForType()
Returns
TypeDescription
SupportedDatabaseFlag

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

getIntegerRestrictionsBuilder()

public SupportedDatabaseFlag.IntegerRestrictions.Builder getIntegerRestrictionsBuilder()

Restriction on INTEGER type value.

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

Returns
TypeDescription
SupportedDatabaseFlag.IntegerRestrictions.Builder

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.

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

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.

getStringRestrictionsBuilder()

public SupportedDatabaseFlag.StringRestrictions.Builder getStringRestrictionsBuilder()

Restriction on STRING type value.

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

Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SupportedDatabaseFlag other)

public SupportedDatabaseFlag.Builder mergeFrom(SupportedDatabaseFlag other)
Parameter
NameDescription
otherSupportedDatabaseFlag
Returns
TypeDescription
SupportedDatabaseFlag.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SupportedDatabaseFlag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SupportedDatabaseFlag.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SupportedDatabaseFlag.Builder
Overrides

mergeIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)

public SupportedDatabaseFlag.Builder mergeIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)

Restriction on INTEGER type value.

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

Parameter
NameDescription
valueSupportedDatabaseFlag.IntegerRestrictions
Returns
TypeDescription
SupportedDatabaseFlag.Builder

mergeStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)

public SupportedDatabaseFlag.Builder mergeStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)

Restriction on STRING type value.

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

Parameter
NameDescription
valueSupportedDatabaseFlag.StringRestrictions
Returns
TypeDescription
SupportedDatabaseFlag.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SupportedDatabaseFlag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The acceptsMultipleValues to set.

Returns
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SupportedDatabaseFlag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The flagName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for flagName to set.

Returns
TypeDescription
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.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;

Parameter
NameDescription
valueSupportedDatabaseFlag.IntegerRestrictions
Returns
TypeDescription
SupportedDatabaseFlag.Builder

setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions.Builder builderForValue)

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

Restriction on INTEGER type value.

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

Parameter
NameDescription
builderForValueSupportedDatabaseFlag.IntegerRestrictions.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The requiresDbRestart to set.

Returns
TypeDescription
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.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;

Parameter
NameDescription
valueSupportedDatabaseFlag.StringRestrictions
Returns
TypeDescription
SupportedDatabaseFlag.Builder

setStringRestrictions(SupportedDatabaseFlag.StringRestrictions.Builder builderForValue)

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

Restriction on STRING type value.

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

Parameter
NameDescription
builderForValueSupportedDatabaseFlag.StringRestrictions.Builder
Returns
TypeDescription
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.v1.DatabaseVersion supported_db_versions = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueDatabaseVersion

The supportedDbVersions to set.

Returns
TypeDescription
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.v1.DatabaseVersion supported_db_versions = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SupportedDatabaseFlag.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SupportedDatabaseFlag.Builder
Overrides

setValueType(SupportedDatabaseFlag.ValueType value)

public SupportedDatabaseFlag.Builder setValueType(SupportedDatabaseFlag.ValueType value)

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

Parameter
NameDescription
valueSupportedDatabaseFlag.ValueType

The valueType to set.

Returns
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.

setValueTypeValue(int value)

public SupportedDatabaseFlag.Builder setValueTypeValue(int value)

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
SupportedDatabaseFlag.Builder

This builder for chaining.