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
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()
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.
|
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.
|
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.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EnumTypeOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public EnumTypeOptions build()
buildPartial()
public EnumTypeOptions buildPartial()
clear()
public EnumTypeOptions.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public EnumTypeOptions.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public EnumTypeOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPossibleValues()
public EnumTypeOptions.Builder clearPossibleValues()
Required. List of possible enum values.
repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
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;
clone()
public EnumTypeOptions.Builder clone()
Overrides
getDefaultInstanceForType()
public EnumTypeOptions getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(EnumTypeOptions other)
public EnumTypeOptions.Builder mergeFrom(EnumTypeOptions other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EnumTypeOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public EnumTypeOptions.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EnumTypeOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public EnumTypeOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EnumTypeOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EnumTypeOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
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.
|