Class Flag.Builder (0.1.0)

public static final class Flag.Builder extends GeneratedMessage.Builder<Flag.Builder> implements FlagOrBuilder

A flag resource.

Protobuf type google.cloud.sql.v1.Flag

Implements

FlagOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllAllowedIntValues(Iterable<? extends Long> values)

public Flag.Builder addAllAllowedIntValues(Iterable<? extends Long> values)

Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.

repeated int64 allowed_int_values = 10;

Parameter
Name Description
values Iterable<? extends java.lang.Long>

The allowedIntValues to add.

Returns
Type Description
Flag.Builder

This builder for chaining.

addAllAllowedStringValues(Iterable<String> values)

public Flag.Builder addAllAllowedStringValues(Iterable<String> values)

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Parameter
Name Description
values Iterable<String>

The allowedStringValues to add.

Returns
Type Description
Flag.Builder

This builder for chaining.

addAllAppliesTo(Iterable<? extends SqlDatabaseVersion> values)

public Flag.Builder addAllAppliesTo(Iterable<? extends SqlDatabaseVersion> values)

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.sql.v1.SqlDatabaseVersion>

The appliesTo to add.

Returns
Type Description
Flag.Builder

This builder for chaining.

addAllAppliesToValue(Iterable<Integer> values)

public Flag.Builder addAllAppliesToValue(Iterable<Integer> values)

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Parameter
Name Description
values Iterable<Integer>

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

Returns
Type Description
Flag.Builder

This builder for chaining.

addAllowedIntValues(long value)

public Flag.Builder addAllowedIntValues(long value)

Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.

repeated int64 allowed_int_values = 10;

Parameter
Name Description
value long

The allowedIntValues to add.

Returns
Type Description
Flag.Builder

This builder for chaining.

addAllowedStringValues(String value)

public Flag.Builder addAllowedStringValues(String value)

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Parameter
Name Description
value String

The allowedStringValues to add.

Returns
Type Description
Flag.Builder

This builder for chaining.

addAllowedStringValuesBytes(ByteString value)

public Flag.Builder addAllowedStringValuesBytes(ByteString value)

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Parameter
Name Description
value ByteString

The bytes of the allowedStringValues to add.

Returns
Type Description
Flag.Builder

This builder for chaining.

addAppliesTo(SqlDatabaseVersion value)

public Flag.Builder addAppliesTo(SqlDatabaseVersion value)

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Parameter
Name Description
value SqlDatabaseVersion

The appliesTo to add.

Returns
Type Description
Flag.Builder

This builder for chaining.

addAppliesToValue(int value)

public Flag.Builder addAppliesToValue(int value)

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Parameter
Name Description
value int

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

Returns
Type Description
Flag.Builder

This builder for chaining.

build()

public Flag build()
Returns
Type Description
Flag

buildPartial()

public Flag buildPartial()
Returns
Type Description
Flag

clear()

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

clearAllowedIntValues()

public Flag.Builder clearAllowedIntValues()

Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.

repeated int64 allowed_int_values = 10;

Returns
Type Description
Flag.Builder

This builder for chaining.

clearAllowedStringValues()

public Flag.Builder clearAllowedStringValues()

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Returns
Type Description
Flag.Builder

This builder for chaining.

clearAppliesTo()

public Flag.Builder clearAppliesTo()

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Returns
Type Description
Flag.Builder

This builder for chaining.

clearFlagScope()

public Flag.Builder clearFlagScope()

Scope of flag.

.google.cloud.sql.v1.SqlFlagScope flag_scope = 15;

Returns
Type Description
Flag.Builder

This builder for chaining.

clearInBeta()

public Flag.Builder clearInBeta()

Whether or not the flag is considered in beta.

.google.protobuf.BoolValue in_beta = 9;

Returns
Type Description
Flag.Builder

clearKind()

public Flag.Builder clearKind()

This is always sql#flag.

string kind = 8;

Returns
Type Description
Flag.Builder

This builder for chaining.

clearMaxValue()

public Flag.Builder clearMaxValue()

For INTEGER flags, the maximum allowed value.

.google.protobuf.Int64Value max_value = 6;

Returns
Type Description
Flag.Builder

clearMinValue()

public Flag.Builder clearMinValue()

For INTEGER flags, the minimum allowed value.

.google.protobuf.Int64Value min_value = 5;

