public final class EnumTypeOptions extends GeneratedMessage implements EnumTypeOptionsOrBuilderConfigurations for an enum/categorical property.
Protobuf type google.cloud.contentwarehouse.v1.EnumTypeOptions
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > EnumTypeOptionsImplements
EnumTypeOptionsOrBuilderStatic 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 |
|
getDefaultInstanceForType()
public EnumTypeOptions getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EnumTypeOptions |
|
getParserForType()
public Parser<EnumTypeOptions> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<EnumTypeOptions> |
|
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 |
intThe 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 |
intThe 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 |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public EnumTypeOptions.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
EnumTypeOptions.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected EnumTypeOptions.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
EnumTypeOptions.Builder |
|
toBuilder()
public EnumTypeOptions.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
EnumTypeOptions.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|