Class EnumTypeOptions.Builder (0.40.0)

public static final class EnumTypeOptions.Builder extends GeneratedMessageV3.Builder<EnumTypeOptions.Builder> implements EnumTypeOptionsOrBuilder

Configurations for an enum/categorical property.

Protobuf type google.cloud.contentwarehouse.v1.EnumTypeOptions

Static Methods

getDescriptor()

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

Methods

addAllPossibleValues(Iterable<String> values)

public EnumTypeOptions.Builder addAllPossibleValues(Iterable<String> values)

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The possibleValues to add.

Returns
Type Description
EnumTypeOptions.Builder

This builder for chaining.

addPossibleValues(String value)

public EnumTypeOptions.Builder addPossibleValues(String value)

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The possibleValues to add.

Returns
Type Description
EnumTypeOptions.Builder

This builder for chaining.

addPossibleValuesBytes(ByteString value)

public EnumTypeOptions.Builder addPossibleValuesBytes(ByteString value)

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the possibleValues to add.

Returns
Type Description
EnumTypeOptions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EnumTypeOptions build()
Returns
Type Description
EnumTypeOptions

buildPartial()

public EnumTypeOptions buildPartial()
Returns
Type Description
EnumTypeOptions

clear()

public EnumTypeOptions.Builder clear()
Returns
Type Description
EnumTypeOptions.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPossibleValues()

public EnumTypeOptions.Builder clearPossibleValues()

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EnumTypeOptions.Builder

This builder for chaining.

clearValidationCheckDisabled()

public EnumTypeOptions.Builder clearValidationCheckDisabled()

Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.

bool validation_check_disabled = 2;

Returns
Type Description
EnumTypeOptions.Builder

This builder for chaining.

clone()

public EnumTypeOptions.Builder clone()
Returns
Type Description
EnumTypeOptions.Builder
Overrides

getDefaultInstanceForType()

public EnumTypeOptions getDefaultInstanceForType()
Returns
Type Description
EnumTypeOptions

getDescriptorForType()

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

getPossibleValues(int index)

public String getPossibleValues(int index)

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The possibleValues at the given index.

getPossibleValuesBytes(int index)

public ByteString getPossibleValuesBytes(int index)

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the possibleValues at the given index.

getPossibleValuesCount()

public int getPossibleValuesCount()

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of possibleValues.

getPossibleValuesList()

public ProtocolStringList getPossibleValuesList()

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the possibleValues.

getValidationCheckDisabled()

public boolean getValidationCheckDisabled()

Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.

bool validation_check_disabled = 2;

Returns
Type Description
boolean

The validationCheckDisabled.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EnumTypeOptions other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPossibleValues(int index, String value)

public EnumTypeOptions.Builder setPossibleValues(int index, String value)

Required. List of possible enum values.

repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The possibleValues to set.

Returns
Type Description
EnumTypeOptions.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValidationCheckDisabled(boolean value)

public EnumTypeOptions.Builder setValidationCheckDisabled(boolean value)

Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.

bool validation_check_disabled = 2;

Parameter
Name Description
value boolean

The validationCheckDisabled to set.

Returns
Type Description
EnumTypeOptions.Builder

This builder for chaining.