Class EnumTypeOptions (0.11.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
TypeDescription
int

VALIDATION_CHECK_DISABLED_FIELD_NUMBER

public static final int VALIDATION_CHECK_DISABLED_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EnumTypeOptions getDefaultInstance()
Returns
TypeDescription
EnumTypeOptions

getDescriptor()

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

newBuilder()

public static EnumTypeOptions.Builder newBuilder()
Returns
TypeDescription
EnumTypeOptions.Builder

newBuilder(EnumTypeOptions prototype)

public static EnumTypeOptions.Builder newBuilder(EnumTypeOptions prototype)
Parameter
NameDescription
prototypeEnumTypeOptions
Returns
TypeDescription
EnumTypeOptions.Builder

parseDelimitedFrom(InputStream input)

public static EnumTypeOptions parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EnumTypeOptions
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static EnumTypeOptions parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
EnumTypeOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static EnumTypeOptions parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
EnumTypeOptions
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static EnumTypeOptions parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
EnumTypeOptions
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static EnumTypeOptions parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
EnumTypeOptions
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<EnumTypeOptions> parser()
Returns
TypeDescription
Parser<EnumTypeOptions>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public EnumTypeOptions getDefaultInstanceForType()
Returns
TypeDescription
EnumTypeOptions

getParserForType()

public Parser<EnumTypeOptions> getParserForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the possibleValues.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
boolean

The validationCheckDisabled.

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 EnumTypeOptions.Builder newBuilderForType()
Returns
TypeDescription
EnumTypeOptions.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public EnumTypeOptions.Builder toBuilder()
Returns
TypeDescription
EnumTypeOptions.Builder

writeTo(CodedOutputStream output)

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