Class SupportedDatabaseFlag.StringRestrictions.Builder (0.18.0)

public static final class SupportedDatabaseFlag.StringRestrictions.Builder extends GeneratedMessageV3.Builder<SupportedDatabaseFlag.StringRestrictions.Builder> implements SupportedDatabaseFlag.StringRestrictionsOrBuilder

Restrictions on STRING type values

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

Static Methods

getDescriptor()

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

Methods

addAllAllowedValues(Iterable<String> values)

public SupportedDatabaseFlag.StringRestrictions.Builder addAllAllowedValues(Iterable<String> values)

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
Name Description
values Iterable<String>

The allowedValues to add.

Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder

This builder for chaining.

addAllowedValues(String value)

public SupportedDatabaseFlag.StringRestrictions.Builder addAllowedValues(String value)

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
Name Description
value String

The allowedValues to add.

Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder

This builder for chaining.

addAllowedValuesBytes(ByteString value)

public SupportedDatabaseFlag.StringRestrictions.Builder addAllowedValuesBytes(ByteString value)

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
Name Description
value ByteString

The bytes of the allowedValues to add.

Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SupportedDatabaseFlag.StringRestrictions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides

build()

public SupportedDatabaseFlag.StringRestrictions build()
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions

buildPartial()

public SupportedDatabaseFlag.StringRestrictions buildPartial()
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions

clear()

public SupportedDatabaseFlag.StringRestrictions.Builder clear()
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides

clearAllowedValues()

public SupportedDatabaseFlag.StringRestrictions.Builder clearAllowedValues()

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
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SupportedDatabaseFlag.StringRestrictions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SupportedDatabaseFlag.StringRestrictions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides

clone()

public SupportedDatabaseFlag.StringRestrictions.Builder clone()
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the allowedValues.

getDefaultInstanceForType()

public SupportedDatabaseFlag.StringRestrictions getDefaultInstanceForType()
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SupportedDatabaseFlag.StringRestrictions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SupportedDatabaseFlag.StringRestrictions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides

setAllowedValues(int index, String value)

public SupportedDatabaseFlag.StringRestrictions.Builder setAllowedValues(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The allowedValues to set.

Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SupportedDatabaseFlag.StringRestrictions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SupportedDatabaseFlag.StringRestrictions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SupportedDatabaseFlag.StringRestrictions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SupportedDatabaseFlag.StringRestrictions.Builder
Overrides