Returns
Type Description
Flag.Builder

clearName()

public Flag.Builder clearName()

This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet

string name = 1;

Returns
Type Description
Flag.Builder

This builder for chaining.

clearRecommendedIntValue()

public Flag.Builder clearRecommendedIntValue()

Recommended int value in integer format for UI display.

.google.protobuf.Int64Value recommended_int_value = 17;

Returns
Type Description
Flag.Builder

clearRecommendedStringValue()

public Flag.Builder clearRecommendedStringValue()

Recommended string value in string format for UI display.

string recommended_string_value = 16;

Returns
Type Description
Flag.Builder

This builder for chaining.

clearRecommendedValue()

public Flag.Builder clearRecommendedValue()
Returns
Type Description
Flag.Builder

clearRequiresRestart()

public Flag.Builder clearRequiresRestart()

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

.google.protobuf.BoolValue requires_restart = 7;

Returns
Type Description
Flag.Builder

clearType()

public Flag.Builder clearType()

The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags that do not take a value, such as skip_grant_tables.

.google.cloud.sql.v1.SqlFlagType type = 2;

Returns
Type Description
Flag.Builder

This builder for chaining.

getAllowedIntValues(int index)

public long getAllowedIntValues(int index)

Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.

repeated int64 allowed_int_values = 10;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
long

The allowedIntValues at the given index.

getAllowedIntValuesCount()

public int getAllowedIntValuesCount()

Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.

repeated int64 allowed_int_values = 10;

Returns
Type Description
int

The count of allowedIntValues.

getAllowedIntValuesList()

public List<Long> getAllowedIntValuesList()

Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.

repeated int64 allowed_int_values = 10;

Returns
Type Description
List<Long>

A list containing the allowedIntValues.

getAllowedStringValues(int index)

public String getAllowedStringValues(int index)

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allowedStringValues at the given index.

getAllowedStringValuesBytes(int index)

public ByteString getAllowedStringValuesBytes(int index)

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allowedStringValues at the given index.

getAllowedStringValuesCount()

public int getAllowedStringValuesCount()

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Returns
Type Description
int

The count of allowedStringValues.

getAllowedStringValuesList()

public ProtocolStringList getAllowedStringValuesList()

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Returns
Type Description
ProtocolStringList

A list containing the allowedStringValues.

getAppliesTo(int index)

public SqlDatabaseVersion getAppliesTo(int index)

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
SqlDatabaseVersion

The appliesTo at the given index.

getAppliesToCount()

public int getAppliesToCount()

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Returns
Type Description
int

The count of appliesTo.

getAppliesToList()

public List<SqlDatabaseVersion> getAppliesToList()

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Returns
Type Description
List<SqlDatabaseVersion>

A list containing the appliesTo.

getAppliesToValue(int index)

public int getAppliesToValue(int index)

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of appliesTo at the given index.

getAppliesToValueList()

public List<Integer> getAppliesToValueList()

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for appliesTo.

getDefaultInstanceForType()

public Flag getDefaultInstanceForType()
Returns
Type Description
Flag

getDescriptorForType()

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

getFlagScope()

public SqlFlagScope getFlagScope()

Scope of flag.

.google.cloud.sql.v1.SqlFlagScope flag_scope = 15;

Returns
Type Description
SqlFlagScope

The flagScope.

getFlagScopeValue()

public int getFlagScopeValue()

Scope of flag.

.google.cloud.sql.v1.SqlFlagScope flag_scope = 15;

Returns
Type Description
int

The enum numeric value on the wire for flagScope.

getInBeta()

public BoolValue getInBeta()

Whether or not the flag is considered in beta.

.google.protobuf.BoolValue in_beta = 9;

Returns
Type Description
BoolValue

The inBeta.

getInBetaBuilder()

public BoolValue.Builder getInBetaBuilder()

Whether or not the flag is considered in beta.

.google.protobuf.BoolValue in_beta = 9;

Returns
Type Description
Builder

getInBetaOrBuilder()

public BoolValueOrBuilder getInBetaOrBuilder()

Whether or not the flag is considered in beta.

.google.protobuf.BoolValue in_beta = 9;

Returns
Type Description
BoolValueOrBuilder

getKind()

public String getKind()

This is always sql#flag.

string kind = 8;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

This is always sql#flag.

string kind = 8;

