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.v1.SupportedDatabaseFlag.StringRestrictions
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Returns
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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SupportedDatabaseFlag.StringRestrictions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SupportedDatabaseFlag.StringRestrictions build()
Returns
buildPartial()
public SupportedDatabaseFlag.StringRestrictions buildPartial()
Returns
clear()
public SupportedDatabaseFlag.StringRestrictions.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public SupportedDatabaseFlag.StringRestrictions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SupportedDatabaseFlag.StringRestrictions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SupportedDatabaseFlag.StringRestrictions.Builder clone()
Returns
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
getDefaultInstanceForType()
public SupportedDatabaseFlag.StringRestrictions getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SupportedDatabaseFlag.StringRestrictions other)
public SupportedDatabaseFlag.StringRestrictions.Builder mergeFrom(SupportedDatabaseFlag.StringRestrictions other)
Parameter
Returns
public SupportedDatabaseFlag.StringRestrictions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SupportedDatabaseFlag.StringRestrictions.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SupportedDatabaseFlag.StringRestrictions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public SupportedDatabaseFlag.StringRestrictions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SupportedDatabaseFlag.StringRestrictions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SupportedDatabaseFlag.StringRestrictions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides