Package com.google.protobuf
Class JavaFeaturesProto.JavaFeatures
java.lang.Object
com.google.protobuf.AbstractMessageLite<JavaFeaturesProto.JavaFeatures,JavaFeaturesProto.JavaFeatures.Builder>
com.google.protobuf.GeneratedMessageLite<JavaFeaturesProto.JavaFeatures,JavaFeaturesProto.JavaFeatures.Builder>
com.google.protobuf.JavaFeaturesProto.JavaFeatures
- All Implemented Interfaces:
JavaFeaturesProto.JavaFeaturesOrBuilder,MessageLite,MessageLiteOrBuilder
- Enclosing class:
JavaFeaturesProto
public static final class JavaFeaturesProto.JavaFeatures
extends GeneratedMessageLite<JavaFeaturesProto.JavaFeatures,JavaFeaturesProto.JavaFeatures.Builder>
implements JavaFeaturesProto.JavaFeaturesOrBuilder
Protobuf type
pb.JavaFeatures-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typepb.JavaFeaturesstatic final classProtobuf typepb.JavaFeatures.NestInFileClassFeaturestatic interfacestatic enumThe UTF8 validation strategy to use.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, GeneratedMessageLite.ExtensionDescriptor, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite, Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final JavaFeaturesProto.JavaFeaturesstatic final intprivate booleanstatic final intprivate booleanstatic final intprivate intprivate static Parser<JavaFeaturesProto.JavaFeatures> static final intprivate booleanstatic final intprivate intFields inherited from class com.google.protobuf.GeneratedMessageLite
UNINITIALIZED_HASH_CODE, UNINITIALIZED_SERIALIZED_SIZE, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidAllows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.private voidWhether or not to treat an enum field as closed.private voidWhether to nest the generated class in the generated file class.private voidWhether to use the old default outer class name scheme, or the new feature which adds a "Proto" suffix to the outer class name.private voidoptional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...protected final ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.booleanAllows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.booleanWhether or not to treat an enum field as closed.Whether to nest the generated class in the generated file class.booleanWhether 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 = { ...booleanAllows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.booleanWhether or not to treat an enum field as closed.booleanWhether to nest the generated class in the generated file class.booleanWhether to use the old default outer class name scheme, or the new feature which adds a "Proto" suffix to the outer class name.booleanoptional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...newBuilder(JavaFeaturesProto.JavaFeatures prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) parseFrom(ByteString data) parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) parseFrom(CodedInputStream input) parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) static Parser<JavaFeaturesProto.JavaFeatures> parser()private voidsetLargeEnum(boolean value) Allows creation of large Java enums, extending beyond the standard constant limits imposed by the Java language.private voidsetLegacyClosedEnum(boolean value) Whether or not to treat an enum field as closed.private voidWhether to nest the generated class in the generated file class.private voidsetUseOldOuterClassnameDefault(boolean value) Whether to use the old default outer class name scheme, or the new feature which adds a "Proto" suffix to the outer class name.private voidoptional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...Methods inherited from class com.google.protobuf.GeneratedMessageLite
buildMessageInfo, clearMemoizedHashCode, clearMemoizedSerializedSize, computeHashCode, createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstance, getDefaultInstanceForType, getMemoizedHashCode, getMemoizedSerializedSize, getMethodOrDie, getParserForType, getSerializedSize, getSerializedSize, hashCode, hashCodeIsNotMemoized, invokeOrDie, isInitialized, isMutable, makeImmutable, markImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newMutableInstance, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, setMemoizedHashCode, setMemoizedSerializedSize, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, newUninitializedMessageException, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
bitField0_
private int bitField0_ -
LEGACY_CLOSED_ENUM_FIELD_NUMBER
public static final int LEGACY_CLOSED_ENUM_FIELD_NUMBER- See Also:
-
legacyClosedEnum_
private boolean legacyClosedEnum_ -
UTF8_VALIDATION_FIELD_NUMBER
public static final int UTF8_VALIDATION_FIELD_NUMBER- See Also:
-
utf8Validation_
private int utf8Validation_ -
LARGE_ENUM_FIELD_NUMBER
public static final int LARGE_ENUM_FIELD_NUMBER- See Also:
-
largeEnum_
private boolean largeEnum_ -
USE_OLD_OUTER_CLASSNAME_DEFAULT_FIELD_NUMBER
public static final int USE_OLD_OUTER_CLASSNAME_DEFAULT_FIELD_NUMBER- See Also:
-
useOldOuterClassnameDefault_
private boolean useOldOuterClassnameDefault_ -
NEST_IN_FILE_CLASS_FIELD_NUMBER
public static final int NEST_IN_FILE_CLASS_FIELD_NUMBER- See Also:
-
nestInFileClass_
private int nestInFileClass_ -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
JavaFeatures
private JavaFeatures()
-
-
Method Details
-
hasLegacyClosedEnum
public 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 = { ... }- Specified by:
hasLegacyClosedEnumin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- Whether the legacyClosedEnum field is set.
-
getLegacyClosedEnum
public 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 = { ... }- Specified by:
getLegacyClosedEnumin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- The legacyClosedEnum.
-
setLegacyClosedEnum
private void setLegacyClosedEnum(boolean value) 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 = { ... }- Parameters:
value- The legacyClosedEnum to set.
-
clearLegacyClosedEnum
private void clearLegacyClosedEnum()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 = { ... } -
hasUtf8Validation
public boolean hasUtf8Validation()optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
hasUtf8Validationin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- Whether the utf8Validation field is set.
-
getUtf8Validation
optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
getUtf8Validationin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- The utf8Validation.
-
setUtf8Validation
optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Parameters:
value- The utf8Validation to set.
-
clearUtf8Validation
private void clearUtf8Validation()optional .pb.JavaFeatures.Utf8Validation utf8_validation = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... } -
hasLargeEnum
public 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 = { ... }- Specified by:
hasLargeEnumin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- Whether the largeEnum field is set.
-
getLargeEnum
public 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 = { ... }- Specified by:
getLargeEnumin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- The largeEnum.
-
setLargeEnum
private void setLargeEnum(boolean value) 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 = { ... }- Parameters:
value- The largeEnum to set.
-
clearLargeEnum
private void clearLargeEnum()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 = { ... } -
hasUseOldOuterClassnameDefault
public 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 = { ... }- Specified by:
hasUseOldOuterClassnameDefaultin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- Whether the useOldOuterClassnameDefault field is set.
-
getUseOldOuterClassnameDefault
public 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 = { ... }- Specified by:
getUseOldOuterClassnameDefaultin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- The useOldOuterClassnameDefault.
-
setUseOldOuterClassnameDefault
private void setUseOldOuterClassnameDefault(boolean value) 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 = { ... }- Parameters:
value- The useOldOuterClassnameDefault to set.
-
clearUseOldOuterClassnameDefault
private void clearUseOldOuterClassnameDefault()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 = { ... } -
hasNestInFileClass
public 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_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }- Specified by:
hasNestInFileClassin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- Whether the nestInFileClass field is set.
-
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_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }- Specified by:
getNestInFileClassin interfaceJavaFeaturesProto.JavaFeaturesOrBuilder- Returns:
- The nestInFileClass.
-
setNestInFileClass
private void setNestInFileClass(JavaFeaturesProto.JavaFeatures.NestInFileClassFeature.NestInFileClass value) 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_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... }- Parameters:
value- The nestInFileClass to set.
-
clearNestInFileClass
private void clearNestInFileClass()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_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_SERVICE, edition_defaults = { ... } -
parseFrom
public static JavaFeaturesProto.JavaFeatures parseFrom(ByteBuffer data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static JavaFeaturesProto.JavaFeatures parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static JavaFeaturesProto.JavaFeatures parseFrom(ByteString data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static JavaFeaturesProto.JavaFeatures parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static JavaFeaturesProto.JavaFeatures parseFrom(byte[] data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static JavaFeaturesProto.JavaFeatures parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static JavaFeaturesProto.JavaFeatures parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static JavaFeaturesProto.JavaFeatures parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static JavaFeaturesProto.JavaFeatures parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static JavaFeaturesProto.JavaFeatures parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static JavaFeaturesProto.JavaFeatures.Builder newBuilder(JavaFeaturesProto.JavaFeatures prototype) -
dynamicMethod
protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) Description copied from class:GeneratedMessageLiteA method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.NEW_INSTANCEreturns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE.IS_INITIALIZEDreturnsnullfor false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZEDreturns the memoizedisInitializedbyte value.SET_MEMOIZED_IS_INITIALIZEDsets the memoizedisInitializedbyte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDERreturns aBuilderTypeinstance.
For use by generated code only.
- Specified by:
dynamicMethodin classGeneratedMessageLite<JavaFeaturesProto.JavaFeatures,JavaFeaturesProto.JavaFeatures.Builder>
-
getDefaultInstance
-
parser
-