Class SupportedDatabaseFlag.StringRestrictions (0.30.0)

public static final class SupportedDatabaseFlag.StringRestrictions extends GeneratedMessageV3 implements SupportedDatabaseFlag.StringRestrictionsOrBuilder

Restrictions on STRING type values

Protobuf type google.cloud.alloydb.v1beta.SupportedDatabaseFlag.StringRestrictions

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SupportedDatabaseFlag.StringRestrictions

Static Fields

ALLOWED_VALUES_FIELD_NUMBER

public static final int ALLOWED_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SupportedDatabaseFlag.StringRestrictions getDefaultInstance()
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SupportedDatabaseFlag.StringRestrictions.Builder newBuilder()
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions.Builder

newBuilder(SupportedDatabaseFlag.StringRestrictions prototype)

public static SupportedDatabaseFlag.StringRestrictions.Builder newBuilder(SupportedDatabaseFlag.StringRestrictions prototype)
Parameter
NameDescription
prototypeSupportedDatabaseFlag.StringRestrictions
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions.Builder

parseDelimitedFrom(InputStream input)

public static SupportedDatabaseFlag.StringRestrictions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag.StringRestrictions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SupportedDatabaseFlag.StringRestrictions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SupportedDatabaseFlag.StringRestrictions> parser()
Returns
TypeDescription
Parser<StringRestrictions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAllowedValues(int index)

public String getAllowedValues(int index)

The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.

repeated string allowed_values = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The allowedValues at the given index.

getAllowedValuesBytes(int index)

public ByteString getAllowedValuesBytes(int index)

The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.

repeated string allowed_values = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the allowedValues at the given index.

getAllowedValuesCount()

public int getAllowedValuesCount()

The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.

repeated string allowed_values = 1;

Returns
TypeDescription
int

The count of allowedValues.

getAllowedValuesList()

public ProtocolStringList getAllowedValuesList()

The list of allowed values, if bounded. This field will be empty if there is a unbounded number of allowed values.

repeated string allowed_values = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the allowedValues.

getDefaultInstanceForType()

public SupportedDatabaseFlag.StringRestrictions getDefaultInstanceForType()
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions

getParserForType()

public Parser<SupportedDatabaseFlag.StringRestrictions> getParserForType()
Returns
TypeDescription
Parser<StringRestrictions>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SupportedDatabaseFlag.StringRestrictions.Builder newBuilderForType()
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SupportedDatabaseFlag.StringRestrictions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SupportedDatabaseFlag.StringRestrictions.Builder toBuilder()
Returns
TypeDescription
SupportedDatabaseFlag.StringRestrictions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException