Package com.google.protobuf
Class DescriptorProtos.EnumOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
com.google.protobuf.DescriptorProtos.EnumOptions.Builder
- All Implemented Interfaces:
DescriptorProtos.EnumOptionsOrBuilder,com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.EnumOptions,,DescriptorProtos.EnumOptions.Builder> com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- DescriptorProtos.EnumOptions
public static final class DescriptorProtos.EnumOptions.Builder
extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
implements DescriptorProtos.EnumOptionsOrBuilder
Protobuf type
google.protobuf.EnumOptions-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllUninterpretedOption(Iterable<? extends DescriptorProtos.UninterpretedOption> values) The parser stores options it doesn't recognize here.addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value) The parser stores options it doesn't recognize here.addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here.The parser stores options it doesn't recognize here.addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here.Set this option to true to allow mapping different tag names to the same value.Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.The parser stores options it doesn't recognize here.booleanSet this option to true to allow mapping different tag names to the same value.booleanIs this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.booleanDeprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.getUninterpretedOption(int index) The parser stores options it doesn't recognize here.intThe parser stores options it doesn't recognize here.The parser stores options it doesn't recognize here.booleanSet this option to true to allow mapping different tag names to the same value.booleanIs this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.booleanDeprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.removeUninterpretedOption(int index) The parser stores options it doesn't recognize here.setAllowAlias(boolean value) Set this option to true to allow mapping different tag names to the same value.setDeprecated(boolean value) Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.setDeprecatedLegacyJsonFieldConflicts(boolean value) Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value) The parser stores options it doesn't recognize here.setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here.Methods inherited from class com.google.protobuf.GeneratedMessageLite.ExtendableBuilder
addExtension, buildPartial, clearExtension, copyOnWriteInternal, getExtension, getExtension, getExtensionCount, hasExtension, setExtension, setExtensionMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder
getExtension, getExtension, getExtensionCount, hasExtensionMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasAllowAlias
public boolean hasAllowAlias()Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2 [json_name = "allowAlias"];- Specified by:
hasAllowAliasin interfaceDescriptorProtos.EnumOptionsOrBuilder- Returns:
- Whether the allowAlias field is set.
-
getAllowAlias
public boolean getAllowAlias()Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2 [json_name = "allowAlias"];- Specified by:
getAllowAliasin interfaceDescriptorProtos.EnumOptionsOrBuilder- Returns:
- The allowAlias.
-
setAllowAlias
Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2 [json_name = "allowAlias"];- Parameters:
value- The allowAlias to set.- Returns:
- This builder for chaining.
-
clearAllowAlias
Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2 [json_name = "allowAlias"];- Returns:
- This builder for chaining.
-
hasDeprecated
public boolean hasDeprecated()Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false, json_name = "deprecated"];- Specified by:
hasDeprecatedin interfaceDescriptorProtos.EnumOptionsOrBuilder- Returns:
- Whether the deprecated field is set.
-
getDeprecated
public boolean getDeprecated()Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false, json_name = "deprecated"];- Specified by:
getDeprecatedin interfaceDescriptorProtos.EnumOptionsOrBuilder- Returns:
- The deprecated.
-
setDeprecated
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false, json_name = "deprecated"];- Parameters:
value- The deprecated to set.- Returns:
- This builder for chaining.
-
clearDeprecated
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false, json_name = "deprecated"];- Returns:
- This builder for chaining.
-
hasDeprecatedLegacyJsonFieldConflicts
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=753Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. TODO(b/261750190) Remove this legacy behavior once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 6 [json_name = "deprecatedLegacyJsonFieldConflicts", deprecated = true];- Specified by:
hasDeprecatedLegacyJsonFieldConflictsin interfaceDescriptorProtos.EnumOptionsOrBuilder- Returns:
- Whether the deprecatedLegacyJsonFieldConflicts field is set.
-
getDeprecatedLegacyJsonFieldConflicts
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=753Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. TODO(b/261750190) Remove this legacy behavior once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 6 [json_name = "deprecatedLegacyJsonFieldConflicts", deprecated = true];- Specified by:
getDeprecatedLegacyJsonFieldConflictsin interfaceDescriptorProtos.EnumOptionsOrBuilder- Returns:
- The deprecatedLegacyJsonFieldConflicts.
-
setDeprecatedLegacyJsonFieldConflicts
@Deprecated public DescriptorProtos.EnumOptions.Builder setDeprecatedLegacyJsonFieldConflicts(boolean value) Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=753Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. TODO(b/261750190) Remove this legacy behavior once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 6 [json_name = "deprecatedLegacyJsonFieldConflicts", deprecated = true];- Parameters:
value- The deprecatedLegacyJsonFieldConflicts to set.- Returns:
- This builder for chaining.
-
clearDeprecatedLegacyJsonFieldConflicts
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=753Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. TODO(b/261750190) Remove this legacy behavior once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 6 [json_name = "deprecatedLegacyJsonFieldConflicts", deprecated = true];- Returns:
- This builder for chaining.
-
getUninterpretedOptionList
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];- Specified by:
getUninterpretedOptionListin interfaceDescriptorProtos.EnumOptionsOrBuilder
-
getUninterpretedOptionCount
public int getUninterpretedOptionCount()The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];- Specified by:
getUninterpretedOptionCountin interfaceDescriptorProtos.EnumOptionsOrBuilder
-
getUninterpretedOption
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];- Specified by:
getUninterpretedOptionin interfaceDescriptorProtos.EnumOptionsOrBuilder
-
setUninterpretedOption
public DescriptorProtos.EnumOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value) The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"]; -
setUninterpretedOption
public DescriptorProtos.EnumOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"]; -
addUninterpretedOption
public DescriptorProtos.EnumOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption value) The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"]; -
addUninterpretedOption
public DescriptorProtos.EnumOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value) The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"]; -
addUninterpretedOption
public DescriptorProtos.EnumOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"]; -
addUninterpretedOption
public DescriptorProtos.EnumOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"]; -
addAllUninterpretedOption
public DescriptorProtos.EnumOptions.Builder addAllUninterpretedOption(Iterable<? extends DescriptorProtos.UninterpretedOption> values) The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"]; -
clearUninterpretedOption
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"]; -
removeUninterpretedOption
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
-