Package com.google.cloud.alloydb.v1beta
Class SupportedDatabaseFlag
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.alloydb.v1beta.SupportedDatabaseFlag
- All Implemented Interfaces:
SupportedDatabaseFlagOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SupportedDatabaseFlag
extends com.google.protobuf.GeneratedMessage
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.v1beta.SupportedDatabaseFlag- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSupportedDatabaseFlag gives general information about a database flag, like type and allowed values.static final classRestrictions on INTEGER type values.static interfacestatic enumstatic enumstatic enumThe scope of the flag.static final classRestrictions on STRING type valuesstatic interfacestatic enumValueType describes the semantic type of the value that the flag accepts.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether the database flag accepts multiple values.static SupportedDatabaseFlagstatic final com.google.protobuf.Descriptors.DescriptorThe name of the database flag, e.g.com.google.protobuf.ByteStringThe name of the database flag, e.g.Restriction on INTEGER type value.Restriction on INTEGER type value.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.ByteStringThe 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.Parser<SupportedDatabaseFlag>com.google.protobuf.Int64ValueThe recommended value for an INTEGER flag.com.google.protobuf.Int64ValueOrBuilderThe recommended value for an INTEGER flag.The recommended value for a STRING flag.com.google.protobuf.ByteStringThe recommended value for a STRING flag.booleanWhether setting or updating this flag on an Instance requires a database restart.getScope()The scope of the flag.intThe scope of the flag.intRestriction on STRING type value.Restriction on STRING type value.getSupportedDbVersions(int index) Major database engine versions for which this flag is supported.intMajor database engine versions for which this flag is supported.Major database engine versions for which this flag is supported.intgetSupportedDbVersionsValue(int index) Major database engine versions for which this flag is supported.Major database engine versions for which this flag is supported..google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;int.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;inthashCode()booleanRestriction on INTEGER type value.booleanThe recommended value for an INTEGER flag.booleanThe recommended value for a STRING flag.booleanRestriction on STRING type value.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(SupportedDatabaseFlag prototype) protected SupportedDatabaseFlag.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SupportedDatabaseFlagparseDelimitedFrom(InputStream input) static SupportedDatabaseFlagparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SupportedDatabaseFlagparseFrom(byte[] data) static SupportedDatabaseFlagparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SupportedDatabaseFlagparseFrom(com.google.protobuf.ByteString data) static SupportedDatabaseFlagparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SupportedDatabaseFlagparseFrom(com.google.protobuf.CodedInputStream input) static SupportedDatabaseFlagparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SupportedDatabaseFlagparseFrom(InputStream input) static SupportedDatabaseFlagparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SupportedDatabaseFlagparseFrom(ByteBuffer data) static SupportedDatabaseFlagparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SupportedDatabaseFlag>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
STRING_RESTRICTIONS_FIELD_NUMBER
public static final int STRING_RESTRICTIONS_FIELD_NUMBER- See Also:
-
INTEGER_RESTRICTIONS_FIELD_NUMBER
public static final int INTEGER_RESTRICTIONS_FIELD_NUMBER- See Also:
-
RECOMMENDED_STRING_VALUE_FIELD_NUMBER
public static final int RECOMMENDED_STRING_VALUE_FIELD_NUMBER- See Also:
-
RECOMMENDED_INTEGER_VALUE_FIELD_NUMBER
public static final int RECOMMENDED_INTEGER_VALUE_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
FLAG_NAME_FIELD_NUMBER
public static final int FLAG_NAME_FIELD_NUMBER- See Also:
-
VALUE_TYPE_FIELD_NUMBER
public static final int VALUE_TYPE_FIELD_NUMBER- See Also:
-
ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER
public static final int ACCEPTS_MULTIPLE_VALUES_FIELD_NUMBER- See Also:
-
SUPPORTED_DB_VERSIONS_FIELD_NUMBER
public static final int SUPPORTED_DB_VERSIONS_FIELD_NUMBER- See Also:
-
REQUIRES_DB_RESTART_FIELD_NUMBER
public static final int REQUIRES_DB_RESTART_FIELD_NUMBER- See Also:
-
SCOPE_FIELD_NUMBER
public static final int SCOPE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getRestrictionsCase
- Specified by:
getRestrictionsCasein interfaceSupportedDatabaseFlagOrBuilder
-
getRecommendedValueCase
- Specified by:
getRecommendedValueCasein interfaceSupportedDatabaseFlagOrBuilder
-
hasStringRestrictions
public boolean hasStringRestrictions()Restriction on STRING type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;- Specified by:
hasStringRestrictionsin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- Whether the stringRestrictions field is set.
-
getStringRestrictions
Restriction on STRING type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;- Specified by:
getStringRestrictionsin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The stringRestrictions.
-
getStringRestrictionsOrBuilder
Restriction on STRING type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions string_restrictions = 7;- Specified by:
getStringRestrictionsOrBuilderin interfaceSupportedDatabaseFlagOrBuilder
-
hasIntegerRestrictions
public boolean hasIntegerRestrictions()Restriction on INTEGER type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;- Specified by:
hasIntegerRestrictionsin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- Whether the integerRestrictions field is set.
-
getIntegerRestrictions
Restriction on INTEGER type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;- Specified by:
getIntegerRestrictionsin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The integerRestrictions.
-
getIntegerRestrictionsOrBuilder
Restriction on INTEGER type value.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.IntegerRestrictions integer_restrictions = 8;- Specified by:
getIntegerRestrictionsOrBuilderin interfaceSupportedDatabaseFlagOrBuilder
-
hasRecommendedStringValue
public boolean hasRecommendedStringValue()The recommended value for a STRING flag.
string recommended_string_value = 10;- Specified by:
hasRecommendedStringValuein interfaceSupportedDatabaseFlagOrBuilder- Returns:
- Whether the recommendedStringValue field is set.
-
getRecommendedStringValue
The recommended value for a STRING flag.
string recommended_string_value = 10;- Specified by:
getRecommendedStringValuein interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The recommendedStringValue.
-
getRecommendedStringValueBytes
public com.google.protobuf.ByteString getRecommendedStringValueBytes()The recommended value for a STRING flag.
string recommended_string_value = 10;- Specified by:
getRecommendedStringValueBytesin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The bytes for recommendedStringValue.
-
hasRecommendedIntegerValue
public boolean hasRecommendedIntegerValue()The recommended value for an INTEGER flag.
.google.protobuf.Int64Value recommended_integer_value = 11;- Specified by:
hasRecommendedIntegerValuein interfaceSupportedDatabaseFlagOrBuilder- Returns:
- Whether the recommendedIntegerValue field is set.
-
getRecommendedIntegerValue
public com.google.protobuf.Int64Value getRecommendedIntegerValue()The recommended value for an INTEGER flag.
.google.protobuf.Int64Value recommended_integer_value = 11;- Specified by:
getRecommendedIntegerValuein interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The recommendedIntegerValue.
-
getRecommendedIntegerValueOrBuilder
public com.google.protobuf.Int64ValueOrBuilder getRecommendedIntegerValueOrBuilder()The recommended value for an INTEGER flag.
.google.protobuf.Int64Value recommended_integer_value = 11;- Specified by:
getRecommendedIntegerValueOrBuilderin interfaceSupportedDatabaseFlagOrBuilder
-
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:
getNamein 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:
getNameBytesin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The bytes for name.
-
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:
getFlagNamein 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:
getFlagNameBytesin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The bytes for flagName.
-
getValueTypeValue
public int getValueTypeValue().google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;- Specified by:
getValueTypeValuein interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The enum numeric value on the wire for valueType.
-
getValueType
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.ValueType value_type = 3;- Specified by:
getValueTypein interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The valueType.
-
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:
getAcceptsMultipleValuesin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The acceptsMultipleValues.
-
getSupportedDbVersionsList
Major database engine versions for which this flag is supported.
repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;- Specified by:
getSupportedDbVersionsListin 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.v1beta.DatabaseVersion supported_db_versions = 5;- Specified by:
getSupportedDbVersionsCountin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The count of supportedDbVersions.
-
getSupportedDbVersions
Major database engine versions for which this flag is supported.
repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;- Specified by:
getSupportedDbVersionsin interfaceSupportedDatabaseFlagOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The supportedDbVersions at the given index.
-
getSupportedDbVersionsValueList
Major database engine versions for which this flag is supported.
repeated .google.cloud.alloydb.v1beta.DatabaseVersion supported_db_versions = 5;- Specified by:
getSupportedDbVersionsValueListin 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.v1beta.DatabaseVersion supported_db_versions = 5;- Specified by:
getSupportedDbVersionsValuein interfaceSupportedDatabaseFlagOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of supportedDbVersions at the given index.
-
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:
getRequiresDbRestartin interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The requiresDbRestart.
-
getScopeValue
public int getScopeValue()The scope of the flag.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9;- Specified by:
getScopeValuein interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The enum numeric value on the wire for scope.
-
getScope
The scope of the flag.
.google.cloud.alloydb.v1beta.SupportedDatabaseFlag.Scope scope = 9;- Specified by:
getScopein interfaceSupportedDatabaseFlagOrBuilder- Returns:
- The scope.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SupportedDatabaseFlag parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SupportedDatabaseFlag parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SupportedDatabaseFlag parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SupportedDatabaseFlag.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-