public static final class DescriptorProtos.FileOptions extends GeneratedMessageLite.ExtendableMessage<DescriptorProtos.FileOptions,DescriptorProtos.FileOptions.Builder> implements DescriptorProtos.FileOptionsOrBuilder
google.protobuf.FileOptions
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorProtos.FileOptions.Builder
Protobuf type
google.protobuf.FileOptions |
static class |
DescriptorProtos.FileOptions.OptimizeMode
Generated classes can be optimized for speed or code size.
|
GeneratedMessageLite.ExtendableMessage.ExtensionWriter
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.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MergeFromVisitor, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm, GeneratedMessageLite.Visitor
Modifier and Type | Field and Description |
---|---|
static int |
CC_ENABLE_ARENAS_FIELD_NUMBER |
static int |
CC_GENERIC_SERVICES_FIELD_NUMBER |
static int |
CSHARP_NAMESPACE_FIELD_NUMBER |
static int |
DEPRECATED_FIELD_NUMBER |
static int |
GO_PACKAGE_FIELD_NUMBER |
static int |
JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER |
static int |
JAVA_GENERIC_SERVICES_FIELD_NUMBER |
static int |
JAVA_MULTIPLE_FILES_FIELD_NUMBER |
static int |
JAVA_OUTER_CLASSNAME_FIELD_NUMBER |
static int |
JAVA_PACKAGE_FIELD_NUMBER |
static int |
JAVA_STRING_CHECK_UTF8_FIELD_NUMBER |
static int |
OBJC_CLASS_PREFIX_FIELD_NUMBER |
static int |
OPTIMIZE_FOR_FIELD_NUMBER |
static int |
PY_GENERIC_SERVICES_FIELD_NUMBER |
static int |
UNINTERPRETED_OPTION_FIELD_NUMBER |
extensions
memoizedSerializedSize, unknownFields
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
protected Object |
dynamicMethod(GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1)
A method that implements different types of operations described in
GeneratedMessageLite.MethodToInvoke . |
boolean |
getCcEnableArenas()
Enables the use of arenas for the proto messages in this file.
|
boolean |
getCcGenericServices()
Should generic services be generated in each language? "Generic" services
are not specific to any particular RPC system.
|
String |
getCsharpNamespace()
Namespace for generated classes; defaults to the package.
|
ByteString |
getCsharpNamespaceBytes()
Namespace for generated classes; defaults to the package.
|
static DescriptorProtos.FileOptions |
getDefaultInstance() |
boolean |
getDeprecated()
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
|
String |
getGoPackage()
Sets the Go package where structs generated from this .proto will be
placed.
|
ByteString |
getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be
placed.
|
boolean |
getJavaGenerateEqualsAndHash()
If set true, then the Java code generator will generate equals() and
hashCode() methods for all messages defined in the .proto file.
|
boolean |
getJavaGenericServices()
optional bool java_generic_services = 17 [default = false]; |
boolean |
getJavaMultipleFiles()
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.
|
String |
getJavaOuterClassname()
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.
|
ByteString |
getJavaOuterClassnameBytes()
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.
|
String |
getJavaPackage()
Sets the Java package where classes generated from this .proto will be
placed.
|
ByteString |
getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be
placed.
|
boolean |
getJavaStringCheckUtf8()
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
|
String |
getObjcClassPrefix()
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto.
|
ByteString |
getObjcClassPrefixBytes()
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto.
|
DescriptorProtos.FileOptions.OptimizeMode |
getOptimizeFor()
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
boolean |
getPyGenericServices()
optional bool py_generic_services = 18 [default = false]; |
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
DescriptorProtos.UninterpretedOption |
getUninterpretedOption(int index)
The parser stores options it doesn't recognize here.
|
int |
getUninterpretedOptionCount()
The parser stores options it doesn't recognize here.
|
List<DescriptorProtos.UninterpretedOption> |
getUninterpretedOptionList()
The parser stores options it doesn't recognize here.
|
DescriptorProtos.UninterpretedOptionOrBuilder |
getUninterpretedOptionOrBuilder(int index)
The parser stores options it doesn't recognize here.
|
List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> |
getUninterpretedOptionOrBuilderList()
The parser stores options it doesn't recognize here.
|
boolean |
hasCcEnableArenas()
Enables the use of arenas for the proto messages in this file.
|
boolean |
hasCcGenericServices()
Should generic services be generated in each language? "Generic" services
are not specific to any particular RPC system.
|
boolean |
hasCsharpNamespace()
Namespace for generated classes; defaults to the package.
|
boolean |
hasDeprecated()
Is this file deprecated?
Depending on the target platform, this can emit Deprecated annotations
for everything in the file, or it will be completely ignored; in the very
least, this is a formalization for deprecating files.
|
boolean |
hasGoPackage()
Sets the Go package where structs generated from this .proto will be
placed.
|
boolean |
hasJavaGenerateEqualsAndHash()
If set true, then the Java code generator will generate equals() and
hashCode() methods for all messages defined in the .proto file.
|
boolean |
hasJavaGenericServices()
optional bool java_generic_services = 17 [default = false]; |
boolean |
hasJavaMultipleFiles()
If set true, then the Java code generator will generate a separate .java
file for each top-level message, enum, and service defined in the .proto
file.
|
boolean |
hasJavaOuterClassname()
If set, all the classes from the .proto file are wrapped in a single
outer class with the given name.
|
boolean |
hasJavaPackage()
Sets the Java package where classes generated from this .proto will be
placed.
|
boolean |
hasJavaStringCheckUtf8()
If set true, then the Java2 code generator will generate code that
throws an exception whenever an attempt is made to assign a non-UTF-8
byte sequence to a string field.
|
boolean |
hasObjcClassPrefix()
Sets the objective c class prefix which is prepended to all objective c
generated classes from this .proto.
|
boolean |
hasOptimizeFor()
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
boolean |
hasPyGenericServices()
optional bool py_generic_services = 18 [default = false]; |
static DescriptorProtos.FileOptions.Builder |
newBuilder() |
static DescriptorProtos.FileOptions.Builder |
newBuilder(DescriptorProtos.FileOptions prototype) |
static DescriptorProtos.FileOptions |
parseDelimitedFrom(InputStream input) |
static DescriptorProtos.FileOptions |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(byte[] data) |
static DescriptorProtos.FileOptions |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(ByteString data) |
static DescriptorProtos.FileOptions |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(CodedInputStream input) |
static DescriptorProtos.FileOptions |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(InputStream input) |
static DescriptorProtos.FileOptions |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DescriptorProtos.FileOptions> |
parser() |
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output . |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getExtension, getExtension, getExtensionCount, hasExtension, makeImmutable, mergeExtensionFields, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField
dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, toBuilder, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtensionCount, hasExtension
getDefaultInstanceForType, isInitialized
public static final int JAVA_PACKAGE_FIELD_NUMBER
public static final int JAVA_OUTER_CLASSNAME_FIELD_NUMBER
public static final int JAVA_MULTIPLE_FILES_FIELD_NUMBER
public static final int JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER
public static final int JAVA_STRING_CHECK_UTF8_FIELD_NUMBER
public static final int OPTIMIZE_FOR_FIELD_NUMBER
public static final int GO_PACKAGE_FIELD_NUMBER
public static final int CC_GENERIC_SERVICES_FIELD_NUMBER
public static final int JAVA_GENERIC_SERVICES_FIELD_NUMBER
public static final int PY_GENERIC_SERVICES_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
public static final int CC_ENABLE_ARENAS_FIELD_NUMBER
public static final int OBJC_CLASS_PREFIX_FIELD_NUMBER
public static final int CSHARP_NAMESPACE_FIELD_NUMBER
public static final int UNINTERPRETED_OPTION_FIELD_NUMBER
public boolean hasJavaPackage()
Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.
optional string java_package = 1;
hasJavaPackage
in interface DescriptorProtos.FileOptionsOrBuilder
public String getJavaPackage()
Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.
optional string java_package = 1;
getJavaPackage
in interface DescriptorProtos.FileOptionsOrBuilder
public ByteString getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be placed. By default, the proto package is used, but this is often inappropriate because proto packages do not normally start with backwards domain names.
optional string java_package = 1;
getJavaPackageBytes
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasJavaOuterClassname()
If set, all the classes from the .proto file are wrapped in a single outer class with the given name. This applies to both Proto1 (equivalent to the old "--one_java_file" option) and Proto2 (where a .proto always translates to a single class, but you may want to explicitly choose the class name).
optional string java_outer_classname = 8;
hasJavaOuterClassname
in interface DescriptorProtos.FileOptionsOrBuilder
public String getJavaOuterClassname()
If set, all the classes from the .proto file are wrapped in a single outer class with the given name. This applies to both Proto1 (equivalent to the old "--one_java_file" option) and Proto2 (where a .proto always translates to a single class, but you may want to explicitly choose the class name).
optional string java_outer_classname = 8;
getJavaOuterClassname
in interface DescriptorProtos.FileOptionsOrBuilder
public ByteString getJavaOuterClassnameBytes()
If set, all the classes from the .proto file are wrapped in a single outer class with the given name. This applies to both Proto1 (equivalent to the old "--one_java_file" option) and Proto2 (where a .proto always translates to a single class, but you may want to explicitly choose the class name).
optional string java_outer_classname = 8;
getJavaOuterClassnameBytes
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasJavaMultipleFiles()
If set true, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will *not* be nested inside the outer class named by java_outer_classname. However, the outer class will still be generated to contain the file's getDescriptor() method as well as any top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
hasJavaMultipleFiles
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean getJavaMultipleFiles()
If set true, then the Java code generator will generate a separate .java file for each top-level message, enum, and service defined in the .proto file. Thus, these types will *not* be nested inside the outer class named by java_outer_classname. However, the outer class will still be generated to contain the file's getDescriptor() method as well as any top-level extensions defined in the file.
optional bool java_multiple_files = 10 [default = false];
getJavaMultipleFiles
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasJavaGenerateEqualsAndHash()
If set true, then the Java code generator will generate equals() and hashCode() methods for all messages defined in the .proto file. This increases generated code size, potentially substantially for large protos, which may harm a memory-constrained application. - In the full runtime this is a speed optimization, as the AbstractMessage base class includes reflection-based implementations of these methods. - In the lite runtime, setting this option changes the semantics of equals() and hashCode() to more closely match those of the full runtime; the generated methods compute their results based on field values rather than object identity. (Implementations should not assume that hashcodes will be consistent across runtimes or versions of the protocol compiler.)
optional bool java_generate_equals_and_hash = 20 [default = false];
hasJavaGenerateEqualsAndHash
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean getJavaGenerateEqualsAndHash()
If set true, then the Java code generator will generate equals() and hashCode() methods for all messages defined in the .proto file. This increases generated code size, potentially substantially for large protos, which may harm a memory-constrained application. - In the full runtime this is a speed optimization, as the AbstractMessage base class includes reflection-based implementations of these methods. - In the lite runtime, setting this option changes the semantics of equals() and hashCode() to more closely match those of the full runtime; the generated methods compute their results based on field values rather than object identity. (Implementations should not assume that hashcodes will be consistent across runtimes or versions of the protocol compiler.)
optional bool java_generate_equals_and_hash = 20 [default = false];
getJavaGenerateEqualsAndHash
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasJavaStringCheckUtf8()
If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field. Message reflection will do the same. However, an extension field still accepts non-UTF-8 byte sequences. This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
hasJavaStringCheckUtf8
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean getJavaStringCheckUtf8()
If set true, then the Java2 code generator will generate code that throws an exception whenever an attempt is made to assign a non-UTF-8 byte sequence to a string field. Message reflection will do the same. However, an extension field still accepts non-UTF-8 byte sequences. This option has no effect on when used with the lite runtime.
optional bool java_string_check_utf8 = 27 [default = false];
getJavaStringCheckUtf8
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasOptimizeFor()
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
hasOptimizeFor
in interface DescriptorProtos.FileOptionsOrBuilder
public DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor()
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
getOptimizeFor
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasGoPackage()
Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following: - The basename of the package import path, if provided. - Otherwise, the package statement in the .proto file, if present. - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
hasGoPackage
in interface DescriptorProtos.FileOptionsOrBuilder
public String getGoPackage()
Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following: - The basename of the package import path, if provided. - Otherwise, the package statement in the .proto file, if present. - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
getGoPackage
in interface DescriptorProtos.FileOptionsOrBuilder
public ByteString getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be placed. If omitted, the Go package will be derived from the following: - The basename of the package import path, if provided. - Otherwise, the package statement in the .proto file, if present. - Otherwise, the basename of the .proto file, without extension.
optional string go_package = 11;
getGoPackageBytes
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasCcGenericServices()
Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins). Generic services were the only kind of service generation supported by early versions of google.protobuf. Generic services are now considered deprecated in favor of using plugins that generate code specific to your particular RPC system. Therefore, these default to false. Old code which depends on generic services should explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
hasCcGenericServices
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean getCcGenericServices()
Should generic services be generated in each language? "Generic" services are not specific to any particular RPC system. They are generated by the main code generators in each language (without additional plugins). Generic services were the only kind of service generation supported by early versions of google.protobuf. Generic services are now considered deprecated in favor of using plugins that generate code specific to your particular RPC system. Therefore, these default to false. Old code which depends on generic services should explicitly set them to true.
optional bool cc_generic_services = 16 [default = false];
getCcGenericServices
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasJavaGenericServices()
optional bool java_generic_services = 17 [default = false];
hasJavaGenericServices
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean getJavaGenericServices()
optional bool java_generic_services = 17 [default = false];
getJavaGenericServices
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasPyGenericServices()
optional bool py_generic_services = 18 [default = false];
hasPyGenericServices
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean getPyGenericServices()
optional bool py_generic_services = 18 [default = false];
getPyGenericServices
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasDeprecated()
Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
hasDeprecated
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean getDeprecated()
Is this file deprecated? Depending on the target platform, this can emit Deprecated annotations for everything in the file, or it will be completely ignored; in the very least, this is a formalization for deprecating files.
optional bool deprecated = 23 [default = false];
getDeprecated
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasCcEnableArenas()
Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
hasCcEnableArenas
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean getCcEnableArenas()
Enables the use of arenas for the proto messages in this file. This applies only to generated classes for C++.
optional bool cc_enable_arenas = 31 [default = false];
getCcEnableArenas
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasObjcClassPrefix()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
hasObjcClassPrefix
in interface DescriptorProtos.FileOptionsOrBuilder
public String getObjcClassPrefix()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
getObjcClassPrefix
in interface DescriptorProtos.FileOptionsOrBuilder
public ByteString getObjcClassPrefixBytes()
Sets the objective c class prefix which is prepended to all objective c generated classes from this .proto. There is no default.
optional string objc_class_prefix = 36;
getObjcClassPrefixBytes
in interface DescriptorProtos.FileOptionsOrBuilder
public boolean hasCsharpNamespace()
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
hasCsharpNamespace
in interface DescriptorProtos.FileOptionsOrBuilder
public String getCsharpNamespace()
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
getCsharpNamespace
in interface DescriptorProtos.FileOptionsOrBuilder
public ByteString getCsharpNamespaceBytes()
Namespace for generated classes; defaults to the package.
optional string csharp_namespace = 37;
getCsharpNamespaceBytes
in interface DescriptorProtos.FileOptionsOrBuilder
public List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
getUninterpretedOptionList
in interface DescriptorProtos.FileOptionsOrBuilder
public List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
public int getUninterpretedOptionCount()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
getUninterpretedOptionCount
in interface DescriptorProtos.FileOptionsOrBuilder
public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
getUninterpretedOption
in interface DescriptorProtos.FileOptionsOrBuilder
public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
public void writeTo(CodedOutputStream output) throws IOException
MessageLite
output
. This does not
flush or close the stream.writeTo
in interface MessageLite
IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
public static DescriptorProtos.FileOptions parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.FileOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FileOptions parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.FileOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FileOptions parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.FileOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FileOptions.Builder newBuilder()
public static DescriptorProtos.FileOptions.Builder newBuilder(DescriptorProtos.FileOptions prototype)
protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
GeneratedMessageLite
GeneratedMessageLite.MethodToInvoke
.
Theses 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.
MERGE_FROM_STREAM
is parameterized with an CodedInputStream
and
ExtensionRegistryLite
. It consumes the input stream, parsing the contents into the
returned protocol buffer. If parsing throws an InvalidProtocolBufferException
, the
implementation wraps it in a RuntimeException.
NEW_INSTANCE
returns a new instance of the protocol buffer that has not yet been
made immutable. See MAKE_IMMUTABLE
.
IS_INITIALIZED
is parameterized with a Boolean
detailing whether to
memoize. It returns null
for false and the default instance for true. We optionally
memoize to support the Builder case, where memoization is not desired.
NEW_BUILDER
returns a BuilderType
instance.
VISIT
is parameterized with a Visitor
and a MessageType
and
recursively iterates through the fields side by side between this and the instance.
MAKE_IMMUTABLE
sets all internal fields to an immutable state.
For use by generated code only.
dynamicMethod
in class GeneratedMessageLite<DescriptorProtos.FileOptions,DescriptorProtos.FileOptions.Builder>
public static DescriptorProtos.FileOptions getDefaultInstance()
public static Parser<DescriptorProtos.FileOptions> parser()
Copyright © 2008–2016 Google. All rights reserved.