Package com.google.cloud.alloydb.v1
Class SupportedDatabaseFlag.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
- com.google.cloud.alloydb.v1.SupportedDatabaseFlag.Builder
-
- All Implemented Interfaces:
SupportedDatabaseFlagOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- SupportedDatabaseFlag
public static final class SupportedDatabaseFlag.Builder extends com.google.protobuf.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 typegoogle.cloud.alloydb.v1.SupportedDatabaseFlag
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SupportedDatabaseFlag.Builder
addAllSupportedDbVersions(Iterable<? extends DatabaseVersion> values)
Major database engine versions for which this flag is supported.SupportedDatabaseFlag.Builder
addAllSupportedDbVersionsValue(Iterable<Integer> values)
Major database engine versions for which this flag is supported.SupportedDatabaseFlag.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SupportedDatabaseFlag.Builder
addSupportedDbVersions(DatabaseVersion value)
Major database engine versions for which this flag is supported.SupportedDatabaseFlag.Builder
addSupportedDbVersionsValue(int value)
Major database engine versions for which this flag is supported.SupportedDatabaseFlag
build()
SupportedDatabaseFlag
buildPartial()
SupportedDatabaseFlag.Builder
clear()
SupportedDatabaseFlag.Builder
clearAcceptsMultipleValues()
Whether the database flag accepts multiple values.SupportedDatabaseFlag.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SupportedDatabaseFlag.Builder
clearFlagName()
The name of the database flag, e.g.SupportedDatabaseFlag.Builder
clearIntegerRestrictions()
Restriction on INTEGER type value.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.SupportedDatabaseFlag.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SupportedDatabaseFlag.Builder
clearRequiresDbRestart()
Whether setting or updating this flag on an Instance requires a database restart.SupportedDatabaseFlag.Builder
clearRestrictions()
SupportedDatabaseFlag.Builder
clearStringRestrictions()
Restriction on STRING type value.SupportedDatabaseFlag.Builder
clearSupportedDbVersions()
Major database engine versions for which this flag is supported.SupportedDatabaseFlag.Builder
clearValueType()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
SupportedDatabaseFlag.Builder
clone()
boolean
getAcceptsMultipleValues()
Whether the database flag accepts multiple values.SupportedDatabaseFlag
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFlagName()
The name of the database flag, e.g.com.google.protobuf.ByteString
getFlagNameBytes()
The name of the database flag, e.g.SupportedDatabaseFlag.IntegerRestrictions
getIntegerRestrictions()
Restriction on INTEGER type value.SupportedDatabaseFlag.IntegerRestrictions.Builder
getIntegerRestrictionsBuilder()
Restriction on INTEGER type value.SupportedDatabaseFlag.IntegerRestrictionsOrBuilder
getIntegerRestrictionsOrBuilder()
Restriction on INTEGER type value.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.com.google.protobuf.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.boolean
getRequiresDbRestart()
Whether setting or updating this flag on an Instance requires a database restart.SupportedDatabaseFlag.RestrictionsCase
getRestrictionsCase()
SupportedDatabaseFlag.StringRestrictions
getStringRestrictions()
Restriction on STRING type value.SupportedDatabaseFlag.StringRestrictions.Builder
getStringRestrictionsBuilder()
Restriction on STRING type value.SupportedDatabaseFlag.StringRestrictionsOrBuilder
getStringRestrictionsOrBuilder()
Restriction on STRING type value.DatabaseVersion
getSupportedDbVersions(int index)
Major database engine versions for which this flag is supported.int
getSupportedDbVersionsCount()
Major database engine versions for which this flag is supported.List<DatabaseVersion>
getSupportedDbVersionsList()
Major database engine versions for which this flag is supported.int
getSupportedDbVersionsValue(int index)
Major database engine versions for which this flag is supported.List<Integer>
getSupportedDbVersionsValueList()
Major database engine versions for which this flag is supported.SupportedDatabaseFlag.ValueType
getValueType()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
int
getValueTypeValue()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
boolean
hasIntegerRestrictions()
Restriction on INTEGER type value.boolean
hasStringRestrictions()
Restriction on STRING type value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SupportedDatabaseFlag.Builder
mergeFrom(SupportedDatabaseFlag other)
SupportedDatabaseFlag.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SupportedDatabaseFlag.Builder
mergeFrom(com.google.protobuf.Message other)
SupportedDatabaseFlag.Builder
mergeIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)
Restriction on INTEGER type value.SupportedDatabaseFlag.Builder
mergeStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)
Restriction on STRING type value.SupportedDatabaseFlag.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SupportedDatabaseFlag.Builder
setAcceptsMultipleValues(boolean value)
Whether the database flag accepts multiple values.SupportedDatabaseFlag.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
SupportedDatabaseFlag.Builder
setFlagName(String value)
The name of the database flag, e.g.SupportedDatabaseFlag.Builder
setFlagNameBytes(com.google.protobuf.ByteString value)
The name of the database flag, e.g.SupportedDatabaseFlag.Builder
setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)
Restriction on INTEGER type value.SupportedDatabaseFlag.Builder
setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions.Builder builderForValue)
Restriction on INTEGER type value.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.SupportedDatabaseFlag.Builder
setNameBytes(com.google.protobuf.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.SupportedDatabaseFlag.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
SupportedDatabaseFlag.Builder
setRequiresDbRestart(boolean value)
Whether setting or updating this flag on an Instance requires a database restart.SupportedDatabaseFlag.Builder
setStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)
Restriction on STRING type value.SupportedDatabaseFlag.Builder
setStringRestrictions(SupportedDatabaseFlag.StringRestrictions.Builder builderForValue)
Restriction on STRING type value.SupportedDatabaseFlag.Builder
setSupportedDbVersions(int index, DatabaseVersion value)
Major database engine versions for which this flag is supported.SupportedDatabaseFlag.Builder
setSupportedDbVersionsValue(int index, int value)
Major database engine versions for which this flag is supported.SupportedDatabaseFlag.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SupportedDatabaseFlag.Builder
setValueType(SupportedDatabaseFlag.ValueType value)
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
SupportedDatabaseFlag.Builder
setValueTypeValue(int value)
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
clear
public SupportedDatabaseFlag.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
getDefaultInstanceForType
public SupportedDatabaseFlag getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SupportedDatabaseFlag build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SupportedDatabaseFlag buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SupportedDatabaseFlag.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
setField
public SupportedDatabaseFlag.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
clearField
public SupportedDatabaseFlag.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
clearOneof
public SupportedDatabaseFlag.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
setRepeatedField
public SupportedDatabaseFlag.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
addRepeatedField
public SupportedDatabaseFlag.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
mergeFrom
public SupportedDatabaseFlag.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SupportedDatabaseFlag.Builder>
-
mergeFrom
public SupportedDatabaseFlag.Builder mergeFrom(SupportedDatabaseFlag other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
mergeFrom
public SupportedDatabaseFlag.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SupportedDatabaseFlag.Builder>
- Throws:
IOException
-
getRestrictionsCase
public SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase()
- Specified by:
getRestrictionsCase
in interfaceSupportedDatabaseFlagOrBuilder
-
clearRestrictions
public SupportedDatabaseFlag.Builder clearRestrictions()
-
hasStringRestrictions
public boolean hasStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
- Specified by:
hasStringRestrictions
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- Whether the stringRestrictions field is set.
-
getStringRestrictions
public SupportedDatabaseFlag.StringRestrictions getStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
- Specified by:
getStringRestrictions
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The stringRestrictions.
-
setStringRestrictions
public SupportedDatabaseFlag.Builder setStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
-
setStringRestrictions
public SupportedDatabaseFlag.Builder setStringRestrictions(SupportedDatabaseFlag.StringRestrictions.Builder builderForValue)
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
-
mergeStringRestrictions
public SupportedDatabaseFlag.Builder mergeStringRestrictions(SupportedDatabaseFlag.StringRestrictions value)
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
-
clearStringRestrictions
public SupportedDatabaseFlag.Builder clearStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
-
getStringRestrictionsBuilder
public SupportedDatabaseFlag.StringRestrictions.Builder getStringRestrictionsBuilder()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
-
getStringRestrictionsOrBuilder
public SupportedDatabaseFlag.StringRestrictionsOrBuilder getStringRestrictionsOrBuilder()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
- Specified by:
getStringRestrictionsOrBuilder
in interfaceSupportedDatabaseFlagOrBuilder
-
hasIntegerRestrictions
public boolean hasIntegerRestrictions()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
- Specified by:
hasIntegerRestrictions
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- Whether the integerRestrictions field is set.
-
getIntegerRestrictions
public SupportedDatabaseFlag.IntegerRestrictions getIntegerRestrictions()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
- Specified by:
getIntegerRestrictions
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The integerRestrictions.
-
setIntegerRestrictions
public SupportedDatabaseFlag.Builder setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
-
setIntegerRestrictions
public SupportedDatabaseFlag.Builder setIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions.Builder builderForValue)
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
-
mergeIntegerRestrictions
public SupportedDatabaseFlag.Builder mergeIntegerRestrictions(SupportedDatabaseFlag.IntegerRestrictions value)
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
-
clearIntegerRestrictions
public SupportedDatabaseFlag.Builder clearIntegerRestrictions()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
-
getIntegerRestrictionsBuilder
public SupportedDatabaseFlag.IntegerRestrictions.Builder getIntegerRestrictionsBuilder()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
-
getIntegerRestrictionsOrBuilder
public SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
- Specified by:
getIntegerRestrictionsOrBuilder
in interfaceSupportedDatabaseFlagOrBuilder
-
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;
- Specified by:
getName
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;
- Specified by:
getNameBytes
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The bytes for name.
-
setName
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;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
public SupportedDatabaseFlag.Builder setNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getFlagName
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The flagName.
-
getFlagNameBytes
public com.google.protobuf.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;
- Specified by:
getFlagNameBytes
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The bytes for flagName.
-
setFlagName
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;
- Parameters:
value
- The flagName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setFlagNameBytes
public SupportedDatabaseFlag.Builder setFlagNameBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for flagName to set.- Returns:
- This builder for chaining.
-
getValueTypeValue
public int getValueTypeValue()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
- Specified by:
getValueTypeValue
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The enum numeric value on the wire for valueType.
-
setValueTypeValue
public SupportedDatabaseFlag.Builder setValueTypeValue(int value)
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
- Parameters:
value
- The enum numeric value on the wire for valueType to set.- Returns:
- This builder for chaining.
-
getValueType
public SupportedDatabaseFlag.ValueType getValueType()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
- Specified by:
getValueType
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The valueType.
-
setValueType
public SupportedDatabaseFlag.Builder setValueType(SupportedDatabaseFlag.ValueType value)
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
- Parameters:
value
- The valueType to set.- Returns:
- This builder for chaining.
-
clearValueType
public SupportedDatabaseFlag.Builder clearValueType()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
- Returns:
- This builder for chaining.
-
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;
- Specified by:
getAcceptsMultipleValues
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The acceptsMultipleValues.
-
setAcceptsMultipleValues
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;
- Parameters:
value
- The acceptsMultipleValues to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
getSupportedDbVersionsList
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- A list containing the supportedDbVersions.
-
getSupportedDbVersionsCount
public int getSupportedDbVersionsCount()
Major database engine versions for which this flag is supported.
repeated .google.cloud.alloydb.v1.DatabaseVersion supported_db_versions = 5;
- Specified by:
getSupportedDbVersionsCount
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The count of supportedDbVersions.
-
getSupportedDbVersions
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;
- Specified by:
getSupportedDbVersions
in interfaceSupportedDatabaseFlagOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The supportedDbVersions at the given index.
-
setSupportedDbVersions
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:
index
- The index to set the value at.value
- The supportedDbVersions to set.- Returns:
- This builder for chaining.
-
addSupportedDbVersions
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;
- Parameters:
value
- The supportedDbVersions to add.- Returns:
- This builder for chaining.
-
addAllSupportedDbVersions
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;
- Parameters:
values
- The supportedDbVersions to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;
- Specified by:
getSupportedDbVersionsValueList
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for supportedDbVersions.
-
getSupportedDbVersionsValue
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;
- Specified by:
getSupportedDbVersionsValue
in interfaceSupportedDatabaseFlagOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of supportedDbVersions at the given index.
-
setSupportedDbVersionsValue
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:
index
- The index to set the value at.value
- The enum numeric value on the wire for supportedDbVersions to set.- Returns:
- This builder for chaining.
-
addSupportedDbVersionsValue
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;
- Parameters:
value
- The enum numeric value on the wire for supportedDbVersions to add.- Returns:
- This builder for chaining.
-
addAllSupportedDbVersionsValue
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;
- Parameters:
values
- The enum numeric values on the wire for supportedDbVersions to add.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getRequiresDbRestart
in interfaceSupportedDatabaseFlagOrBuilder
- Returns:
- The requiresDbRestart.
-
setRequiresDbRestart
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;
- Parameters:
value
- The requiresDbRestart to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUnknownFields
public final SupportedDatabaseFlag.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
mergeUnknownFields
public final SupportedDatabaseFlag.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SupportedDatabaseFlag.Builder>
-
-