Returns
Type Description
ByteString

The bytes for kind.

getMaxValue()

public Int64Value getMaxValue()

For INTEGER flags, the maximum allowed value.

.google.protobuf.Int64Value max_value = 6;

Returns
Type Description
Int64Value

The maxValue.

getMaxValueBuilder()

public Int64Value.Builder getMaxValueBuilder()

For INTEGER flags, the maximum allowed value.

.google.protobuf.Int64Value max_value = 6;

Returns
Type Description
Builder

getMaxValueOrBuilder()

public Int64ValueOrBuilder getMaxValueOrBuilder()

For INTEGER flags, the maximum allowed value.

.google.protobuf.Int64Value max_value = 6;

Returns
Type Description
Int64ValueOrBuilder

getMinValue()

public Int64Value getMinValue()

For INTEGER flags, the minimum allowed value.

.google.protobuf.Int64Value min_value = 5;

Returns
Type Description
Int64Value

The minValue.

getMinValueBuilder()

public Int64Value.Builder getMinValueBuilder()

For INTEGER flags, the minimum allowed value.

.google.protobuf.Int64Value min_value = 5;

Returns
Type Description
Builder

getMinValueOrBuilder()

public Int64ValueOrBuilder getMinValueOrBuilder()

For INTEGER flags, the minimum allowed value.

.google.protobuf.Int64Value min_value = 5;

Returns
Type Description
Int64ValueOrBuilder

getName()

public String getName()

This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getRecommendedIntValue()

public Int64Value getRecommendedIntValue()

Recommended int value in integer format for UI display.

.google.protobuf.Int64Value recommended_int_value = 17;

Returns
Type Description
Int64Value

The recommendedIntValue.

getRecommendedIntValueBuilder()

public Int64Value.Builder getRecommendedIntValueBuilder()

Recommended int value in integer format for UI display.

.google.protobuf.Int64Value recommended_int_value = 17;

Returns
Type Description
Builder

getRecommendedIntValueOrBuilder()

public Int64ValueOrBuilder getRecommendedIntValueOrBuilder()

Recommended int value in integer format for UI display.

.google.protobuf.Int64Value recommended_int_value = 17;

Returns
Type Description
Int64ValueOrBuilder

getRecommendedStringValue()

public String getRecommendedStringValue()

Recommended string value in string format for UI display.

string recommended_string_value = 16;

Returns
Type Description
String

The recommendedStringValue.

getRecommendedStringValueBytes()

public ByteString getRecommendedStringValueBytes()

Recommended string value in string format for UI display.

string recommended_string_value = 16;

Returns
Type Description
ByteString

The bytes for recommendedStringValue.

getRecommendedValueCase()

public Flag.RecommendedValueCase getRecommendedValueCase()
Returns
Type Description
Flag.RecommendedValueCase

getRequiresRestart()

public BoolValue getRequiresRestart()

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

.google.protobuf.BoolValue requires_restart = 7;

Returns
Type Description
BoolValue

The requiresRestart.

getRequiresRestartBuilder()

public BoolValue.Builder getRequiresRestartBuilder()

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

.google.protobuf.BoolValue requires_restart = 7;

Returns
Type Description
Builder

getRequiresRestartOrBuilder()

public BoolValueOrBuilder getRequiresRestartOrBuilder()

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

.google.protobuf.BoolValue requires_restart = 7;

Returns
Type Description
BoolValueOrBuilder

getType()

public SqlFlagType getType()

The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags that do not take a value, such as skip_grant_tables.

.google.cloud.sql.v1.SqlFlagType type = 2;

Returns
Type Description
SqlFlagType

The type.

getTypeValue()

public int getTypeValue()

The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags that do not take a value, such as skip_grant_tables.

.google.cloud.sql.v1.SqlFlagType type = 2;

Returns
Type Description
int

The enum numeric value on the wire for type.

hasInBeta()

public boolean hasInBeta()

Whether or not the flag is considered in beta.

.google.protobuf.BoolValue in_beta = 9;

Returns
Type Description
boolean

Whether the inBeta field is set.

hasMaxValue()

public boolean hasMaxValue()

For INTEGER flags, the maximum allowed value.

.google.protobuf.Int64Value max_value = 6;

Returns
Type Description
boolean

Whether the maxValue field is set.

hasMinValue()

