Class EnumTypeOptions (0.42.0)

public final class EnumTypeOptions extends GeneratedMessageV3 implements EnumTypeOptionsOrBuilder

Configurations for an enum/categorical property.

Protobuf type google.cloud.contentwarehouse.v1.EnumTypeOptions

Static Fields

POSSIBLE_VALUES_FIELD_NUMBER

public static final int POSSIBLE_VALUES_FIELD_NUMBER
Field Value
Type Description
int

VALIDATION_CHECK_DISABLED_FIELD_NUMBER

public static final int VALIDATION_CHECK_DISABLED_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EnumTypeOptions getDefaultInstance()
Returns
Type Description
EnumTypeOptions

getDescriptor()

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

newBuilder()

public static EnumTypeOptions.Builder newBuilder()
Returns
Type Description
EnumTypeOptions.Builder

newBuilder(EnumTypeOptions prototype)

public static EnumTypeOptions.Builder newBuilder(EnumTypeOptions prototype)
Parameter
Name Description
prototype EnumTypeOptions
Returns
Type Description
EnumTypeOptions.Builder

parseDelimitedFrom(InputStream input)

public static EnumTypeOptions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EnumTypeOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EnumTypeOptions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EnumTypeOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EnumTypeOptions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EnumTypeOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EnumTypeOptions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EnumTypeOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EnumTypeOptions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EnumTypeOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EnumTypeOptions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EnumTypeOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EnumTypeOptions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EnumTypeOptions> parser()
Returns
Type Description
Parser<EnumTypeOptions>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public EnumTypeOptions getDefaultInstanceForType()
Returns
Type Description
EnumTypeOptions

getParserForType()

public Parser<EnumTypeOptions> getParserForType()
Returns
Type Description
Parser<EnumTypeOptions>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public EnumTypeOptions.Builder newBuilderForType()
Returns
Type Description
EnumTypeOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EnumTypeOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EnumTypeOptions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public EnumTypeOptions.Builder toBuilder()
Returns
Type Description
EnumTypeOptions.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException