Package com.google.protobuf
Interface JavaFeaturesProto.JavaFeaturesOrBuilder
- All Superinterfaces:
MessageLiteOrBuilder
,MessageOrBuilder
- All Known Implementing Classes:
JavaFeaturesProto.JavaFeatures
,JavaFeaturesProto.JavaFeatures.Builder
- Enclosing class:
JavaFeaturesProto
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Allows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.boolean
Whether or not to treat an enum field as closed.Whether to nest the generated class in the generated file class.boolean
Whether to use the old default outer class name scheme, or the new feature which adds a "Proto" suffix to the outer class name.optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
boolean
Allows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.boolean
Whether or not to treat an enum field as closed.boolean
Whether to nest the generated class in the generated file class.boolean
Whether to use the old default outer class name scheme, or the new feature which adds a "Proto" suffix to the outer class name.boolean
optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasLegacyClosedEnum
boolean hasLegacyClosedEnum()Whether or not to treat an enum field as closed. This option is only applicable to enum fields, and will be removed in the future. It is consistent with the legacy behavior of using proto3 enum types for proto2 fields.
optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
- Returns:
- Whether the legacyClosedEnum field is set.
-
getLegacyClosedEnum
boolean getLegacyClosedEnum()Whether or not to treat an enum field as closed. This option is only applicable to enum fields, and will be removed in the future. It is consistent with the legacy behavior of using proto3 enum types for proto2 fields.
optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
- Returns:
- The legacyClosedEnum.
-
hasUtf8Validation
boolean hasUtf8Validation()optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
- Returns:
- Whether the utf8Validation field is set.
-
getUtf8Validation
JavaFeaturesProto.JavaFeatures.Utf8Validation getUtf8Validation()optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
- Returns:
- The utf8Validation.
-
hasLargeEnum
boolean hasLargeEnum()Allows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.
optional bool large_enum = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
- Returns:
- Whether the largeEnum field is set.
-
getLargeEnum
boolean getLargeEnum()Allows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.
optional bool large_enum = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
- Returns:
- The largeEnum.
-
hasUseOldOuterClassnameDefault
boolean hasUseOldOuterClassnameDefault()Whether to use the old default outer class name scheme, or the new feature which adds a "Proto" suffix to the outer class name. Users will not be able to set this option, because we removed it in the same edition that it was introduced. But we use it to determine which naming scheme to use for outer class name defaults.
optional bool use_old_outer_classname_default = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
- Returns:
- Whether the useOldOuterClassnameDefault field is set.
-
getUseOldOuterClassnameDefault
boolean getUseOldOuterClassnameDefault()Whether to use the old default outer class name scheme, or the new feature which adds a "Proto" suffix to the outer class name. Users will not be able to set this option, because we removed it in the same edition that it was introduced. But we use it to determine which naming scheme to use for outer class name defaults.
optional bool use_old_outer_classname_default = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
- Returns:
- The useOldOuterClassnameDefault.
-
hasNestInFileClass
boolean hasNestInFileClass()Whether to nest the generated class in the generated file class. This is only applicable to *top-level* messages, enums, and services.
optional .pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }
- Returns:
- Whether the nestInFileClass field is set.
-
getNestInFileClass
JavaFeaturesProto.JavaFeatures.NestInFileClassFeature.NestInFileClass getNestInFileClass()Whether to nest the generated class in the generated file class. This is only applicable to *top-level* messages, enums, and services.
optional .pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }
- Returns:
- The nestInFileClass.
-