public boolean hasMinValue()

For INTEGER flags, the minimum allowed value.

.google.protobuf.Int64Value min_value = 5;

Returns
Type Description
boolean

Whether the minValue field is set.

hasRecommendedIntValue()

public boolean hasRecommendedIntValue()

Recommended int value in integer format for UI display.

.google.protobuf.Int64Value recommended_int_value = 17;

Returns
Type Description
boolean

Whether the recommendedIntValue field is set.

hasRecommendedStringValue()

public boolean hasRecommendedStringValue()

Recommended string value in string format for UI display.

string recommended_string_value = 16;

Returns
Type Description
boolean

Whether the recommendedStringValue field is set.

hasRequiresRestart()

public boolean hasRequiresRestart()

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

.google.protobuf.BoolValue requires_restart = 7;

Returns
Type Description
boolean

Whether the requiresRestart field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Flag other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInBeta(BoolValue value)

public Flag.Builder mergeInBeta(BoolValue value)

Whether or not the flag is considered in beta.

.google.protobuf.BoolValue in_beta = 9;

Parameter
Name Description
value BoolValue
Returns
Type Description
Flag.Builder

mergeMaxValue(Int64Value value)

public Flag.Builder mergeMaxValue(Int64Value value)

For INTEGER flags, the maximum allowed value.

.google.protobuf.Int64Value max_value = 6;

Parameter
Name Description
value Int64Value
Returns
Type Description
Flag.Builder

mergeMinValue(Int64Value value)

public Flag.Builder mergeMinValue(Int64Value value)

For INTEGER flags, the minimum allowed value.

.google.protobuf.Int64Value min_value = 5;

Parameter
Name Description
value Int64Value
Returns
Type Description
Flag.Builder

mergeRecommendedIntValue(Int64Value value)

public Flag.Builder mergeRecommendedIntValue(Int64Value value)

Recommended int value in integer format for UI display.

.google.protobuf.Int64Value recommended_int_value = 17;

Parameter
Name Description
value Int64Value
Returns
Type Description
Flag.Builder

mergeRequiresRestart(BoolValue value)

public Flag.Builder mergeRequiresRestart(BoolValue value)

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

.google.protobuf.BoolValue requires_restart = 7;

Parameter
Name Description
value BoolValue
Returns
Type Description
Flag.Builder

setAllowedIntValues(int index, long value)

public Flag.Builder setAllowedIntValues(int index, long value)

Use this field if only certain integers are accepted. Can be combined with min_value and max_value to add additional values.

repeated int64 allowed_int_values = 10;

Parameters
Name Description
index int

The index to set the value at.

value long

The allowedIntValues to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setAllowedStringValues(int index, String value)

public Flag.Builder setAllowedStringValues(int index, String value)

For STRING flags, a list of strings that the value can be set to.

repeated string allowed_string_values = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedStringValues to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setAppliesTo(int index, SqlDatabaseVersion value)

public Flag.Builder setAppliesTo(int index, SqlDatabaseVersion value)

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Parameters
Name Description
index int

The index to set the value at.

value SqlDatabaseVersion

The appliesTo to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setAppliesToValue(int index, int value)

public Flag.Builder setAppliesToValue(int index, int value)

The database version this flag applies to. Can be MySQL instances: MYSQL_8_0, MYSQL_8_0_18, MYSQL_8_0_26, MYSQL_5_7, or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6, POSTGRES_10, POSTGRES_11 or POSTGRES_12. SQL Server instances: SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB, SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB. See the complete list.

repeated .google.cloud.sql.v1.SqlDatabaseVersion applies_to = 3;

Parameters
Name Description
index int

The index to set the value at.

value int

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

Returns
Type Description
Flag.Builder

This builder for chaining.

setFlagScope(SqlFlagScope value)

public Flag.Builder setFlagScope(SqlFlagScope value)

Scope of flag.

.google.cloud.sql.v1.SqlFlagScope flag_scope = 15;

Parameter
Name Description
value SqlFlagScope

The flagScope to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setFlagScopeValue(int value)

public Flag.Builder setFlagScopeValue(int value)

Scope of flag.

.google.cloud.sql.v1.SqlFlagScope flag_scope = 15;

Parameter
Name Description
value int

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

Returns
Type Description
Flag.Builder

This builder for chaining.

setInBeta(BoolValue value)

