Send feedback
Class EnumTypeOptions.Builder (0.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.3.0 keyboard_arrow_down
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 ()
Returns
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
Returns
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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EnumTypeOptions . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
build()
public EnumTypeOptions build ()
Returns
buildPartial()
public EnumTypeOptions buildPartial ()
Returns
clear()
public EnumTypeOptions . Builder clear ()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public EnumTypeOptions . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public EnumTypeOptions . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
clearPossibleValues()
public EnumTypeOptions . Builder clearPossibleValues ()
Required. List of possible enum values.
repeated string possible_values = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
clone()
public EnumTypeOptions . Builder clone ()
Returns
Overrides
getDefaultInstanceForType()
public EnumTypeOptions getDefaultInstanceForType ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(EnumTypeOptions other)
public EnumTypeOptions . Builder mergeFrom ( EnumTypeOptions other )
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EnumTypeOptions . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public EnumTypeOptions . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EnumTypeOptions . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public EnumTypeOptions . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EnumTypeOptions . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EnumTypeOptions . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]