public static final class DescriptorProtos.FileOptions extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FileOptions> 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.
|
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWriter
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
CC_GENERIC_SERVICES_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 |
OPTIMIZE_FOR_FIELD_NUMBER |
static com.google.protobuf.Parser<DescriptorProtos.FileOptions> |
PARSER
Deprecated.
|
static int |
PY_GENERIC_SERVICES_FIELD_NUMBER |
static int |
UNINTERPRETED_OPTION_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
getCcGenericServices()
Should generic services be generated in each language? "Generic" services
are not specific to any particular RPC system.
|
static DescriptorProtos.FileOptions |
getDefaultInstance() |
DescriptorProtos.FileOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getGoPackage()
Sets the Go package where structs generated from this .proto will be
placed.
|
com.google.protobuf.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.
|
com.google.protobuf.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.
|
com.google.protobuf.ByteString |
getJavaPackageBytes()
Sets the Java package where classes generated from this .proto will be
placed.
|
DescriptorProtos.FileOptions.OptimizeMode |
getOptimizeFor()
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
com.google.protobuf.Parser<DescriptorProtos.FileOptions> |
getParserForType() |
boolean |
getPyGenericServices()
optional bool py_generic_services = 18 [default = false]; |
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasCcGenericServices()
Should generic services be generated in each language? "Generic" services
are not specific to any particular RPC system.
|
boolean |
hasGoPackage()
Sets the Go package where structs generated from this .proto will be
placed.
|
int |
hashCode() |
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 |
hasOptimizeFor()
optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; |
boolean |
hasPyGenericServices()
optional bool py_generic_services = 18 [default = false]; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DescriptorProtos.FileOptions.Builder |
newBuilder() |
static DescriptorProtos.FileOptions.Builder |
newBuilder(DescriptorProtos.FileOptions prototype) |
DescriptorProtos.FileOptions.Builder |
newBuilderForType() |
protected DescriptorProtos.FileOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static DescriptorProtos.FileOptions |
parseDelimitedFrom(InputStream input) |
static DescriptorProtos.FileOptions |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(byte[] data) |
static DescriptorProtos.FileOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(ByteBuffer data) |
static DescriptorProtos.FileOptions |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(com.google.protobuf.ByteString data) |
static DescriptorProtos.FileOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DescriptorProtos.FileOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.FileOptions |
parseFrom(InputStream input) |
static DescriptorProtos.FileOptions |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DescriptorProtos.FileOptions> |
parser() |
DescriptorProtos.FileOptions.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
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 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 UNINTERPRETED_OPTION_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<DescriptorProtos.FileOptions> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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 com.google.protobuf.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 com.google.protobuf.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 is purely a speed optimization, as the AbstractMessage base class includes reflection-based implementations of these methods.
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 is purely a speed optimization, as the AbstractMessage base class includes reflection-based implementations of these methods.
optional bool java_generate_equals_and_hash = 20 [default = false];
getJavaGenerateEqualsAndHash
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. There is no default.
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. There is no default.
optional string go_package = 11;
getGoPackage
in interface DescriptorProtos.FileOptionsOrBuilder
public com.google.protobuf.ByteString getGoPackageBytes()
Sets the Go package where structs generated from this .proto will be placed. There is no default.
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 proto2. 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 proto2. 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 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;
getUninterpretedOptionOrBuilderList
in interface DescriptorProtos.FileOptionsOrBuilder
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;
getUninterpretedOptionOrBuilder
in interface DescriptorProtos.FileOptionsOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FileOptions>
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static DescriptorProtos.FileOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.FileOptions parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.FileOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FileOptions parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.FileOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.FileOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.FileOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public DescriptorProtos.FileOptions.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static DescriptorProtos.FileOptions.Builder newBuilder()
public static DescriptorProtos.FileOptions.Builder newBuilder(DescriptorProtos.FileOptions prototype)
public DescriptorProtos.FileOptions.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected DescriptorProtos.FileOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static DescriptorProtos.FileOptions getDefaultInstance()
public static com.google.protobuf.Parser<DescriptorProtos.FileOptions> parser()
public com.google.protobuf.Parser<DescriptorProtos.FileOptions> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public DescriptorProtos.FileOptions getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.FileOptions>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2013–2019 Bitcoin Solutions Ltd. All rights reserved.