public Flag.Builder setInBeta(BoolValue value)

Whether or not the flag is considered in beta.

.google.protobuf.BoolValue in_beta = 9;

Parameter
Name Description
value BoolValue
Returns
Type Description
Flag.Builder

setInBeta(BoolValue.Builder builderForValue)

public Flag.Builder setInBeta(BoolValue.Builder builderForValue)

Whether or not the flag is considered in beta.

.google.protobuf.BoolValue in_beta = 9;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Flag.Builder

setKind(String value)

public Flag.Builder setKind(String value)

This is always sql#flag.

string kind = 8;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setKindBytes(ByteString value)

public Flag.Builder setKindBytes(ByteString value)

This is always sql#flag.

string kind = 8;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setMaxValue(Int64Value value)

public Flag.Builder setMaxValue(Int64Value value)

For INTEGER flags, the maximum allowed value.

.google.protobuf.Int64Value max_value = 6;

Parameter
Name Description
value Int64Value
Returns
Type Description
Flag.Builder

setMaxValue(Int64Value.Builder builderForValue)

public Flag.Builder setMaxValue(Int64Value.Builder builderForValue)

For INTEGER flags, the maximum allowed value.

.google.protobuf.Int64Value max_value = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Flag.Builder

setMinValue(Int64Value value)

public Flag.Builder setMinValue(Int64Value value)

For INTEGER flags, the minimum allowed value.

.google.protobuf.Int64Value min_value = 5;

Parameter
Name Description
value Int64Value
Returns
Type Description
Flag.Builder

setMinValue(Int64Value.Builder builderForValue)

public Flag.Builder setMinValue(Int64Value.Builder builderForValue)

For INTEGER flags, the minimum allowed value.

.google.protobuf.Int64Value min_value = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Flag.Builder

setName(String value)

public Flag.Builder setName(String value)

This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Flag.Builder setNameBytes(ByteString value)

This is the name of the flag. Flag names always use underscores, not hyphens, for example: max_allowed_packet

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setRecommendedIntValue(Int64Value value)

public Flag.Builder setRecommendedIntValue(Int64Value value)

Recommended int value in integer format for UI display.

.google.protobuf.Int64Value recommended_int_value = 17;

Parameter
Name Description
value Int64Value
Returns
Type Description
Flag.Builder

setRecommendedIntValue(Int64Value.Builder builderForValue)

public Flag.Builder setRecommendedIntValue(Int64Value.Builder builderForValue)

Recommended int value in integer format for UI display.

.google.protobuf.Int64Value recommended_int_value = 17;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Flag.Builder

setRecommendedStringValue(String value)

public Flag.Builder setRecommendedStringValue(String value)

Recommended string value in string format for UI display.

string recommended_string_value = 16;

Parameter
Name Description
value String

The recommendedStringValue to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setRecommendedStringValueBytes(ByteString value)

public Flag.Builder setRecommendedStringValueBytes(ByteString value)

Recommended string value in string format for UI display.

string recommended_string_value = 16;

Parameter
Name Description
value ByteString

The bytes for recommendedStringValue to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setRequiresRestart(BoolValue value)

public Flag.Builder setRequiresRestart(BoolValue value)

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

.google.protobuf.BoolValue requires_restart = 7;

Parameter
Name Description
value BoolValue
Returns
Type Description
Flag.Builder

setRequiresRestart(BoolValue.Builder builderForValue)

public Flag.Builder setRequiresRestart(BoolValue.Builder builderForValue)

Indicates whether changing this flag will trigger a database restart. Only applicable to Second Generation instances.

.google.protobuf.BoolValue requires_restart = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Flag.Builder

setType(SqlFlagType value)

public Flag.Builder setType(SqlFlagType value)

The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags that do not take a value, such as skip_grant_tables.

.google.cloud.sql.v1.SqlFlagType type = 2;

Parameter
Name Description
value SqlFlagType

The type to set.

Returns
Type Description
Flag.Builder

This builder for chaining.

setTypeValue(int value)

public Flag.Builder setTypeValue(int value)

The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or NONE. NONE is used for flags that do not take a value, such as skip_grant_tables.

.google.cloud.sql.v1.SqlFlagType type = 2;

Parameter
Name Description
value int

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

Returns
Type Description
Flag.Builder

This builder for chaining.