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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SupportedDatabaseFlag.BuilderImplements
SupportedDatabaseFlagOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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.v1.DatabaseVersion supported_db_versions = 5;
Name | Description |
values |
Iterable<? extends com.google.cloud.alloydb.v1.DatabaseVersion> The supportedDbVersions to add. |
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.v1.DatabaseVersion supported_db_versions = 5;
Name | Description |
values |
Iterable<Integer> The enum numeric values on the wire for supportedDbVersions to add. |
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SupportedDatabaseFlag.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Name | Description |
value |
DatabaseVersion The supportedDbVersions to add. |
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.v1.DatabaseVersion supported_db_versions = 5;
Name | Description |
value |
int The enum numeric value on the wire for supportedDbVersions to add. |
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
build()
public SupportedDatabaseFlag build()
Type | Description |
SupportedDatabaseFlag |
buildPartial()
public SupportedDatabaseFlag buildPartial()
Type | Description |
SupportedDatabaseFlag |
clear()
public SupportedDatabaseFlag.Builder clear()
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SupportedDatabaseFlag.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Type | Description |
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;
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;
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SupportedDatabaseFlag.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
clearRestrictions()
public SupportedDatabaseFlag.Builder clearRestrictions()
Type | Description |
SupportedDatabaseFlag.Builder |
clearStringRestrictions()
public SupportedDatabaseFlag.Builder clearStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Type | Description |
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;
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
clearValueType()
public SupportedDatabaseFlag.Builder clearValueType()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
clone()
public SupportedDatabaseFlag.Builder clone()
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Type | Description |
boolean |
The acceptsMultipleValues. |
getDefaultInstanceForType()
public SupportedDatabaseFlag getDefaultInstanceForType()
Type | Description |
SupportedDatabaseFlag |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
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;
Type | Description |
ByteString |
The bytes for flagName. |
getIntegerRestrictions()
public SupportedDatabaseFlag.IntegerRestrictions getIntegerRestrictions()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
Type | Description |
SupportedDatabaseFlag.IntegerRestrictions |
The integerRestrictions. |
getIntegerRestrictionsBuilder()
public SupportedDatabaseFlag.IntegerRestrictions.Builder getIntegerRestrictionsBuilder()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
Type | Description |
SupportedDatabaseFlag.IntegerRestrictions.Builder |
getIntegerRestrictionsOrBuilder()
public SupportedDatabaseFlag.IntegerRestrictionsOrBuilder getIntegerRestrictionsOrBuilder()
Restriction on INTEGER type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
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;
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;
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;
Type | Description |
boolean |
The requiresDbRestart. |
getRestrictionsCase()
public SupportedDatabaseFlag.RestrictionsCase getRestrictionsCase()
Type | Description |
SupportedDatabaseFlag.RestrictionsCase |
getStringRestrictions()
public SupportedDatabaseFlag.StringRestrictions getStringRestrictions()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Type | Description |
SupportedDatabaseFlag.StringRestrictions |
The stringRestrictions. |
getStringRestrictionsBuilder()
public SupportedDatabaseFlag.StringRestrictions.Builder getStringRestrictionsBuilder()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Type | Description |
SupportedDatabaseFlag.StringRestrictions.Builder |
getStringRestrictionsOrBuilder()
public SupportedDatabaseFlag.StringRestrictionsOrBuilder getStringRestrictionsOrBuilder()
Restriction on STRING type value.
.google.cloud.alloydb.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
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.v1.DatabaseVersion supported_db_versions = 5;
Name | Description |
index |
int The index of the element to return. |
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.v1.DatabaseVersion supported_db_versions = 5;
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.v1.DatabaseVersion supported_db_versions = 5;
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.v1.DatabaseVersion supported_db_versions = 5;
Name | Description |
index |
int The index of the value to return. |
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.v1.DatabaseVersion supported_db_versions = 5;
Type | Description |
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;
Type | Description |
SupportedDatabaseFlag.ValueType |
The valueType. |
getValueTypeValue()
public int getValueTypeValue()
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
Type | Description |
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;
Type | Description |
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;
Type | Description |
boolean |
Whether the stringRestrictions field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(SupportedDatabaseFlag other)
public SupportedDatabaseFlag.Builder mergeFrom(SupportedDatabaseFlag other)
Name | Description |
other |
SupportedDatabaseFlag |
Type | Description |
SupportedDatabaseFlag.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SupportedDatabaseFlag.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
SupportedDatabaseFlag.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SupportedDatabaseFlag.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Name | Description |
value |
SupportedDatabaseFlag.IntegerRestrictions |
Type | Description |
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;
Name | Description |
value |
SupportedDatabaseFlag.StringRestrictions |
Type | Description |
SupportedDatabaseFlag.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SupportedDatabaseFlag.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Name | Description |
value |
boolean The acceptsMultipleValues to set. |
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public SupportedDatabaseFlag.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Name | Description |
value |
String The flagName to set. |
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;
Name | Description |
value |
ByteString The bytes for flagName to set. |
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.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
Name | Description |
value |
SupportedDatabaseFlag.IntegerRestrictions |
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.v1.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;
Name | Description |
builderForValue |
SupportedDatabaseFlag.IntegerRestrictions.Builder |
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;
Name | Description |
value |
String The name to set. |
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;
Name | Description |
value |
ByteString The bytes for name to set. |
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)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
SupportedDatabaseFlag.Builder |
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;
Name | Description |
value |
boolean The requiresDbRestart to set. |
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.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Name | Description |
value |
SupportedDatabaseFlag.StringRestrictions |
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.v1.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;
Name | Description |
builderForValue |
SupportedDatabaseFlag.StringRestrictions.Builder |
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.v1.DatabaseVersion supported_db_versions = 5;
Name | Description |
index |
int The index to set the value at. |
value |
DatabaseVersion The supportedDbVersions to set. |
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.v1.DatabaseVersion supported_db_versions = 5;
Name | Description |
index |
int The index to set the value at. |
value |
int The enum numeric value on the wire for supportedDbVersions to set. |
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final SupportedDatabaseFlag.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
SupportedDatabaseFlag.Builder |
setValueType(SupportedDatabaseFlag.ValueType value)
public SupportedDatabaseFlag.Builder setValueType(SupportedDatabaseFlag.ValueType value)
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
Name | Description |
value |
SupportedDatabaseFlag.ValueType The valueType to set. |
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |
setValueTypeValue(int value)
public SupportedDatabaseFlag.Builder setValueTypeValue(int value)
.google.cloud.alloydb.v1.SupportedDatabaseFlag.ValueType value_type = 3;
Name | Description |
value |
int The enum numeric value on the wire for valueType to set. |
Type | Description |
SupportedDatabaseFlag.Builder |
This builder for chaining. |