id
stringlengths
36
36
text
stringlengths
1
1.25M
b3a34c13-7e43-4009-89de-812f8674dd32
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof StandardZoneRules) { StandardZoneRules other = (StandardZoneRules) obj; return Arrays.equals(this.standardTransitions, other.standardTransitions) && Arrays.equals(this.standardOffsets, other.standardOffsets) && Arrays.equals(this.savingsInstantTransitions, other.savingsInstantTransitions) && Arrays.equals(this.wallOffsets, other.wallOffsets) && Arrays.equals(this.lastRules, other.lastRules); } return false; }
47d1b599-5ded-4e0d-96a0-ee79a01d0d91
public void setCustomNumber5(crmondemand.xml.customobject6.query.QueryType customNumber5) { this.customNumber5 = customNumber5; }
6cceaec6-8a8a-4077-9e07-424428b3b115
public void setCustomDate9(crmondemand.xml.contact.query.QueryType customDate9) { this.customDate9 = customDate9; }
ad507d6b-dcd1-4c68-89d6-97aa55a25bbe
public crmondemand.xml.opportunity.query.QueryType getCustomObject9IntegrationId() { return this.customObject9IntegrationId; }
789a2c9f-4b51-4e4b-bdc2-bb0b0a57740e
public java.lang.String getCustomPickList111() { return this.customPickList111; }
78cf81a3-cc0b-4d63-9871-2bfc6a3a92af
public void setCustomPickList3(crmondemand.xml.customobject6.query.QueryType customPickList3) { this.customPickList3 = customPickList3; }
22572332-b208-47f6-875c-726871b9e787
public java.lang.Integer getCustomInteger33() { return this.customInteger33; }
c71d7430-4208-4985-af46-f24cf32b622a
public void setAccountReference(crmondemand.xml.contact.query.QueryType accountReference) { this.accountReference = accountReference; }
d641167a-b0e1-4161-a56f-3e408dbde3a2
public java.lang.String getCustomPickList25() { return this.customPickList25; }
068c298a-97be-4b39-8ea2-bec0d93b16f9
public crmondemand.xml.customobject6.query.QueryType getCustomDate16() { return this.customDate16; }
4ddc9a8a-5058-411b-84b4-061647621e08
public java.lang.String getCustomObject2Id() { return this.customObject2Id; }
b4143a1b-6f7f-4454-b3fc-eb943c09c932
public void setCustomPhone17(java.lang.String customPhone17) { this.customPhone17 = customPhone17; }
1f3340e7-71b1-4c48-9878-bf6e53d04e27
public java.lang.String getIndexedPick4() { return this.indexedPick4; }
0eb259a8-7660-4fe8-ac47-2a88a0e98feb
public java.math.BigDecimal getCustomCurrency11() { return this.customCurrency11; }
39b2228d-a8b7-455f-81de-d7142d93c5af
public void setCustomPickList99(crmondemand.xml.contact.query.QueryType customPickList99) { this.customPickList99 = customPickList99; }
2cdb434a-2400-48af-a97d-5f67e3bd7996
public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(CS355Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(CS355Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(CS355Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(CS355Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new CS355Frame(null, null, null, null).setVisible(true); } }); }
e4e91c6b-15a1-4ef9-9b5f-1505ba41f24a
public java.lang.String getCustomObject3Name() { return this.customObject3Name; }
09cc042d-c676-4df4-b81a-7c079ec6e5ff
public int abspx_yScreenCenter(){ return px_yOffset + px_DEFAULT_SCREEN_HEIGHT/2; }
e4a9531b-10b2-48f6-9b3d-c74b4ff5ed8a
public void setCustomNumber16(java.math.BigDecimal customNumber16) { this.customNumber16 = customNumber16; }
e6f8d385-f039-4fe4-9172-ece0ae6ac682
public void setFormat(String format) { formatString = format; formatter = (format == null) ? null : new DecimalFormat(format); try { setValue(Double.valueOf(getText().trim()).doubleValue()); } catch (NumberFormatException ex) { /* Empty */ } }
67f9c391-4ba6-4556-8c82-3fbc7f5388d0
public Builder addAllStartLocations( java.lang.Iterable<? extends org.bwapi.proxy.messages.BasicTypes.TilePosition> values) { if (startLocationsBuilder_ == null) { ensureStartLocationsIsMutable(); super.addAll(values, startLocations_); onChanged(); } else { startLocationsBuilder_.addAllMessages(values); } return this; }
d949be39-ab01-4a8c-a321-dd736e458f58
public void setCustomObject3ExternalSystemId(crmondemand.xml.customobject3.query.QueryType customObject3ExternalSystemId) { this.customObject3ExternalSystemId = customObject3ExternalSystemId; }
8967a42b-a25b-489f-96ac-307639901424
public void setCustomBoolean15(crmondemand.xml.opportunity.query.QueryType customBoolean15) { this.customBoolean15 = customBoolean15; }
939e7c22-5dd7-4ae7-8b50-ea950778b046
public java.lang.String getCustomPickList4() { return this.customPickList4; }
7f706320-ed61-40be-81cb-4ec64b9da922
public void setCustomPickList73(java.lang.String customPickList73) { this.customPickList73 = customPickList73; }
a1e51152-8fd0-4770-818a-9ebfde3f5303
public java.lang.Integer getCustomInteger13() { return this.customInteger13; }
fac7ae06-8fc0-4bf0-9dc2-8645074deace
private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.protobuf.DescriptorProtos.MethodOptions, com.google.protobuf.DescriptorProtos.MethodOptions.Builder, com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder>( options_, getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.MethodDescriptorProto) } static { defaultInstance = new MethodDescriptorProto(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto) } public interface FileOptionsOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<FileOptions> { // optional string java_package = 1; /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ boolean hasJavaPackage(); /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ java.lang.String getJavaPackage(); /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ com.google.protobuf.ByteString getJavaPackageBytes(); // optional string java_outer_classname = 8; /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ boolean hasJavaOuterClassname(); /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ java.lang.String getJavaOuterClassname(); /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ com.google.protobuf.ByteString getJavaOuterClassnameBytes(); // optional bool java_multiple_files = 10 [default = false]; /** * <code>optional bool java_multiple_files = 10 [default = false];</code> * * <pre> * 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. * </pre> */ boolean hasJavaMultipleFiles(); /** * <code>optional bool java_multiple_files = 10 [default = false];</code> * * <pre> * 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. * </pre> */ boolean getJavaMultipleFiles(); // optional bool java_generate_equals_and_hash = 20 [default = false]; /** * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> * * <pre> * 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. * </pre> */ boolean hasJavaGenerateEqualsAndHash(); /** * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> * * <pre> * 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. * </pre> */ boolean getJavaGenerateEqualsAndHash(); // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; /** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> */ boolean hasOptimizeFor(); /** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> */ com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor(); // optional string go_package = 11; /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ boolean hasGoPackage(); /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ java.lang.String getGoPackage(); /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ com.google.protobuf.ByteString getGoPackageBytes(); // optional bool cc_generic_services = 16 [default = false]; /** * <code>optional bool cc_generic_services = 16 [default = false];</code> * * <pre> * 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. * </pre> */ boolean hasCcGenericServices(); /** * <code>optional bool cc_generic_services = 16 [default = false];</code> * * <pre> * 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. * </pre> */ boolean getCcGenericServices(); // optional bool java_generic_services = 17 [default = false]; /** * <code>optional bool java_generic_services = 17 [default = false];</code> */ boolean hasJavaGenericServices(); /** * <code>optional bool java_generic_services = 17 [default = false];</code> */ boolean getJavaGenericServices(); // optional bool py_generic_services = 18 [default = false]; /** * <code>optional bool py_generic_services = 18 [default = false];</code> */ boolean hasPyGenericServices(); /** * <code>optional bool py_generic_services = 18 [default = false];</code> */ boolean getPyGenericServices(); // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ int getUninterpretedOptionCount(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); } /** * Protobuf type {@code google.protobuf.FileOptions} */ public static final class FileOptions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< FileOptions> implements FileOptionsOrBuilder { // Use FileOptions.newBuilder() to construct. private FileOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.FileOptions, ?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FileOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FileOptions defaultInstance; public static FileOptions getDefaultInstance() { return defaultInstance; } public FileOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FileOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; javaPackage_ = input.readBytes(); break; } case 66: { bitField0_ |= 0x00000002; javaOuterClassname_ = input.readBytes(); break; } case 72: { int rawValue = input.readEnum(); com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode value = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { bitField0_ |= 0x00000010; optimizeFor_ = value; } break; } case 80: { bitField0_ |= 0x00000004; javaMultipleFiles_ = input.readBool(); break; } case 90: { bitField0_ |= 0x00000020; goPackage_ = input.readBytes(); break; } case 128: { bitField0_ |= 0x00000040; ccGenericServices_ = input.readBool(); break; } case 136: { bitField0_ |= 0x00000080; javaGenericServices_ = input.readBool(); break; } case 144: { bitField0_ |= 0x00000100; pyGenericServices_ = input.readBool(); break; } case 160: { bitField0_ |= 0x00000008; javaGenerateEqualsAndHash_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000200; } uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_FileOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_FileOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FileOptions.class, com.google.protobuf.DescriptorProtos.FileOptions.Builder.class); } public static com.google.protobuf.Parser<FileOptions> PARSER = new com.google.protobuf.AbstractParser<FileOptions>() { public FileOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FileOptions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<FileOptions> getParserForType() { return PARSER; } /** * Protobuf enum {@code google.protobuf.FileOptions.OptimizeMode} * * <pre> * Generated classes can be optimized for speed or code size. * </pre> */ public enum OptimizeMode implements com.google.protobuf.ProtocolMessageEnum { /** * <code>SPEED = 1;</code> * * <pre> * Generate complete code for parsing, serialization, * </pre> */ SPEED(0, 1), /** * <code>CODE_SIZE = 2;</code> * * <pre> * etc. * </pre> */ CODE_SIZE(1, 2), /** * <code>LITE_RUNTIME = 3;</code> * * <pre> * Generate code using MessageLite and the lite runtime. * </pre> */ LITE_RUNTIME(2, 3), ; /** * <code>SPEED = 1;</code> * * <pre> * Generate complete code for parsing, serialization, * </pre> */ public static final int SPEED_VALUE = 1; /** * <code>CODE_SIZE = 2;</code> * * <pre> * etc. * </pre> */ public static final int CODE_SIZE_VALUE = 2; /** * <code>LITE_RUNTIME = 3;</code> * * <pre> * Generate code using MessageLite and the lite runtime. * </pre> */ public static final int LITE_RUNTIME_VALUE = 3; public final int getNumber() { return value; } public static OptimizeMode valueOf(int value) { switch (value) { case 1: return SPEED; case 2: return CODE_SIZE; case 3: return LITE_RUNTIME; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<OptimizeMode> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<OptimizeMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<OptimizeMode>() { public OptimizeMode findValueByNumber(int number) { return OptimizeMode.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.FileOptions.getDescriptor().getEnumTypes().get(0); } private static final OptimizeMode[] VALUES = values(); public static OptimizeMode valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private OptimizeMode(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.FileOptions.OptimizeMode) } private int bitField0_; // optional string java_package = 1; public static final int JAVA_PACKAGE_FIELD_NUMBER = 1; private java.lang.Object javaPackage_; /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public boolean hasJavaPackage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public java.lang.String getJavaPackage() { java.lang.Object ref = javaPackage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { javaPackage_ = s; } return s; } } /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public com.google.protobuf.ByteString getJavaPackageBytes() { java.lang.Object ref = javaPackage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string java_outer_classname = 8; public static final int JAVA_OUTER_CLASSNAME_FIELD_NUMBER = 8; private java.lang.Object javaOuterClassname_; /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public boolean hasJavaOuterClassname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public java.lang.String getJavaOuterClassname() { java.lang.Object ref = javaOuterClassname_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { javaOuterClassname_ = s; } return s; } } /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public com.google.protobuf.ByteString getJavaOuterClassnameBytes() { java.lang.Object ref = javaOuterClassname_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaOuterClassname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool java_multiple_files = 10 [default = false]; public static final int JAVA_MULTIPLE_FILES_FIELD_NUMBER = 10; private boolean javaMultipleFiles_; /** * <code>optional bool java_multiple_files = 10 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean hasJavaMultipleFiles() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool java_multiple_files = 10 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean getJavaMultipleFiles() { return javaMultipleFiles_; } // optional bool java_generate_equals_and_hash = 20 [default = false]; public static final int JAVA_GENERATE_EQUALS_AND_HASH_FIELD_NUMBER = 20; private boolean javaGenerateEqualsAndHash_; /** * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean hasJavaGenerateEqualsAndHash() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean getJavaGenerateEqualsAndHash() { return javaGenerateEqualsAndHash_; } // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; public static final int OPTIMIZE_FOR_FIELD_NUMBER = 9; private com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode optimizeFor_; /** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> */ public boolean hasOptimizeFor() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> */ public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { return optimizeFor_; } // optional string go_package = 11; public static final int GO_PACKAGE_FIELD_NUMBER = 11; private java.lang.Object goPackage_; /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public boolean hasGoPackage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public java.lang.String getGoPackage() { java.lang.Object ref = goPackage_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { goPackage_ = s; } return s; } } /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public com.google.protobuf.ByteString getGoPackageBytes() { java.lang.Object ref = goPackage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); goPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool cc_generic_services = 16 [default = false]; public static final int CC_GENERIC_SERVICES_FIELD_NUMBER = 16; private boolean ccGenericServices_; /** * <code>optional bool cc_generic_services = 16 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean hasCcGenericServices() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool cc_generic_services = 16 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean getCcGenericServices() { return ccGenericServices_; } // optional bool java_generic_services = 17 [default = false]; public static final int JAVA_GENERIC_SERVICES_FIELD_NUMBER = 17; private boolean javaGenericServices_; /** * <code>optional bool java_generic_services = 17 [default = false];</code> */ public boolean hasJavaGenericServices() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional bool java_generic_services = 17 [default = false];</code> */ public boolean getJavaGenericServices() { return javaGenericServices_; } // optional bool py_generic_services = 18 [default = false]; public static final int PY_GENERIC_SERVICES_FIELD_NUMBER = 18; private boolean pyGenericServices_; /** * <code>optional bool py_generic_services = 18 [default = false];</code> */ public boolean hasPyGenericServices() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional bool py_generic_services = 18 [default = false];</code> */ public boolean getPyGenericServices() { return pyGenericServices_; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private void initFields() { javaPackage_ = ""; javaOuterClassname_ = ""; javaMultipleFiles_ = false; javaGenerateEqualsAndHash_ = false; optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; goPackage_ = ""; ccGenericServices_ = false; javaGenericServices_ = false; pyGenericServices_ = false; uninterpretedOption_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage<com.google.protobuf.DescriptorProtos.FileOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getJavaPackageBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(8, getJavaOuterClassnameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeEnum(9, optimizeFor_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(10, javaMultipleFiles_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(11, getGoPackageBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(16, ccGenericServices_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(17, javaGenericServices_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { output.writeBool(18, pyGenericServices_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(20, javaGenerateEqualsAndHash_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getJavaPackageBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getJavaOuterClassnameBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, optimizeFor_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, javaMultipleFiles_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getGoPackageBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(16, ccGenericServices_); } if (((bitField0_ & 0x00000080) == 0x00000080)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, javaGenericServices_); } if (((bitField0_ & 0x00000100) == 0x00000100)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(18, pyGenericServices_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, javaGenerateEqualsAndHash_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.FileOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.FileOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FileOptions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.FileOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< com.google.protobuf.DescriptorProtos.FileOptions, Builder> implements com.google.protobuf.DescriptorProtos.FileOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_FileOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_FileOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FileOptions.class, com.google.protobuf.DescriptorProtos.FileOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.FileOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); javaPackage_ = ""; bitField0_ = (bitField0_ & ~0x00000001); javaOuterClassname_ = ""; bitField0_ = (bitField0_ & ~0x00000002); javaMultipleFiles_ = false; bitField0_ = (bitField0_ & ~0x00000004); javaGenerateEqualsAndHash_ = false; bitField0_ = (bitField0_ & ~0x00000008); optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; bitField0_ = (bitField0_ & ~0x00000010); goPackage_ = ""; bitField0_ = (bitField0_ & ~0x00000020); ccGenericServices_ = false; bitField0_ = (bitField0_ & ~0x00000040); javaGenericServices_ = false; bitField0_ = (bitField0_ & ~0x00000080); pyGenericServices_ = false; bitField0_ = (bitField0_ & ~0x00000100); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); } else { uninterpretedOptionBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_FileOptions_descriptor; } public com.google.protobuf.DescriptorProtos.FileOptions getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.FileOptions build() { com.google.protobuf.DescriptorProtos.FileOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.FileOptions buildPartial() { com.google.protobuf.DescriptorProtos.FileOptions result = new com.google.protobuf.DescriptorProtos.FileOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.javaPackage_ = javaPackage_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.javaOuterClassname_ = javaOuterClassname_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.javaMultipleFiles_ = javaMultipleFiles_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.javaGenerateEqualsAndHash_ = javaGenerateEqualsAndHash_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.optimizeFor_ = optimizeFor_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.goPackage_ = goPackage_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000040; } result.ccGenericServices_ = ccGenericServices_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000080; } result.javaGenericServices_ = javaGenericServices_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000100; } result.pyGenericServices_ = pyGenericServices_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000200) == 0x00000200)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000200); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.FileOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.FileOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FileOptions other) { if (other == getDefaultInstance()) return this; if (other.hasJavaPackage()) { bitField0_ |= 0x00000001; javaPackage_ = other.javaPackage_; onChanged(); } if (other.hasJavaOuterClassname()) { bitField0_ |= 0x00000002; javaOuterClassname_ = other.javaOuterClassname_; onChanged(); } if (other.hasJavaMultipleFiles()) { setJavaMultipleFiles(other.getJavaMultipleFiles()); } if (other.hasJavaGenerateEqualsAndHash()) { setJavaGenerateEqualsAndHash(other.getJavaGenerateEqualsAndHash()); } if (other.hasOptimizeFor()) { setOptimizeFor(other.getOptimizeFor()); } if (other.hasGoPackage()) { bitField0_ |= 0x00000020; goPackage_ = other.goPackage_; onChanged(); } if (other.hasCcGenericServices()) { setCcGenericServices(other.getCcGenericServices()); } if (other.hasJavaGenericServices()) { setJavaGenericServices(other.getJavaGenericServices()); } if (other.hasPyGenericServices()) { setPyGenericServices(other.getPyGenericServices()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000200); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000200); uninterpretedOptionBuilder_ = alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.FileOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.FileOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional string java_package = 1; private java.lang.Object javaPackage_ = ""; /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public boolean hasJavaPackage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public java.lang.String getJavaPackage() { java.lang.Object ref = javaPackage_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); javaPackage_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public com.google.protobuf.ByteString getJavaPackageBytes() { java.lang.Object ref = javaPackage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public Builder setJavaPackage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; javaPackage_ = value; onChanged(); return this; } /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public Builder clearJavaPackage() { bitField0_ = (bitField0_ & ~0x00000001); javaPackage_ = getDefaultInstance().getJavaPackage(); onChanged(); return this; } /** * <code>optional string java_package = 1;</code> * * <pre> * 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. * </pre> */ public Builder setJavaPackageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; javaPackage_ = value; onChanged(); return this; } // optional string java_outer_classname = 8; private java.lang.Object javaOuterClassname_ = ""; /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public boolean hasJavaOuterClassname() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public java.lang.String getJavaOuterClassname() { java.lang.Object ref = javaOuterClassname_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); javaOuterClassname_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public com.google.protobuf.ByteString getJavaOuterClassnameBytes() { java.lang.Object ref = javaOuterClassname_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); javaOuterClassname_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public Builder setJavaOuterClassname( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; javaOuterClassname_ = value; onChanged(); return this; } /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public Builder clearJavaOuterClassname() { bitField0_ = (bitField0_ & ~0x00000002); javaOuterClassname_ = getDefaultInstance().getJavaOuterClassname(); onChanged(); return this; } /** * <code>optional string java_outer_classname = 8;</code> * * <pre> * 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). * </pre> */ public Builder setJavaOuterClassnameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; javaOuterClassname_ = value; onChanged(); return this; } // optional bool java_multiple_files = 10 [default = false]; private boolean javaMultipleFiles_ ; /** * <code>optional bool java_multiple_files = 10 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean hasJavaMultipleFiles() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool java_multiple_files = 10 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean getJavaMultipleFiles() { return javaMultipleFiles_; } /** * <code>optional bool java_multiple_files = 10 [default = false];</code> * * <pre> * 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. * </pre> */ public Builder setJavaMultipleFiles(boolean value) { bitField0_ |= 0x00000004; javaMultipleFiles_ = value; onChanged(); return this; } /** * <code>optional bool java_multiple_files = 10 [default = false];</code> * * <pre> * 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. * </pre> */ public Builder clearJavaMultipleFiles() { bitField0_ = (bitField0_ & ~0x00000004); javaMultipleFiles_ = false; onChanged(); return this; } // optional bool java_generate_equals_and_hash = 20 [default = false]; private boolean javaGenerateEqualsAndHash_ ; /** * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean hasJavaGenerateEqualsAndHash() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean getJavaGenerateEqualsAndHash() { return javaGenerateEqualsAndHash_; } /** * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> * * <pre> * 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. * </pre> */ public Builder setJavaGenerateEqualsAndHash(boolean value) { bitField0_ |= 0x00000008; javaGenerateEqualsAndHash_ = value; onChanged(); return this; } /** * <code>optional bool java_generate_equals_and_hash = 20 [default = false];</code> * * <pre> * 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. * </pre> */ public Builder clearJavaGenerateEqualsAndHash() { bitField0_ = (bitField0_ & ~0x00000008); javaGenerateEqualsAndHash_ = false; onChanged(); return this; } // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; private com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; /** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> */ public boolean hasOptimizeFor() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> */ public com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode getOptimizeFor() { return optimizeFor_; } /** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> */ public Builder setOptimizeFor(com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; optimizeFor_ = value; onChanged(); return this; } /** * <code>optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];</code> */ public Builder clearOptimizeFor() { bitField0_ = (bitField0_ & ~0x00000010); optimizeFor_ = com.google.protobuf.DescriptorProtos.FileOptions.OptimizeMode.SPEED; onChanged(); return this; } // optional string go_package = 11; private java.lang.Object goPackage_ = ""; /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public boolean hasGoPackage() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public java.lang.String getGoPackage() { java.lang.Object ref = goPackage_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); goPackage_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public com.google.protobuf.ByteString getGoPackageBytes() { java.lang.Object ref = goPackage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); goPackage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public Builder setGoPackage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; goPackage_ = value; onChanged(); return this; } /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public Builder clearGoPackage() { bitField0_ = (bitField0_ & ~0x00000020); goPackage_ = getDefaultInstance().getGoPackage(); onChanged(); return this; } /** * <code>optional string go_package = 11;</code> * * <pre> * Sets the Go package where structs generated from this .proto will be * placed. There is no default. * </pre> */ public Builder setGoPackageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; goPackage_ = value; onChanged(); return this; } // optional bool cc_generic_services = 16 [default = false]; private boolean ccGenericServices_ ; /** * <code>optional bool cc_generic_services = 16 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean hasCcGenericServices() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional bool cc_generic_services = 16 [default = false];</code> * * <pre> * 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. * </pre> */ public boolean getCcGenericServices() { return ccGenericServices_; } /** * <code>optional bool cc_generic_services = 16 [default = false];</code> * * <pre> * 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. * </pre> */ public Builder setCcGenericServices(boolean value) { bitField0_ |= 0x00000040; ccGenericServices_ = value; onChanged(); return this; } /** * <code>optional bool cc_generic_services = 16 [default = false];</code> * * <pre> * 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. * </pre> */ public Builder clearCcGenericServices() { bitField0_ = (bitField0_ & ~0x00000040); ccGenericServices_ = false; onChanged(); return this; } // optional bool java_generic_services = 17 [default = false]; private boolean javaGenericServices_ ; /** * <code>optional bool java_generic_services = 17 [default = false];</code> */ public boolean hasJavaGenericServices() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** * <code>optional bool java_generic_services = 17 [default = false];</code> */ public boolean getJavaGenericServices() { return javaGenericServices_; } /** * <code>optional bool java_generic_services = 17 [default = false];</code> */ public Builder setJavaGenericServices(boolean value) { bitField0_ |= 0x00000080; javaGenericServices_ = value; onChanged(); return this; } /** * <code>optional bool java_generic_services = 17 [default = false];</code> */ public Builder clearJavaGenericServices() { bitField0_ = (bitField0_ & ~0x00000080); javaGenericServices_ = false; onChanged(); return this; } // optional bool py_generic_services = 18 [default = false]; private boolean pyGenericServices_ ; /** * <code>optional bool py_generic_services = 18 [default = false];</code> */ public boolean hasPyGenericServices() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** * <code>optional bool py_generic_services = 18 [default = false];</code> */ public boolean getPyGenericServices() { return pyGenericServices_; } /** * <code>optional bool py_generic_services = 18 [default = false];</code> */ public Builder setPyGenericServices(boolean value) { bitField0_ |= 0x00000100; pyGenericServices_ = value; onChanged(); return this; } /** * <code>optional bool py_generic_services = 18 [default = false];</code> */ public Builder clearPyGenericServices() { bitField0_ = (bitField0_ & ~0x00000100); pyGenericServices_ = false; onChanged(); return this; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000200) == 0x00000200)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000200; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); super.addAll(values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000200) == 0x00000200), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.FileOptions) } static { defaultInstance = new FileOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions) } public interface MessageOptionsOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<MessageOptions> { // optional bool message_set_wire_format = 1 [default = false]; /** * <code>optional bool message_set_wire_format = 1 [default = false];</code> * * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> */ boolean hasMessageSetWireFormat(); /** * <code>optional bool message_set_wire_format = 1 [default = false];</code> * * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> */ boolean getMessageSetWireFormat(); // optional bool no_standard_descriptor_accessor = 2 [default = false]; /** * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> */ boolean hasNoStandardDescriptorAccessor(); /** * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> */ boolean getNoStandardDescriptorAccessor(); // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ int getUninterpretedOptionCount(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); } /** * Protobuf type {@code google.protobuf.MessageOptions} */ public static final class MessageOptions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< MessageOptions> implements MessageOptionsOrBuilder { // Use MessageOptions.newBuilder() to construct. private MessageOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.MessageOptions, ?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MessageOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MessageOptions defaultInstance; public static MessageOptions getDefaultInstance() { return defaultInstance; } public MessageOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MessageOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; messageSetWireFormat_ = input.readBool(); break; } case 16: { bitField0_ |= 0x00000002; noStandardDescriptorAccessor_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000004; } uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_MessageOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_MessageOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MessageOptions.class, com.google.protobuf.DescriptorProtos.MessageOptions.Builder.class); } public static com.google.protobuf.Parser<MessageOptions> PARSER = new com.google.protobuf.AbstractParser<MessageOptions>() { public MessageOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageOptions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<MessageOptions> getParserForType() { return PARSER; } private int bitField0_; // optional bool message_set_wire_format = 1 [default = false]; public static final int MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER = 1; private boolean messageSetWireFormat_; /** * <code>optional bool message_set_wire_format = 1 [default = false];</code> * * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> */ public boolean hasMessageSetWireFormat() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bool message_set_wire_format = 1 [default = false];</code> * * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> */ public boolean getMessageSetWireFormat() { return messageSetWireFormat_; } // optional bool no_standard_descriptor_accessor = 2 [default = false]; public static final int NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER = 2; private boolean noStandardDescriptorAccessor_; /** * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> */ public boolean hasNoStandardDescriptorAccessor() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> */ public boolean getNoStandardDescriptorAccessor() { return noStandardDescriptorAccessor_; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private void initFields() { messageSetWireFormat_ = false; noStandardDescriptorAccessor_ = false; uninterpretedOption_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage<com.google.protobuf.DescriptorProtos.MessageOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(1, messageSetWireFormat_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, noStandardDescriptorAccessor_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, messageSetWireFormat_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, noStandardDescriptorAccessor_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.MessageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MessageOptions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.MessageOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< com.google.protobuf.DescriptorProtos.MessageOptions, Builder> implements com.google.protobuf.DescriptorProtos.MessageOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_MessageOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_MessageOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MessageOptions.class, com.google.protobuf.DescriptorProtos.MessageOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.MessageOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); messageSetWireFormat_ = false; bitField0_ = (bitField0_ & ~0x00000001); noStandardDescriptorAccessor_ = false; bitField0_ = (bitField0_ & ~0x00000002); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { uninterpretedOptionBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_MessageOptions_descriptor; } public com.google.protobuf.DescriptorProtos.MessageOptions getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.MessageOptions build() { com.google.protobuf.DescriptorProtos.MessageOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.MessageOptions buildPartial() { com.google.protobuf.DescriptorProtos.MessageOptions result = new com.google.protobuf.DescriptorProtos.MessageOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.messageSetWireFormat_ = messageSetWireFormat_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.noStandardDescriptorAccessor_ = noStandardDescriptorAccessor_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000004); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.MessageOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.MessageOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MessageOptions other) { if (other == getDefaultInstance()) return this; if (other.hasMessageSetWireFormat()) { setMessageSetWireFormat(other.getMessageSetWireFormat()); } if (other.hasNoStandardDescriptorAccessor()) { setNoStandardDescriptorAccessor(other.getNoStandardDescriptorAccessor()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000004); uninterpretedOptionBuilder_ = alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.MessageOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.MessageOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bool message_set_wire_format = 1 [default = false]; private boolean messageSetWireFormat_ ; /** * <code>optional bool message_set_wire_format = 1 [default = false];</code> * * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> */ public boolean hasMessageSetWireFormat() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bool message_set_wire_format = 1 [default = false];</code> * * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> */ public boolean getMessageSetWireFormat() { return messageSetWireFormat_; } /** * <code>optional bool message_set_wire_format = 1 [default = false];</code> * * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> */ public Builder setMessageSetWireFormat(boolean value) { bitField0_ |= 0x00000001; messageSetWireFormat_ = value; onChanged(); return this; } /** * <code>optional bool message_set_wire_format = 1 [default = false];</code> * * <pre> * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * </pre> */ public Builder clearMessageSetWireFormat() { bitField0_ = (bitField0_ & ~0x00000001); messageSetWireFormat_ = false; onChanged(); return this; } // optional bool no_standard_descriptor_accessor = 2 [default = false]; private boolean noStandardDescriptorAccessor_ ; /** * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> */ public boolean hasNoStandardDescriptorAccessor() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> */ public boolean getNoStandardDescriptorAccessor() { return noStandardDescriptorAccessor_; } /** * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> */ public Builder setNoStandardDescriptorAccessor(boolean value) { bitField0_ |= 0x00000002; noStandardDescriptorAccessor_ = value; onChanged(); return this; } /** * <code>optional bool no_standard_descriptor_accessor = 2 [default = false];</code> * * <pre> * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * </pre> */ public Builder clearNoStandardDescriptorAccessor() { bitField0_ = (bitField0_ & ~0x00000002); noStandardDescriptorAccessor_ = false; onChanged(); return this; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); super.addAll(values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.MessageOptions) } static { defaultInstance = new MessageOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions) } public interface FieldOptionsOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<FieldOptions> { // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; /** * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> */ boolean hasCtype(); /** * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> */ com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype(); // optional bool packed = 2; /** * <code>optional bool packed = 2;</code> * * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. * </pre> */ boolean hasPacked(); /** * <code>optional bool packed = 2;</code> * * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. * </pre> */ boolean getPacked(); // optional bool lazy = 5 [default = false]; /** * <code>optional bool lazy = 5 [default = false];</code> * * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outher message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> */ boolean hasLazy(); /** * <code>optional bool lazy = 5 [default = false];</code> * * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outher message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> */ boolean getLazy(); // optional bool deprecated = 3 [default = false]; /** * <code>optional bool deprecated = 3 [default = false];</code> * * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> */ boolean hasDeprecated(); /** * <code>optional bool deprecated = 3 [default = false];</code> * * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> */ boolean getDeprecated(); // optional string experimental_map_key = 9; /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ boolean hasExperimentalMapKey(); /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ java.lang.String getExperimentalMapKey(); /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ com.google.protobuf.ByteString getExperimentalMapKeyBytes(); // optional bool weak = 10 [default = false]; /** * <code>optional bool weak = 10 [default = false];</code> * * <pre> * For Google-internal migration only. Do not use. * </pre> */ boolean hasWeak(); /** * <code>optional bool weak = 10 [default = false];</code> * * <pre> * For Google-internal migration only. Do not use. * </pre> */ boolean getWeak(); // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ int getUninterpretedOptionCount(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); } /** * Protobuf type {@code google.protobuf.FieldOptions} */ public static final class FieldOptions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< FieldOptions> implements FieldOptionsOrBuilder { // Use FieldOptions.newBuilder() to construct. private FieldOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.FieldOptions, ?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private FieldOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final FieldOptions defaultInstance; public static FieldOptions getDefaultInstance() { return defaultInstance; } public FieldOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FieldOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { int rawValue = input.readEnum(); com.google.protobuf.DescriptorProtos.FieldOptions.CType value = com.google.protobuf.DescriptorProtos.FieldOptions.CType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; ctype_ = value; } break; } case 16: { bitField0_ |= 0x00000002; packed_ = input.readBool(); break; } case 24: { bitField0_ |= 0x00000008; deprecated_ = input.readBool(); break; } case 40: { bitField0_ |= 0x00000004; lazy_ = input.readBool(); break; } case 74: { bitField0_ |= 0x00000010; experimentalMapKey_ = input.readBytes(); break; } case 80: { bitField0_ |= 0x00000020; weak_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000040; } uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_FieldOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_FieldOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FieldOptions.class, com.google.protobuf.DescriptorProtos.FieldOptions.Builder.class); } public static com.google.protobuf.Parser<FieldOptions> PARSER = new com.google.protobuf.AbstractParser<FieldOptions>() { public FieldOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldOptions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<FieldOptions> getParserForType() { return PARSER; } /** * Protobuf enum {@code google.protobuf.FieldOptions.CType} */ public enum CType implements com.google.protobuf.ProtocolMessageEnum { /** * <code>STRING = 0;</code> * * <pre> * Default mode. * </pre> */ STRING(0, 0), /** * <code>CORD = 1;</code> */ CORD(1, 1), /** * <code>STRING_PIECE = 2;</code> */ STRING_PIECE(2, 2), ; /** * <code>STRING = 0;</code> * * <pre> * Default mode. * </pre> */ public static final int STRING_VALUE = 0; /** * <code>CORD = 1;</code> */ public static final int CORD_VALUE = 1; /** * <code>STRING_PIECE = 2;</code> */ public static final int STRING_PIECE_VALUE = 2; public final int getNumber() { return value; } public static CType valueOf(int value) { switch (value) { case 0: return STRING; case 1: return CORD; case 2: return STRING_PIECE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<CType> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<CType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<CType>() { public CType findValueByNumber(int number) { return CType.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.protobuf.DescriptorProtos.FieldOptions.getDescriptor().getEnumTypes().get(0); } private static final CType[] VALUES = values(); public static CType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private CType(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:google.protobuf.FieldOptions.CType) } private int bitField0_; // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; public static final int CTYPE_FIELD_NUMBER = 1; private com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype_; /** * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> */ public boolean hasCtype() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> */ public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { return ctype_; } // optional bool packed = 2; public static final int PACKED_FIELD_NUMBER = 2; private boolean packed_; /** * <code>optional bool packed = 2;</code> * * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. * </pre> */ public boolean hasPacked() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool packed = 2;</code> * * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. * </pre> */ public boolean getPacked() { return packed_; } // optional bool lazy = 5 [default = false]; public static final int LAZY_FIELD_NUMBER = 5; private boolean lazy_; /** * <code>optional bool lazy = 5 [default = false];</code> * * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outher message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> */ public boolean hasLazy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool lazy = 5 [default = false];</code> * * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outher message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> */ public boolean getLazy() { return lazy_; } // optional bool deprecated = 3 [default = false]; public static final int DEPRECATED_FIELD_NUMBER = 3; private boolean deprecated_; /** * <code>optional bool deprecated = 3 [default = false];</code> * * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> */ public boolean hasDeprecated() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool deprecated = 3 [default = false];</code> * * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> */ public boolean getDeprecated() { return deprecated_; } // optional string experimental_map_key = 9; public static final int EXPERIMENTAL_MAP_KEY_FIELD_NUMBER = 9; private java.lang.Object experimentalMapKey_; /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public boolean hasExperimentalMapKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public java.lang.String getExperimentalMapKey() { java.lang.Object ref = experimentalMapKey_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { experimentalMapKey_ = s; } return s; } } /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public com.google.protobuf.ByteString getExperimentalMapKeyBytes() { java.lang.Object ref = experimentalMapKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); experimentalMapKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool weak = 10 [default = false]; public static final int WEAK_FIELD_NUMBER = 10; private boolean weak_; /** * <code>optional bool weak = 10 [default = false];</code> * * <pre> * For Google-internal migration only. Do not use. * </pre> */ public boolean hasWeak() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool weak = 10 [default = false];</code> * * <pre> * For Google-internal migration only. Do not use. * </pre> */ public boolean getWeak() { return weak_; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private void initFields() { ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; packed_ = false; lazy_ = false; deprecated_ = false; experimentalMapKey_ = ""; weak_ = false; uninterpretedOption_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage<com.google.protobuf.DescriptorProtos.FieldOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeEnum(1, ctype_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, packed_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(3, deprecated_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(5, lazy_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(9, getExperimentalMapKeyBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBool(10, weak_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ctype_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, packed_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, deprecated_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, lazy_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(9, getExperimentalMapKeyBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, weak_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.FieldOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.FieldOptions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.FieldOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< com.google.protobuf.DescriptorProtos.FieldOptions, Builder> implements com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_FieldOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_FieldOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.FieldOptions.class, com.google.protobuf.DescriptorProtos.FieldOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.FieldOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; bitField0_ = (bitField0_ & ~0x00000001); packed_ = false; bitField0_ = (bitField0_ & ~0x00000002); lazy_ = false; bitField0_ = (bitField0_ & ~0x00000004); deprecated_ = false; bitField0_ = (bitField0_ & ~0x00000008); experimentalMapKey_ = ""; bitField0_ = (bitField0_ & ~0x00000010); weak_ = false; bitField0_ = (bitField0_ & ~0x00000020); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { uninterpretedOptionBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_FieldOptions_descriptor; } public com.google.protobuf.DescriptorProtos.FieldOptions getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.FieldOptions build() { com.google.protobuf.DescriptorProtos.FieldOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.FieldOptions buildPartial() { com.google.protobuf.DescriptorProtos.FieldOptions result = new com.google.protobuf.DescriptorProtos.FieldOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ctype_ = ctype_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.packed_ = packed_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.lazy_ = lazy_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.deprecated_ = deprecated_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.experimentalMapKey_ = experimentalMapKey_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.weak_ = weak_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000040); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.FieldOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.FieldOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.FieldOptions other) { if (other == getDefaultInstance()) return this; if (other.hasCtype()) { setCtype(other.getCtype()); } if (other.hasPacked()) { setPacked(other.getPacked()); } if (other.hasLazy()) { setLazy(other.getLazy()); } if (other.hasDeprecated()) { setDeprecated(other.getDeprecated()); } if (other.hasExperimentalMapKey()) { bitField0_ |= 0x00000010; experimentalMapKey_ = other.experimentalMapKey_; onChanged(); } if (other.hasWeak()) { setWeak(other.getWeak()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000040); uninterpretedOptionBuilder_ = alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.FieldOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.FieldOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; private com.google.protobuf.DescriptorProtos.FieldOptions.CType ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; /** * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> */ public boolean hasCtype() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> */ public com.google.protobuf.DescriptorProtos.FieldOptions.CType getCtype() { return ctype_; } /** * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> */ public Builder setCtype(com.google.protobuf.DescriptorProtos.FieldOptions.CType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ctype_ = value; onChanged(); return this; } /** * <code>optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];</code> * * <pre> * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is not yet implemented in the open source * release -- sorry, we'll try to include it in a future version! * </pre> */ public Builder clearCtype() { bitField0_ = (bitField0_ & ~0x00000001); ctype_ = com.google.protobuf.DescriptorProtos.FieldOptions.CType.STRING; onChanged(); return this; } // optional bool packed = 2; private boolean packed_ ; /** * <code>optional bool packed = 2;</code> * * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. * </pre> */ public boolean hasPacked() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool packed = 2;</code> * * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. * </pre> */ public boolean getPacked() { return packed_; } /** * <code>optional bool packed = 2;</code> * * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. * </pre> */ public Builder setPacked(boolean value) { bitField0_ |= 0x00000002; packed_ = value; onChanged(); return this; } /** * <code>optional bool packed = 2;</code> * * <pre> * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. * </pre> */ public Builder clearPacked() { bitField0_ = (bitField0_ & ~0x00000002); packed_ = false; onChanged(); return this; } // optional bool lazy = 5 [default = false]; private boolean lazy_ ; /** * <code>optional bool lazy = 5 [default = false];</code> * * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outher message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> */ public boolean hasLazy() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool lazy = 5 [default = false];</code> * * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outher message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> */ public boolean getLazy() { return lazy_; } /** * <code>optional bool lazy = 5 [default = false];</code> * * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outher message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> */ public Builder setLazy(boolean value) { bitField0_ |= 0x00000004; lazy_ = value; onChanged(); return this; } /** * <code>optional bool lazy = 5 [default = false];</code> * * <pre> * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * * Note that implementations may choose not to check required fields within * a lazy sub-message. That is, calling IsInitialized() on the outher message * may return true even if the inner message has missing required fields. * This is necessary because otherwise the inner message would have to be * parsed in order to perform the check, defeating the purpose of lazy * parsing. An implementation which chooses not to check required fields * must be consistent about it. That is, for any particular sub-message, the * implementation must either *always* check its required fields, or *never* * check its required fields, regardless of whether or not the message has * been parsed. * </pre> */ public Builder clearLazy() { bitField0_ = (bitField0_ & ~0x00000004); lazy_ = false; onChanged(); return this; } // optional bool deprecated = 3 [default = false]; private boolean deprecated_ ; /** * <code>optional bool deprecated = 3 [default = false];</code> * * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> */ public boolean hasDeprecated() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional bool deprecated = 3 [default = false];</code> * * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> */ public boolean getDeprecated() { return deprecated_; } /** * <code>optional bool deprecated = 3 [default = false];</code> * * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> */ public Builder setDeprecated(boolean value) { bitField0_ |= 0x00000008; deprecated_ = value; onChanged(); return this; } /** * <code>optional bool deprecated = 3 [default = false];</code> * * <pre> * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * </pre> */ public Builder clearDeprecated() { bitField0_ = (bitField0_ & ~0x00000008); deprecated_ = false; onChanged(); return this; } // optional string experimental_map_key = 9; private java.lang.Object experimentalMapKey_ = ""; /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public boolean hasExperimentalMapKey() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public java.lang.String getExperimentalMapKey() { java.lang.Object ref = experimentalMapKey_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); experimentalMapKey_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public com.google.protobuf.ByteString getExperimentalMapKeyBytes() { java.lang.Object ref = experimentalMapKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); experimentalMapKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public Builder setExperimentalMapKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; experimentalMapKey_ = value; onChanged(); return this; } /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public Builder clearExperimentalMapKey() { bitField0_ = (bitField0_ & ~0x00000010); experimentalMapKey_ = getDefaultInstance().getExperimentalMapKey(); onChanged(); return this; } /** * <code>optional string experimental_map_key = 9;</code> * * <pre> * EXPERIMENTAL. DO NOT USE. * For "map" fields, the name of the field in the enclosed type that * is the key for this map. For example, suppose we have: * message Item { * required string name = 1; * required string value = 2; * } * message Config { * repeated Item items = 1 [experimental_map_key="name"]; * } * In this situation, the map key for Item will be set to "name". * TODO: Fully-implement this, then remove the "experimental_" prefix. * </pre> */ public Builder setExperimentalMapKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; experimentalMapKey_ = value; onChanged(); return this; } // optional bool weak = 10 [default = false]; private boolean weak_ ; /** * <code>optional bool weak = 10 [default = false];</code> * * <pre> * For Google-internal migration only. Do not use. * </pre> */ public boolean hasWeak() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bool weak = 10 [default = false];</code> * * <pre> * For Google-internal migration only. Do not use. * </pre> */ public boolean getWeak() { return weak_; } /** * <code>optional bool weak = 10 [default = false];</code> * * <pre> * For Google-internal migration only. Do not use. * </pre> */ public Builder setWeak(boolean value) { bitField0_ |= 0x00000020; weak_ = value; onChanged(); return this; } /** * <code>optional bool weak = 10 [default = false];</code> * * <pre> * For Google-internal migration only. Do not use. * </pre> */ public Builder clearWeak() { bitField0_ = (bitField0_ & ~0x00000020); weak_ = false; onChanged(); return this; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); super.addAll(values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.FieldOptions) } static { defaultInstance = new FieldOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions) } public interface EnumOptionsOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<EnumOptions> { // optional bool allow_alias = 2 [default = true]; /** * <code>optional bool allow_alias = 2 [default = true];</code> * * <pre> * Set this option to false to disallow mapping different tag names to a same * value. * </pre> */ boolean hasAllowAlias(); /** * <code>optional bool allow_alias = 2 [default = true];</code> * * <pre> * Set this option to false to disallow mapping different tag names to a same * value. * </pre> */ boolean getAllowAlias(); // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ int getUninterpretedOptionCount(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); } /** * Protobuf type {@code google.protobuf.EnumOptions} */ public static final class EnumOptions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< EnumOptions> implements EnumOptionsOrBuilder { // Use EnumOptions.newBuilder() to construct. private EnumOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumOptions, ?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private EnumOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final EnumOptions defaultInstance; public static EnumOptions getDefaultInstance() { return defaultInstance; } public EnumOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 16: { bitField0_ |= 0x00000001; allowAlias_ = input.readBool(); break; } case 7994: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000002; } uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_EnumOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_EnumOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumOptions.class, com.google.protobuf.DescriptorProtos.EnumOptions.Builder.class); } public static com.google.protobuf.Parser<EnumOptions> PARSER = new com.google.protobuf.AbstractParser<EnumOptions>() { public EnumOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumOptions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<EnumOptions> getParserForType() { return PARSER; } private int bitField0_; // optional bool allow_alias = 2 [default = true]; public static final int ALLOW_ALIAS_FIELD_NUMBER = 2; private boolean allowAlias_; /** * <code>optional bool allow_alias = 2 [default = true];</code> * * <pre> * Set this option to false to disallow mapping different tag names to a same * value. * </pre> */ public boolean hasAllowAlias() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bool allow_alias = 2 [default = true];</code> * * <pre> * Set this option to false to disallow mapping different tag names to a same * value. * </pre> */ public boolean getAllowAlias() { return allowAlias_; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private void initFields() { allowAlias_ = true; uninterpretedOption_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage<com.google.protobuf.DescriptorProtos.EnumOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBool(2, allowAlias_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, allowAlias_); } for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.EnumOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumOptions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.EnumOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< com.google.protobuf.DescriptorProtos.EnumOptions, Builder> implements com.google.protobuf.DescriptorProtos.EnumOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_EnumOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_EnumOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumOptions.class, com.google.protobuf.DescriptorProtos.EnumOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.EnumOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); allowAlias_ = true; bitField0_ = (bitField0_ & ~0x00000001); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { uninterpretedOptionBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_EnumOptions_descriptor; } public com.google.protobuf.DescriptorProtos.EnumOptions getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.EnumOptions build() { com.google.protobuf.DescriptorProtos.EnumOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.EnumOptions buildPartial() { com.google.protobuf.DescriptorProtos.EnumOptions result = new com.google.protobuf.DescriptorProtos.EnumOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.allowAlias_ = allowAlias_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000002); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.EnumOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.EnumOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumOptions other) { if (other == getDefaultInstance()) return this; if (other.hasAllowAlias()) { setAllowAlias(other.getAllowAlias()); } if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000002); uninterpretedOptionBuilder_ = alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.EnumOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.EnumOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional bool allow_alias = 2 [default = true]; private boolean allowAlias_ = true; /** * <code>optional bool allow_alias = 2 [default = true];</code> * * <pre> * Set this option to false to disallow mapping different tag names to a same * value. * </pre> */ public boolean hasAllowAlias() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional bool allow_alias = 2 [default = true];</code> * * <pre> * Set this option to false to disallow mapping different tag names to a same * value. * </pre> */ public boolean getAllowAlias() { return allowAlias_; } /** * <code>optional bool allow_alias = 2 [default = true];</code> * * <pre> * Set this option to false to disallow mapping different tag names to a same * value. * </pre> */ public Builder setAllowAlias(boolean value) { bitField0_ |= 0x00000001; allowAlias_ = value; onChanged(); return this; } /** * <code>optional bool allow_alias = 2 [default = true];</code> * * <pre> * Set this option to false to disallow mapping different tag names to a same * value. * </pre> */ public Builder clearAllowAlias() { bitField0_ = (bitField0_ & ~0x00000001); allowAlias_ = true; onChanged(); return this; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); super.addAll(values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.EnumOptions) } static { defaultInstance = new EnumOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions) } public interface EnumValueOptionsOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<EnumValueOptions> { // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ int getUninterpretedOptionCount(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); } /** * Protobuf type {@code google.protobuf.EnumValueOptions} */ public static final class EnumValueOptions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< EnumValueOptions> implements EnumValueOptionsOrBuilder { // Use EnumValueOptions.newBuilder() to construct. private EnumValueOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.EnumValueOptions, ?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private EnumValueOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final EnumValueOptions defaultInstance; public static EnumValueOptions getDefaultInstance() { return defaultInstance; } public EnumValueOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EnumValueOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 7994: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000001; } uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_EnumValueOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumValueOptions.class, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder.class); } public static com.google.protobuf.Parser<EnumValueOptions> PARSER = new com.google.protobuf.AbstractParser<EnumValueOptions>() { public EnumValueOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumValueOptions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<EnumValueOptions> getParserForType() { return PARSER; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private void initFields() { uninterpretedOption_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage<com.google.protobuf.DescriptorProtos.EnumValueOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.EnumValueOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.EnumValueOptions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.EnumValueOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< com.google.protobuf.DescriptorProtos.EnumValueOptions, Builder> implements com.google.protobuf.DescriptorProtos.EnumValueOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_EnumValueOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.EnumValueOptions.class, com.google.protobuf.DescriptorProtos.EnumValueOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.EnumValueOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { uninterpretedOptionBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_EnumValueOptions_descriptor; } public com.google.protobuf.DescriptorProtos.EnumValueOptions getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.EnumValueOptions build() { com.google.protobuf.DescriptorProtos.EnumValueOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.EnumValueOptions buildPartial() { com.google.protobuf.DescriptorProtos.EnumValueOptions result = new com.google.protobuf.DescriptorProtos.EnumValueOptions(this); int from_bitField0_ = bitField0_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000001); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.EnumValueOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.EnumValueOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.EnumValueOptions other) { if (other == getDefaultInstance()) return this; if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); uninterpretedOptionBuilder_ = alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.EnumValueOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.EnumValueOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); super.addAll(values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.EnumValueOptions) } static { defaultInstance = new EnumValueOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions) } public interface ServiceOptionsOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<ServiceOptions> { // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ int getUninterpretedOptionCount(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); } /** * Protobuf type {@code google.protobuf.ServiceOptions} */ public static final class ServiceOptions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< ServiceOptions> implements ServiceOptionsOrBuilder { // Use ServiceOptions.newBuilder() to construct. private ServiceOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.ServiceOptions, ?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ServiceOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ServiceOptions defaultInstance; public static ServiceOptions getDefaultInstance() { return defaultInstance; } public ServiceOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ServiceOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 7994: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000001; } uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_ServiceOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_ServiceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.ServiceOptions.class, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder.class); } public static com.google.protobuf.Parser<ServiceOptions> PARSER = new com.google.protobuf.AbstractParser<ServiceOptions>() { public ServiceOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ServiceOptions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ServiceOptions> getParserForType() { return PARSER; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private void initFields() { uninterpretedOption_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage<com.google.protobuf.DescriptorProtos.ServiceOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.ServiceOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.ServiceOptions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.ServiceOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< com.google.protobuf.DescriptorProtos.ServiceOptions, Builder> implements com.google.protobuf.DescriptorProtos.ServiceOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_ServiceOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_ServiceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.ServiceOptions.class, com.google.protobuf.DescriptorProtos.ServiceOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.ServiceOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { uninterpretedOptionBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_ServiceOptions_descriptor; } public com.google.protobuf.DescriptorProtos.ServiceOptions getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.ServiceOptions build() { com.google.protobuf.DescriptorProtos.ServiceOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.ServiceOptions buildPartial() { com.google.protobuf.DescriptorProtos.ServiceOptions result = new com.google.protobuf.DescriptorProtos.ServiceOptions(this); int from_bitField0_ = bitField0_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000001); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.ServiceOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.ServiceOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.ServiceOptions other) { if (other == getDefaultInstance()) return this; if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); uninterpretedOptionBuilder_ = alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.ServiceOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.ServiceOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); super.addAll(values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.ServiceOptions) } static { defaultInstance = new ServiceOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions) } public interface MethodOptionsOrBuilder extends com.google.protobuf.GeneratedMessage. ExtendableMessageOrBuilder<MethodOptions> { // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ int getUninterpretedOptionCount(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList(); /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index); } /** * Protobuf type {@code google.protobuf.MethodOptions} */ public static final class MethodOptions extends com.google.protobuf.GeneratedMessage.ExtendableMessage< MethodOptions> implements MethodOptionsOrBuilder { // Use MethodOptions.newBuilder() to construct. private MethodOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.DescriptorProtos.MethodOptions, ?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private MethodOptions(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final MethodOptions defaultInstance; public static MethodOptions getDefaultInstance() { return defaultInstance; } public MethodOptions getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MethodOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 7994: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(); mutable_bitField0_ |= 0x00000001; } uninterpretedOption_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_MethodOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_MethodOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MethodOptions.class, com.google.protobuf.DescriptorProtos.MethodOptions.Builder.class); } public static com.google.protobuf.Parser<MethodOptions> PARSER = new com.google.protobuf.AbstractParser<MethodOptions>() { public MethodOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MethodOptions(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<MethodOptions> getParserForType() { return PARSER; } // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; public static final int UNINTERPRETED_OPTION_FIELD_NUMBER = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { return uninterpretedOption_; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { return uninterpretedOption_.size(); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { return uninterpretedOption_.get(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { return uninterpretedOption_.get(index); } private void initFields() { uninterpretedOption_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } if (!extensionsAreInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); com.google.protobuf.GeneratedMessage .ExtendableMessage<com.google.protobuf.DescriptorProtos.MethodOptions>.ExtensionWriter extensionWriter = newExtensionWriter(); for (int i = 0; i < uninterpretedOption_.size(); i++) { output.writeMessage(999, uninterpretedOption_.get(i)); } extensionWriter.writeUntil(536870912, output); getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < uninterpretedOption_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(999, uninterpretedOption_.get(i)); } size += extensionsSerializedSize(); size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.MethodOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.MethodOptions prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.MethodOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder< com.google.protobuf.DescriptorProtos.MethodOptions, Builder> implements com.google.protobuf.DescriptorProtos.MethodOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_MethodOptions_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_MethodOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.MethodOptions.class, com.google.protobuf.DescriptorProtos.MethodOptions.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.MethodOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getUninterpretedOptionFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { uninterpretedOptionBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_MethodOptions_descriptor; } public com.google.protobuf.DescriptorProtos.MethodOptions getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.MethodOptions build() { com.google.protobuf.DescriptorProtos.MethodOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.MethodOptions buildPartial() { com.google.protobuf.DescriptorProtos.MethodOptions result = new com.google.protobuf.DescriptorProtos.MethodOptions(this); int from_bitField0_ = bitField0_; if (uninterpretedOptionBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = java.util.Collections.unmodifiableList(uninterpretedOption_); bitField0_ = (bitField0_ & ~0x00000001); } result.uninterpretedOption_ = uninterpretedOption_; } else { result.uninterpretedOption_ = uninterpretedOptionBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.MethodOptions) { return mergeFrom((com.google.protobuf.DescriptorProtos.MethodOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.MethodOptions other) { if (other == getDefaultInstance()) return this; if (uninterpretedOptionBuilder_ == null) { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOption_.isEmpty()) { uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.addAll(other.uninterpretedOption_); } onChanged(); } } else { if (!other.uninterpretedOption_.isEmpty()) { if (uninterpretedOptionBuilder_.isEmpty()) { uninterpretedOptionBuilder_.dispose(); uninterpretedOptionBuilder_ = null; uninterpretedOption_ = other.uninterpretedOption_; bitField0_ = (bitField0_ & ~0x00000001); uninterpretedOptionBuilder_ = alwaysUseFieldBuilders ? getUninterpretedOptionFieldBuilder() : null; } else { uninterpretedOptionBuilder_.addAllMessages(other.uninterpretedOption_); } } } this.mergeExtensionFields(other); this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getUninterpretedOptionCount(); i++) { if (!getUninterpretedOption(i).isInitialized()) { return false; } } if (!extensionsAreInitialized()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.MethodOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.MethodOptions) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = java.util.Collections.emptyList(); private void ensureUninterpretedOptionIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { uninterpretedOption_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption>(uninterpretedOption_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> uninterpretedOptionBuilder_; /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption> getUninterpretedOptionList() { if (uninterpretedOptionBuilder_ == null) { return java.util.Collections.unmodifiableList(uninterpretedOption_); } else { return uninterpretedOptionBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public int getUninterpretedOptionCount() { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.size(); } else { return uninterpretedOptionBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption getUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, value); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder setUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.set(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption(com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption value) { if (uninterpretedOptionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, value); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addUninterpretedOption( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder builderForValue) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.add(index, builderForValue.build()); onChanged(); } else { uninterpretedOptionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder addAllUninterpretedOption( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption> values) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); super.addAll(values, uninterpretedOption_); onChanged(); } else { uninterpretedOptionBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder clearUninterpretedOption() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOption_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { uninterpretedOptionBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public Builder removeUninterpretedOption(int index) { if (uninterpretedOptionBuilder_ == null) { ensureUninterpretedOptionIsMutable(); uninterpretedOption_.remove(index); onChanged(); } else { uninterpretedOptionBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder( int index) { if (uninterpretedOptionBuilder_ == null) { return uninterpretedOption_.get(index); } else { return uninterpretedOptionBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList() { if (uninterpretedOptionBuilder_ != null) { return uninterpretedOptionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(uninterpretedOption_); } } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder() { return getUninterpretedOptionFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder( int index) { return getUninterpretedOptionFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code> * * <pre> * The parser stores options it doesn't recognize here. See above. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList() { return getUninterpretedOptionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionFieldBuilder() { if (uninterpretedOptionBuilder_ == null) { uninterpretedOptionBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder>( uninterpretedOption_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); uninterpretedOption_ = null; } return uninterpretedOptionBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.MethodOptions) } static { defaultInstance = new MethodOptions(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions) } public interface UninterpretedOptionOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList(); /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index); /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ int getNameCount(); /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameOrBuilderList(); /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( int index); // optional string identifier_value = 3; /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ boolean hasIdentifierValue(); /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ java.lang.String getIdentifierValue(); /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ com.google.protobuf.ByteString getIdentifierValueBytes(); // optional uint64 positive_int_value = 4; /** * <code>optional uint64 positive_int_value = 4;</code> */ boolean hasPositiveIntValue(); /** * <code>optional uint64 positive_int_value = 4;</code> */ long getPositiveIntValue(); // optional int64 negative_int_value = 5; /** * <code>optional int64 negative_int_value = 5;</code> */ boolean hasNegativeIntValue(); /** * <code>optional int64 negative_int_value = 5;</code> */ long getNegativeIntValue(); // optional double double_value = 6; /** * <code>optional double double_value = 6;</code> */ boolean hasDoubleValue(); /** * <code>optional double double_value = 6;</code> */ double getDoubleValue(); // optional bytes string_value = 7; /** * <code>optional bytes string_value = 7;</code> */ boolean hasStringValue(); /** * <code>optional bytes string_value = 7;</code> */ com.google.protobuf.ByteString getStringValue(); // optional string aggregate_value = 8; /** * <code>optional string aggregate_value = 8;</code> */ boolean hasAggregateValue(); /** * <code>optional string aggregate_value = 8;</code> */ java.lang.String getAggregateValue(); /** * <code>optional string aggregate_value = 8;</code> */ com.google.protobuf.ByteString getAggregateValueBytes(); } /** * Protobuf type {@code google.protobuf.UninterpretedOption} * * <pre> * A message representing a option the parser does not recognize. This only * appears in options protos created by the compiler::Parser class. * DescriptorPool resolves these when building Descriptor objects. Therefore, * options protos in descriptor objects (e.g. returned by Descriptor::options(), * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions * in them. * </pre> */ public static final class UninterpretedOption extends com.google.protobuf.GeneratedMessage implements UninterpretedOptionOrBuilder { // Use UninterpretedOption.newBuilder() to construct. private UninterpretedOption(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private UninterpretedOption(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final UninterpretedOption defaultInstance; public static UninterpretedOption getDefaultInstance() { return defaultInstance; } public UninterpretedOption getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private UninterpretedOption( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 18: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { name_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart>(); mutable_bitField0_ |= 0x00000001; } name_.add(input.readMessage(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.PARSER, extensionRegistry)); break; } case 26: { bitField0_ |= 0x00000001; identifierValue_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000002; positiveIntValue_ = input.readUInt64(); break; } case 40: { bitField0_ |= 0x00000004; negativeIntValue_ = input.readInt64(); break; } case 49: { bitField0_ |= 0x00000008; doubleValue_ = input.readDouble(); break; } case 58: { bitField0_ |= 0x00000010; stringValue_ = input.readBytes(); break; } case 66: { bitField0_ |= 0x00000020; aggregateValue_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { name_ = java.util.Collections.unmodifiableList(name_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_UninterpretedOption_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.UninterpretedOption.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder.class); } public static com.google.protobuf.Parser<UninterpretedOption> PARSER = new com.google.protobuf.AbstractParser<UninterpretedOption>() { public UninterpretedOption parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UninterpretedOption(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<UninterpretedOption> getParserForType() { return PARSER; } public interface NamePartOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string name_part = 1; /** * <code>required string name_part = 1;</code> */ boolean hasNamePart(); /** * <code>required string name_part = 1;</code> */ java.lang.String getNamePart(); /** * <code>required string name_part = 1;</code> */ com.google.protobuf.ByteString getNamePartBytes(); // required bool is_extension = 2; /** * <code>required bool is_extension = 2;</code> */ boolean hasIsExtension(); /** * <code>required bool is_extension = 2;</code> */ boolean getIsExtension(); } /** * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart} * * <pre> * The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents * "foo.(bar.baz).qux". * </pre> */ public static final class NamePart extends com.google.protobuf.GeneratedMessage implements NamePartOrBuilder { // Use NamePart.newBuilder() to construct. private NamePart(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private NamePart(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final NamePart defaultInstance; public static NamePart getDefaultInstance() { return defaultInstance; } public NamePart getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private NamePart( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; namePart_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; isExtension_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder.class); } public static com.google.protobuf.Parser<NamePart> PARSER = new com.google.protobuf.AbstractParser<NamePart>() { public NamePart parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new NamePart(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<NamePart> getParserForType() { return PARSER; } private int bitField0_; // required string name_part = 1; public static final int NAME_PART_FIELD_NUMBER = 1; private java.lang.Object namePart_; /** * <code>required string name_part = 1;</code> */ public boolean hasNamePart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name_part = 1;</code> */ public java.lang.String getNamePart() { java.lang.Object ref = namePart_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { namePart_ = s; } return s; } } /** * <code>required string name_part = 1;</code> */ public com.google.protobuf.ByteString getNamePartBytes() { java.lang.Object ref = namePart_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namePart_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required bool is_extension = 2; public static final int IS_EXTENSION_FIELD_NUMBER = 2; private boolean isExtension_; /** * <code>required bool is_extension = 2;</code> */ public boolean hasIsExtension() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required bool is_extension = 2;</code> */ public boolean getIsExtension() { return isExtension_; } private void initFields() { namePart_ = ""; isExtension_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasNamePart()) { memoizedIsInitialized = 0; return false; } if (!hasIsExtension()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getNamePartBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, isExtension_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getNamePartBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isExtension_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.UninterpretedOption.NamePart} * * <pre> * The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). * E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents * "foo.(bar.baz).qux". * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); namePart_ = ""; bitField0_ = (bitField0_ & ~0x00000001); isExtension_ = false; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; } public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart build() { com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart buildPartial() { com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart result = new com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.namePart_ = namePart_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.isExtension_ = isExtension_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) { return mergeFrom((com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart other) { if (other == getDefaultInstance()) return this; if (other.hasNamePart()) { bitField0_ |= 0x00000001; namePart_ = other.namePart_; onChanged(); } if (other.hasIsExtension()) { setIsExtension(other.getIsExtension()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasNamePart()) { return false; } if (!hasIsExtension()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string name_part = 1; private java.lang.Object namePart_ = ""; /** * <code>required string name_part = 1;</code> */ public boolean hasNamePart() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string name_part = 1;</code> */ public java.lang.String getNamePart() { java.lang.Object ref = namePart_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); namePart_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string name_part = 1;</code> */ public com.google.protobuf.ByteString getNamePartBytes() { java.lang.Object ref = namePart_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namePart_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string name_part = 1;</code> */ public Builder setNamePart( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namePart_ = value; onChanged(); return this; } /** * <code>required string name_part = 1;</code> */ public Builder clearNamePart() { bitField0_ = (bitField0_ & ~0x00000001); namePart_ = getDefaultInstance().getNamePart(); onChanged(); return this; } /** * <code>required string name_part = 1;</code> */ public Builder setNamePartBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; namePart_ = value; onChanged(); return this; } // required bool is_extension = 2; private boolean isExtension_ ; /** * <code>required bool is_extension = 2;</code> */ public boolean hasIsExtension() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required bool is_extension = 2;</code> */ public boolean getIsExtension() { return isExtension_; } /** * <code>required bool is_extension = 2;</code> */ public Builder setIsExtension(boolean value) { bitField0_ |= 0x00000002; isExtension_ = value; onChanged(); return this; } /** * <code>required bool is_extension = 2;</code> */ public Builder clearIsExtension() { bitField0_ = (bitField0_ & ~0x00000002); isExtension_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:google.protobuf.UninterpretedOption.NamePart) } static { defaultInstance = new NamePart(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart) } private int bitField0_; // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; public static final int NAME_FIELD_NUMBER = 2; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> name_; /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { return name_; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameOrBuilderList() { return name_; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public int getNameCount() { return name_.size(); } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { return name_.get(index); } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( int index) { return name_.get(index); } // optional string identifier_value = 3; public static final int IDENTIFIER_VALUE_FIELD_NUMBER = 3; private java.lang.Object identifierValue_; /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public boolean hasIdentifierValue() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public java.lang.String getIdentifierValue() { java.lang.Object ref = identifierValue_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { identifierValue_ = s; } return s; } } /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public com.google.protobuf.ByteString getIdentifierValueBytes() { java.lang.Object ref = identifierValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identifierValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional uint64 positive_int_value = 4; public static final int POSITIVE_INT_VALUE_FIELD_NUMBER = 4; private long positiveIntValue_; /** * <code>optional uint64 positive_int_value = 4;</code> */ public boolean hasPositiveIntValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint64 positive_int_value = 4;</code> */ public long getPositiveIntValue() { return positiveIntValue_; } // optional int64 negative_int_value = 5; public static final int NEGATIVE_INT_VALUE_FIELD_NUMBER = 5; private long negativeIntValue_; /** * <code>optional int64 negative_int_value = 5;</code> */ public boolean hasNegativeIntValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional int64 negative_int_value = 5;</code> */ public long getNegativeIntValue() { return negativeIntValue_; } // optional double double_value = 6; public static final int DOUBLE_VALUE_FIELD_NUMBER = 6; private double doubleValue_; /** * <code>optional double double_value = 6;</code> */ public boolean hasDoubleValue() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional double double_value = 6;</code> */ public double getDoubleValue() { return doubleValue_; } // optional bytes string_value = 7; public static final int STRING_VALUE_FIELD_NUMBER = 7; private com.google.protobuf.ByteString stringValue_; /** * <code>optional bytes string_value = 7;</code> */ public boolean hasStringValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional bytes string_value = 7;</code> */ public com.google.protobuf.ByteString getStringValue() { return stringValue_; } // optional string aggregate_value = 8; public static final int AGGREGATE_VALUE_FIELD_NUMBER = 8; private java.lang.Object aggregateValue_; /** * <code>optional string aggregate_value = 8;</code> */ public boolean hasAggregateValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional string aggregate_value = 8;</code> */ public java.lang.String getAggregateValue() { java.lang.Object ref = aggregateValue_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { aggregateValue_ = s; } return s; } } /** * <code>optional string aggregate_value = 8;</code> */ public com.google.protobuf.ByteString getAggregateValueBytes() { java.lang.Object ref = aggregateValue_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregateValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { name_ = java.util.Collections.emptyList(); identifierValue_ = ""; positiveIntValue_ = 0L; negativeIntValue_ = 0L; doubleValue_ = 0D; stringValue_ = com.google.protobuf.ByteString.EMPTY; aggregateValue_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getNameCount(); i++) { if (!getName(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < name_.size(); i++) { output.writeMessage(2, name_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(3, getIdentifierValueBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt64(4, positiveIntValue_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeInt64(5, negativeIntValue_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeDouble(6, doubleValue_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(7, stringValue_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(8, getAggregateValueBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < name_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, name_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getIdentifierValueBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(4, positiveIntValue_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, negativeIntValue_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, doubleValue_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, stringValue_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, getAggregateValueBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.UninterpretedOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.UninterpretedOption prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.UninterpretedOption} * * <pre> * A message representing a option the parser does not recognize. This only * appears in options protos created by the compiler::Parser class. * DescriptorPool resolves these when building Descriptor objects. Therefore, * options protos in descriptor objects (e.g. returned by Descriptor::options(), * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions * in them. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_UninterpretedOption_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.UninterpretedOption.class, com.google.protobuf.DescriptorProtos.UninterpretedOption.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.UninterpretedOption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getNameFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (nameBuilder_ == null) { name_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { nameBuilder_.clear(); } identifierValue_ = ""; bitField0_ = (bitField0_ & ~0x00000002); positiveIntValue_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); negativeIntValue_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); doubleValue_ = 0D; bitField0_ = (bitField0_ & ~0x00000010); stringValue_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); aggregateValue_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_UninterpretedOption_descriptor; } public com.google.protobuf.DescriptorProtos.UninterpretedOption getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.UninterpretedOption build() { com.google.protobuf.DescriptorProtos.UninterpretedOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.UninterpretedOption buildPartial() { com.google.protobuf.DescriptorProtos.UninterpretedOption result = new com.google.protobuf.DescriptorProtos.UninterpretedOption(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (nameBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { name_ = java.util.Collections.unmodifiableList(name_); bitField0_ = (bitField0_ & ~0x00000001); } result.name_ = name_; } else { result.name_ = nameBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.identifierValue_ = identifierValue_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.positiveIntValue_ = positiveIntValue_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000004; } result.negativeIntValue_ = negativeIntValue_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.doubleValue_ = doubleValue_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000010; } result.stringValue_ = stringValue_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000020; } result.aggregateValue_ = aggregateValue_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.UninterpretedOption) { return mergeFrom((com.google.protobuf.DescriptorProtos.UninterpretedOption)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.UninterpretedOption other) { if (other == getDefaultInstance()) return this; if (nameBuilder_ == null) { if (!other.name_.isEmpty()) { if (name_.isEmpty()) { name_ = other.name_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNameIsMutable(); name_.addAll(other.name_); } onChanged(); } } else { if (!other.name_.isEmpty()) { if (nameBuilder_.isEmpty()) { nameBuilder_.dispose(); nameBuilder_ = null; name_ = other.name_; bitField0_ = (bitField0_ & ~0x00000001); nameBuilder_ = alwaysUseFieldBuilders ? getNameFieldBuilder() : null; } else { nameBuilder_.addAllMessages(other.name_); } } } if (other.hasIdentifierValue()) { bitField0_ |= 0x00000002; identifierValue_ = other.identifierValue_; onChanged(); } if (other.hasPositiveIntValue()) { setPositiveIntValue(other.getPositiveIntValue()); } if (other.hasNegativeIntValue()) { setNegativeIntValue(other.getNegativeIntValue()); } if (other.hasDoubleValue()) { setDoubleValue(other.getDoubleValue()); } if (other.hasStringValue()) { setStringValue(other.getStringValue()); } if (other.hasAggregateValue()) { bitField0_ |= 0x00000040; aggregateValue_ = other.aggregateValue_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getNameCount(); i++) { if (!getName(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.UninterpretedOption parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.UninterpretedOption) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .google.protobuf.UninterpretedOption.NamePart name = 2; private java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> name_ = java.util.Collections.emptyList(); private void ensureNameIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { name_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart>(name_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> nameBuilder_; /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> getNameList() { if (nameBuilder_ == null) { return java.util.Collections.unmodifiableList(name_); } else { return nameBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public int getNameCount() { if (nameBuilder_ == null) { return name_.size(); } else { return nameBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart getName(int index) { if (nameBuilder_ == null) { return name_.get(index); } else { return nameBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder setName( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.set(index, value); onChanged(); } else { nameBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder setName( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { if (nameBuilder_ == null) { ensureNameIsMutable(); name_.set(index, builderForValue.build()); onChanged(); } else { nameBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder addName(com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.add(value); onChanged(); } else { nameBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder addName( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart value) { if (nameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.add(index, value); onChanged(); } else { nameBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder addName( com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { if (nameBuilder_ == null) { ensureNameIsMutable(); name_.add(builderForValue.build()); onChanged(); } else { nameBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder addName( int index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder builderForValue) { if (nameBuilder_ == null) { ensureNameIsMutable(); name_.add(index, builderForValue.build()); onChanged(); } else { nameBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder addAllName( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart> values) { if (nameBuilder_ == null) { ensureNameIsMutable(); super.addAll(values, name_); onChanged(); } else { nameBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder clearName() { if (nameBuilder_ == null) { name_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nameBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public Builder removeName(int index) { if (nameBuilder_ == null) { ensureNameIsMutable(); name_.remove(index); onChanged(); } else { nameBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder getNameBuilder( int index) { return getNameFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder( int index) { if (nameBuilder_ == null) { return name_.get(index); } else { return nameBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameOrBuilderList() { if (nameBuilder_ != null) { return nameBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(name_); } } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder addNameBuilder() { return getNameFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder addNameBuilder( int index) { return getNameFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.getDefaultInstance()); } /** * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</code> */ public java.util.List<com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder> getNameBuilderList() { return getNameFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameFieldBuilder() { if (nameBuilder_ == null) { nameBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePart.Builder, com.google.protobuf.DescriptorProtos.UninterpretedOption.NamePartOrBuilder>( name_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); name_ = null; } return nameBuilder_; } // optional string identifier_value = 3; private java.lang.Object identifierValue_ = ""; /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public boolean hasIdentifierValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public java.lang.String getIdentifierValue() { java.lang.Object ref = identifierValue_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); identifierValue_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public com.google.protobuf.ByteString getIdentifierValueBytes() { java.lang.Object ref = identifierValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identifierValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public Builder setIdentifierValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; identifierValue_ = value; onChanged(); return this; } /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public Builder clearIdentifierValue() { bitField0_ = (bitField0_ & ~0x00000002); identifierValue_ = getDefaultInstance().getIdentifierValue(); onChanged(); return this; } /** * <code>optional string identifier_value = 3;</code> * * <pre> * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * </pre> */ public Builder setIdentifierValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; identifierValue_ = value; onChanged(); return this; } // optional uint64 positive_int_value = 4; private long positiveIntValue_ ; /** * <code>optional uint64 positive_int_value = 4;</code> */ public boolean hasPositiveIntValue() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional uint64 positive_int_value = 4;</code> */ public long getPositiveIntValue() { return positiveIntValue_; } /** * <code>optional uint64 positive_int_value = 4;</code> */ public Builder setPositiveIntValue(long value) { bitField0_ |= 0x00000004; positiveIntValue_ = value; onChanged(); return this; } /** * <code>optional uint64 positive_int_value = 4;</code> */ public Builder clearPositiveIntValue() { bitField0_ = (bitField0_ & ~0x00000004); positiveIntValue_ = 0L; onChanged(); return this; } // optional int64 negative_int_value = 5; private long negativeIntValue_ ; /** * <code>optional int64 negative_int_value = 5;</code> */ public boolean hasNegativeIntValue() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional int64 negative_int_value = 5;</code> */ public long getNegativeIntValue() { return negativeIntValue_; } /** * <code>optional int64 negative_int_value = 5;</code> */ public Builder setNegativeIntValue(long value) { bitField0_ |= 0x00000008; negativeIntValue_ = value; onChanged(); return this; } /** * <code>optional int64 negative_int_value = 5;</code> */ public Builder clearNegativeIntValue() { bitField0_ = (bitField0_ & ~0x00000008); negativeIntValue_ = 0L; onChanged(); return this; } // optional double double_value = 6; private double doubleValue_ ; /** * <code>optional double double_value = 6;</code> */ public boolean hasDoubleValue() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional double double_value = 6;</code> */ public double getDoubleValue() { return doubleValue_; } /** * <code>optional double double_value = 6;</code> */ public Builder setDoubleValue(double value) { bitField0_ |= 0x00000010; doubleValue_ = value; onChanged(); return this; } /** * <code>optional double double_value = 6;</code> */ public Builder clearDoubleValue() { bitField0_ = (bitField0_ & ~0x00000010); doubleValue_ = 0D; onChanged(); return this; } // optional bytes string_value = 7; private com.google.protobuf.ByteString stringValue_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes string_value = 7;</code> */ public boolean hasStringValue() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** * <code>optional bytes string_value = 7;</code> */ public com.google.protobuf.ByteString getStringValue() { return stringValue_; } /** * <code>optional bytes string_value = 7;</code> */ public Builder setStringValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; stringValue_ = value; onChanged(); return this; } /** * <code>optional bytes string_value = 7;</code> */ public Builder clearStringValue() { bitField0_ = (bitField0_ & ~0x00000020); stringValue_ = getDefaultInstance().getStringValue(); onChanged(); return this; } // optional string aggregate_value = 8; private java.lang.Object aggregateValue_ = ""; /** * <code>optional string aggregate_value = 8;</code> */ public boolean hasAggregateValue() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** * <code>optional string aggregate_value = 8;</code> */ public java.lang.String getAggregateValue() { java.lang.Object ref = aggregateValue_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); aggregateValue_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string aggregate_value = 8;</code> */ public com.google.protobuf.ByteString getAggregateValueBytes() { java.lang.Object ref = aggregateValue_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregateValue_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string aggregate_value = 8;</code> */ public Builder setAggregateValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; aggregateValue_ = value; onChanged(); return this; } /** * <code>optional string aggregate_value = 8;</code> */ public Builder clearAggregateValue() { bitField0_ = (bitField0_ & ~0x00000040); aggregateValue_ = getDefaultInstance().getAggregateValue(); onChanged(); return this; } /** * <code>optional string aggregate_value = 8;</code> */ public Builder setAggregateValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; aggregateValue_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:google.protobuf.UninterpretedOption) } static { defaultInstance = new UninterpretedOption(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption) } public interface SourceCodeInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .google.protobuf.SourceCodeInfo.Location location = 1; /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList(); /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index); /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ int getLocationCount(); /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> getLocationOrBuilderList(); /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( int index); } /** * Protobuf type {@code google.protobuf.SourceCodeInfo} * * <pre> * Encapsulates information about the original source file from which a * FileDescriptorProto was generated. * </pre> */ public static final class SourceCodeInfo extends com.google.protobuf.GeneratedMessage implements SourceCodeInfoOrBuilder { // Use SourceCodeInfo.newBuilder() to construct. private SourceCodeInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private SourceCodeInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final SourceCodeInfo defaultInstance; public static SourceCodeInfo getDefaultInstance() { return defaultInstance; } public SourceCodeInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SourceCodeInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { location_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location>(); mutable_bitField0_ |= 0x00000001; } location_.add(input.readMessage(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { location_ = java.util.Collections.unmodifiableList(location_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_SourceCodeInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.SourceCodeInfo.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder.class); } public static com.google.protobuf.Parser<SourceCodeInfo> PARSER = new com.google.protobuf.AbstractParser<SourceCodeInfo>() { public SourceCodeInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SourceCodeInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<SourceCodeInfo> getParserForType() { return PARSER; } public interface LocationOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated int32 path = 1 [packed = true]; /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ java.util.List<java.lang.Integer> getPathList(); /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ int getPathCount(); /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ int getPath(int index); // repeated int32 span = 2 [packed = true]; /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ java.util.List<java.lang.Integer> getSpanList(); /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ int getSpanCount(); /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ int getSpan(int index); // optional string leading_comments = 3; /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ boolean hasLeadingComments(); /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ java.lang.String getLeadingComments(); /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ com.google.protobuf.ByteString getLeadingCommentsBytes(); // optional string trailing_comments = 4; /** * <code>optional string trailing_comments = 4;</code> */ boolean hasTrailingComments(); /** * <code>optional string trailing_comments = 4;</code> */ java.lang.String getTrailingComments(); /** * <code>optional string trailing_comments = 4;</code> */ com.google.protobuf.ByteString getTrailingCommentsBytes(); } /** * Protobuf type {@code google.protobuf.SourceCodeInfo.Location} */ public static final class Location extends com.google.protobuf.GeneratedMessage implements LocationOrBuilder { // Use Location.newBuilder() to construct. private Location(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private Location(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final Location defaultInstance; public static Location getDefaultInstance() { return defaultInstance; } public Location getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Location( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { path_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000001; } path_.add(input.readInt32()); break; } case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { path_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000001; } while (input.getBytesUntilLimit() > 0) { path_.add(input.readInt32()); } input.popLimit(limit); break; } case 16: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { span_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000002; } span_.add(input.readInt32()); break; } case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) { span_ = new java.util.ArrayList<java.lang.Integer>(); mutable_bitField0_ |= 0x00000002; } while (input.getBytesUntilLimit() > 0) { span_.add(input.readInt32()); } input.popLimit(limit); break; } case 26: { bitField0_ |= 0x00000001; leadingComments_ = input.readBytes(); break; } case 34: { bitField0_ |= 0x00000002; trailingComments_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { path_ = java.util.Collections.unmodifiableList(path_); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { span_ = java.util.Collections.unmodifiableList(span_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder.class); } public static com.google.protobuf.Parser<Location> PARSER = new com.google.protobuf.AbstractParser<Location>() { public Location parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Location(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<Location> getParserForType() { return PARSER; } private int bitField0_; // repeated int32 path = 1 [packed = true]; public static final int PATH_FIELD_NUMBER = 1; private java.util.List<java.lang.Integer> path_; /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public java.util.List<java.lang.Integer> getPathList() { return path_; } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public int getPathCount() { return path_.size(); } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public int getPath(int index) { return path_.get(index); } private int pathMemoizedSerializedSize = -1; // repeated int32 span = 2 [packed = true]; public static final int SPAN_FIELD_NUMBER = 2; private java.util.List<java.lang.Integer> span_; /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public java.util.List<java.lang.Integer> getSpanList() { return span_; } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public int getSpanCount() { return span_.size(); } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public int getSpan(int index) { return span_.get(index); } private int spanMemoizedSerializedSize = -1; // optional string leading_comments = 3; public static final int LEADING_COMMENTS_FIELD_NUMBER = 3; private java.lang.Object leadingComments_; /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public boolean hasLeadingComments() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public java.lang.String getLeadingComments() { java.lang.Object ref = leadingComments_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { leadingComments_ = s; } return s; } } /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public com.google.protobuf.ByteString getLeadingCommentsBytes() { java.lang.Object ref = leadingComments_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); leadingComments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string trailing_comments = 4; public static final int TRAILING_COMMENTS_FIELD_NUMBER = 4; private java.lang.Object trailingComments_; /** * <code>optional string trailing_comments = 4;</code> */ public boolean hasTrailingComments() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string trailing_comments = 4;</code> */ public java.lang.String getTrailingComments() { java.lang.Object ref = trailingComments_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { trailingComments_ = s; } return s; } } /** * <code>optional string trailing_comments = 4;</code> */ public com.google.protobuf.ByteString getTrailingCommentsBytes() { java.lang.Object ref = trailingComments_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trailingComments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { path_ = java.util.Collections.emptyList(); span_ = java.util.Collections.emptyList(); leadingComments_ = ""; trailingComments_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (getPathList().size() > 0) { output.writeRawVarint32(10); output.writeRawVarint32(pathMemoizedSerializedSize); } for (int i = 0; i < path_.size(); i++) { output.writeInt32NoTag(path_.get(i)); } if (getSpanList().size() > 0) { output.writeRawVarint32(18); output.writeRawVarint32(spanMemoizedSerializedSize); } for (int i = 0; i < span_.size(); i++) { output.writeInt32NoTag(span_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(3, getLeadingCommentsBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(4, getTrailingCommentsBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < path_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(path_.get(i)); } size += dataSize; if (!getPathList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } pathMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < span_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(span_.get(i)); } size += dataSize; if (!getSpanList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } spanMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getLeadingCommentsBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getTrailingCommentsBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.SourceCodeInfo.Location} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); path_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); span_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); leadingComments_ = ""; bitField0_ = (bitField0_ & ~0x00000004); trailingComments_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; } public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location build() { com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location buildPartial() { com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location result = new com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { path_ = java.util.Collections.unmodifiableList(path_); bitField0_ = (bitField0_ & ~0x00000001); } result.path_ = path_; if (((bitField0_ & 0x00000002) == 0x00000002)) { span_ = java.util.Collections.unmodifiableList(span_); bitField0_ = (bitField0_ & ~0x00000002); } result.span_ = span_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.leadingComments_ = leadingComments_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000002; } result.trailingComments_ = trailingComments_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) { return mergeFrom((com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location other) { if (other == getDefaultInstance()) return this; if (!other.path_.isEmpty()) { if (path_.isEmpty()) { path_ = other.path_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePathIsMutable(); path_.addAll(other.path_); } onChanged(); } if (!other.span_.isEmpty()) { if (span_.isEmpty()) { span_ = other.span_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSpanIsMutable(); span_.addAll(other.span_); } onChanged(); } if (other.hasLeadingComments()) { bitField0_ |= 0x00000004; leadingComments_ = other.leadingComments_; onChanged(); } if (other.hasTrailingComments()) { bitField0_ |= 0x00000008; trailingComments_ = other.trailingComments_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated int32 path = 1 [packed = true]; private java.util.List<java.lang.Integer> path_ = java.util.Collections.emptyList(); private void ensurePathIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { path_ = new java.util.ArrayList<java.lang.Integer>(path_); bitField0_ |= 0x00000001; } } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public java.util.List<java.lang.Integer> getPathList() { return java.util.Collections.unmodifiableList(path_); } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public int getPathCount() { return path_.size(); } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public int getPath(int index) { return path_.get(index); } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public Builder setPath( int index, int value) { ensurePathIsMutable(); path_.set(index, value); onChanged(); return this; } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public Builder addPath(int value) { ensurePathIsMutable(); path_.add(value); onChanged(); return this; } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public Builder addAllPath( java.lang.Iterable<? extends java.lang.Integer> values) { ensurePathIsMutable(); super.addAll(values, path_); onChanged(); return this; } /** * <code>repeated int32 path = 1 [packed = true];</code> * * <pre> * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition. For * example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * </pre> */ public Builder clearPath() { path_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } // repeated int32 span = 2 [packed = true]; private java.util.List<java.lang.Integer> span_ = java.util.Collections.emptyList(); private void ensureSpanIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { span_ = new java.util.ArrayList<java.lang.Integer>(span_); bitField0_ |= 0x00000002; } } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public java.util.List<java.lang.Integer> getSpanList() { return java.util.Collections.unmodifiableList(span_); } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public int getSpanCount() { return span_.size(); } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public int getSpan(int index) { return span_.get(index); } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public Builder setSpan( int index, int value) { ensureSpanIsMutable(); span_.set(index, value); onChanged(); return this; } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public Builder addSpan(int value) { ensureSpanIsMutable(); span_.add(value); onChanged(); return this; } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public Builder addAllSpan( java.lang.Iterable<? extends java.lang.Integer> values) { ensureSpanIsMutable(); super.addAll(values, span_); onChanged(); return this; } /** * <code>repeated int32 span = 2 [packed = true];</code> * * <pre> * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * </pre> */ public Builder clearSpan() { span_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } // optional string leading_comments = 3; private java.lang.Object leadingComments_ = ""; /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public boolean hasLeadingComments() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public java.lang.String getLeadingComments() { java.lang.Object ref = leadingComments_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); leadingComments_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public com.google.protobuf.ByteString getLeadingCommentsBytes() { java.lang.Object ref = leadingComments_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); leadingComments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public Builder setLeadingComments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; leadingComments_ = value; onChanged(); return this; } /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public Builder clearLeadingComments() { bitField0_ = (bitField0_ & ~0x00000004); leadingComments_ = getDefaultInstance().getLeadingComments(); onChanged(); return this; } /** * <code>optional string leading_comments = 3;</code> * * <pre> * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to qux. * // * // Another line attached to qux. * optional double qux = 4; * * optional string corge = 5; * /&#42; Block comment attached * * to corge. Leading asterisks * * will be removed. *&#47; * /&#42; Block comment attached to * * grault. *&#47; * optional int32 grault = 6; * </pre> */ public Builder setLeadingCommentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; leadingComments_ = value; onChanged(); return this; } // optional string trailing_comments = 4; private java.lang.Object trailingComments_ = ""; /** * <code>optional string trailing_comments = 4;</code> */ public boolean hasTrailingComments() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string trailing_comments = 4;</code> */ public java.lang.String getTrailingComments() { java.lang.Object ref = trailingComments_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); trailingComments_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string trailing_comments = 4;</code> */ public com.google.protobuf.ByteString getTrailingCommentsBytes() { java.lang.Object ref = trailingComments_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); trailingComments_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string trailing_comments = 4;</code> */ public Builder setTrailingComments( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; trailingComments_ = value; onChanged(); return this; } /** * <code>optional string trailing_comments = 4;</code> */ public Builder clearTrailingComments() { bitField0_ = (bitField0_ & ~0x00000008); trailingComments_ = getDefaultInstance().getTrailingComments(); onChanged(); return this; } /** * <code>optional string trailing_comments = 4;</code> */ public Builder setTrailingCommentsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; trailingComments_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:google.protobuf.SourceCodeInfo.Location) } static { defaultInstance = new Location(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location) } // repeated .google.protobuf.SourceCodeInfo.Location location = 1; public static final int LOCATION_FIELD_NUMBER = 1; private java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> location_; /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { return location_; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> getLocationOrBuilderList() { return location_; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public int getLocationCount() { return location_.size(); } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { return location_.get(index); } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( int index) { return location_.get(index); } private void initFields() { location_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < location_.size(); i++) { output.writeMessage(1, location_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < location_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, location_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static com.google.protobuf.DescriptorProtos.SourceCodeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.google.protobuf.DescriptorProtos.SourceCodeInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code google.protobuf.SourceCodeInfo} * * <pre> * Encapsulates information about the original source file from which a * FileDescriptorProto was generated. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.google.protobuf.DescriptorProtos.SourceCodeInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return internal_static_google_protobuf_SourceCodeInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.DescriptorProtos.SourceCodeInfo.class, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Builder.class); } // Construct using com.google.protobuf.DescriptorProtos.SourceCodeInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (alwaysUseFieldBuilders) { getLocationFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (locationBuilder_ == null) { location_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { locationBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return internal_static_google_protobuf_SourceCodeInfo_descriptor; } public com.google.protobuf.DescriptorProtos.SourceCodeInfo getDefaultInstanceForType() { return getDefaultInstance(); } public com.google.protobuf.DescriptorProtos.SourceCodeInfo build() { com.google.protobuf.DescriptorProtos.SourceCodeInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.google.protobuf.DescriptorProtos.SourceCodeInfo buildPartial() { com.google.protobuf.DescriptorProtos.SourceCodeInfo result = new com.google.protobuf.DescriptorProtos.SourceCodeInfo(this); int from_bitField0_ = bitField0_; if (locationBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { location_ = java.util.Collections.unmodifiableList(location_); bitField0_ = (bitField0_ & ~0x00000001); } result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.protobuf.DescriptorProtos.SourceCodeInfo) { return mergeFrom((com.google.protobuf.DescriptorProtos.SourceCodeInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.protobuf.DescriptorProtos.SourceCodeInfo other) { if (other == getDefaultInstance()) return this; if (locationBuilder_ == null) { if (!other.location_.isEmpty()) { if (location_.isEmpty()) { location_ = other.location_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLocationIsMutable(); location_.addAll(other.location_); } onChanged(); } } else { if (!other.location_.isEmpty()) { if (locationBuilder_.isEmpty()) { locationBuilder_.dispose(); locationBuilder_ = null; location_ = other.location_; bitField0_ = (bitField0_ & ~0x00000001); locationBuilder_ = alwaysUseFieldBuilders ? getLocationFieldBuilder() : null; } else { locationBuilder_.addAllMessages(other.location_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.DescriptorProtos.SourceCodeInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.protobuf.DescriptorProtos.SourceCodeInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated .google.protobuf.SourceCodeInfo.Location location = 1; private java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> location_ = java.util.Collections.emptyList(); private void ensureLocationIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { location_ = new java.util.ArrayList<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location>(location_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> locationBuilder_; /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> getLocationList() { if (locationBuilder_ == null) { return java.util.Collections.unmodifiableList(location_); } else { return locationBuilder_.getMessageList(); } } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public int getLocationCount() { if (locationBuilder_ == null) { return location_.size(); } else { return locationBuilder_.getCount(); } } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location getLocation(int index) { if (locationBuilder_ == null) { return location_.get(index); } else { return locationBuilder_.getMessage(index); } } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder setLocation( int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.set(index, value); onChanged(); } else { locationBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder setLocation( int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.set(index, builderForValue.build()); onChanged(); } else { locationBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder addLocation(com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.add(value); onChanged(); } else { locationBuilder_.addMessage(value); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder addLocation( int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationIsMutable(); location_.add(index, value); onChanged(); } else { locationBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder addLocation( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.add(builderForValue.build()); onChanged(); } else { locationBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder addLocation( int index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder builderForValue) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.add(index, builderForValue.build()); onChanged(); } else { locationBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder addAllLocation( java.lang.Iterable<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location> values) { if (locationBuilder_ == null) { ensureLocationIsMutable(); super.addAll(values, location_); onChanged(); } else { locationBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { locationBuilder_.clear(); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public Builder removeLocation(int index) { if (locationBuilder_ == null) { ensureLocationIsMutable(); location_.remove(index); onChanged(); } else { locationBuilder_.remove(index); } return this; } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder getLocationBuilder( int index) { return getLocationFieldBuilder().getBuilder(index); } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder getLocationOrBuilder( int index) { if (locationBuilder_ == null) { return location_.get(index); } else { return locationBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public java.util.List<? extends com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> getLocationOrBuilderList() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(location_); } } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder addLocationBuilder() { return getLocationFieldBuilder().addBuilder( com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance()); } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder addLocationBuilder( int index) { return getLocationFieldBuilder().addBuilder( index, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.getDefaultInstance()); } /** * <code>repeated .google.protobuf.SourceCodeInfo.Location location = 1;</code> * * <pre> * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendent. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * </pre> */ public java.util.List<com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder> getLocationBuilderList() { return getLocationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location, com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder, com.google.protobuf.DescriptorProtos.SourceCodeInfo.LocationOrBuilder>( location_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } // @@protoc_insertion_point(builder_scope:google.protobuf.SourceCodeInfo) } static { defaultInstance = new SourceCodeInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo) } private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FileDescriptorSet_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FileDescriptorProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_DescriptorProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_DescriptorProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FieldDescriptorProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumDescriptorProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumValueDescriptorProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_ServiceDescriptorProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_MethodDescriptorProto_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FileOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_FileOptions_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_MessageOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_MessageOptions_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_FieldOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_FieldOptions_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_EnumOptions_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_EnumValueOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_ServiceOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_ServiceOptions_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_MethodOptions_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_MethodOptions_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_UninterpretedOption_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_SourceCodeInfo_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_google_protobuf_SourceCodeInfo_Location_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n google/protobuf/descriptor.proto\022\017goog" + "le.protobuf\"G\n\021FileDescriptorSet\0222\n\004file" + "\030\001 \003(\0132$.google.protobuf.FileDescriptorP" + "roto\"\313\003\n\023FileDescriptorProto\022\014\n\004name\030\001 \001" + "(\t\022\017\n\007package\030\002 \001(\t\022\022\n\ndependency\030\003 \003(\t\022" + "\031\n\021public_dependency\030\n \003(\005\022\027\n\017weak_depen" + "dency\030\013 \003(\005\0226\n\014message_type\030\004 \003(\0132 .goog" + "le.protobuf.DescriptorProto\0227\n\tenum_type" + "\030\005 \003(\0132$.google.protobuf.EnumDescriptorP" + "roto\0228\n\007service\030\006 \003(\0132\'.google.protobuf.", "ServiceDescriptorProto\0228\n\textension\030\007 \003(" + "\0132%.google.protobuf.FieldDescriptorProto" + "\022-\n\007options\030\010 \001(\0132\034.google.protobuf.File" + "Options\0229\n\020source_code_info\030\t \001(\0132\037.goog" + "le.protobuf.SourceCodeInfo\"\251\003\n\017Descripto" + "rProto\022\014\n\004name\030\001 \001(\t\0224\n\005field\030\002 \003(\0132%.go" + "ogle.protobuf.FieldDescriptorProto\0228\n\tex" + "tension\030\006 \003(\0132%.google.protobuf.FieldDes" + "criptorProto\0225\n\013nested_type\030\003 \003(\0132 .goog" + "le.protobuf.DescriptorProto\0227\n\tenum_type", "\030\004 \003(\0132$.google.protobuf.EnumDescriptorP" + "roto\022H\n\017extension_range\030\005 \003(\0132/.google.p" + "rotobuf.DescriptorProto.ExtensionRange\0220" + "\n\007options\030\007 \001(\0132\037.google.protobuf.Messag" + "eOptions\032,\n\016ExtensionRange\022\r\n\005start\030\001 \001(" + "\005\022\013\n\003end\030\002 \001(\005\"\224\005\n\024FieldDescriptorProto\022" + "\014\n\004name\030\001 \001(\t\022\016\n\006number\030\003 \001(\005\022:\n\005label\030\004" + " \001(\0162+.google.protobuf.FieldDescriptorPr" + "oto.Label\0228\n\004type\030\005 \001(\0162*.google.protobu" + "f.FieldDescriptorProto.Type\022\021\n\ttype_name", "\030\006 \001(\t\022\020\n\010extendee\030\002 \001(\t\022\025\n\rdefault_valu" + "e\030\007 \001(\t\022.\n\007options\030\010 \001(\0132\035.google.protob" + "uf.FieldOptions\"\266\002\n\004Type\022\017\n\013TYPE_DOUBLE\020" + "\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT64\020\003\022\017\n\013TYP" + "E_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014TYPE_FIXED" + "64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE_BOOL\020\010\022\017\n" + "\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n\022\020\n\014TYPE_M" + "ESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TYPE_UINT32\020" + "\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXED32\020\017\022\021\n\rT" + "YPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020\021\022\017\n\013TYPE_", "SINT64\020\022\"C\n\005Label\022\022\n\016LABEL_OPTIONAL\020\001\022\022\n" + "\016LABEL_REQUIRED\020\002\022\022\n\016LABEL_REPEATED\020\003\"\214\001" + "\n\023EnumDescriptorProto\022\014\n\004name\030\001 \001(\t\0228\n\005v" + "alue\030\002 \003(\0132).google.protobuf.EnumValueDe" + "scriptorProto\022-\n\007options\030\003 \001(\0132\034.google." + "protobuf.EnumOptions\"l\n\030EnumValueDescrip" + "torProto\022\014\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\0222" + "\n\007options\030\003 \001(\0132!.google.protobuf.EnumVa" + "lueOptions\"\220\001\n\026ServiceDescriptorProto\022\014\n" + "\004name\030\001 \001(\t\0226\n\006method\030\002 \003(\0132&.google.pro", "tobuf.MethodDescriptorProto\0220\n\007options\030\003" + " \001(\0132\037.google.protobuf.ServiceOptions\"\177\n" + "\025MethodDescriptorProto\022\014\n\004name\030\001 \001(\t\022\022\n\n" + "input_type\030\002 \001(\t\022\023\n\013output_type\030\003 \001(\t\022/\n" + "\007options\030\004 \001(\0132\036.google.protobuf.MethodO" + "ptions\"\351\003\n\013FileOptions\022\024\n\014java_package\030\001" + " \001(\t\022\034\n\024java_outer_classname\030\010 \001(\t\022\"\n\023ja" + "va_multiple_files\030\n \001(\010:\005false\022,\n\035java_g" + "enerate_equals_and_hash\030\024 \001(\010:\005false\022F\n\014" + "optimize_for\030\t \001(\0162).google.protobuf.Fil", "eOptions.OptimizeMode:\005SPEED\022\022\n\ngo_packa" + "ge\030\013 \001(\t\022\"\n\023cc_generic_services\030\020 \001(\010:\005f" + "alse\022$\n\025java_generic_services\030\021 \001(\010:\005fal" + "se\022\"\n\023py_generic_services\030\022 \001(\010:\005false\022C" + "\n\024uninterpreted_option\030\347\007 \003(\0132$.google.p" + "rotobuf.UninterpretedOption\":\n\014OptimizeM" + "ode\022\t\n\005SPEED\020\001\022\r\n\tCODE_SIZE\020\002\022\020\n\014LITE_RU" + "NTIME\020\003*\t\010\350\007\020\200\200\200\200\002\"\270\001\n\016MessageOptions\022&\n" + "\027message_set_wire_format\030\001 \001(\010:\005false\022.\n" + "\037no_standard_descriptor_accessor\030\002 \001(\010:\005", "false\022C\n\024uninterpreted_option\030\347\007 \003(\0132$.g" + "oogle.protobuf.UninterpretedOption*\t\010\350\007\020" + "\200\200\200\200\002\"\276\002\n\014FieldOptions\022:\n\005ctype\030\001 \001(\0162#." + "google.protobuf.FieldOptions.CType:\006STRI" + "NG\022\016\n\006packed\030\002 \001(\010\022\023\n\004lazy\030\005 \001(\010:\005false\022" + "\031\n\ndeprecated\030\003 \001(\010:\005false\022\034\n\024experiment" + "al_map_key\030\t \001(\t\022\023\n\004weak\030\n \001(\010:\005false\022C\n" + "\024uninterpreted_option\030\347\007 \003(\0132$.google.pr" + "otobuf.UninterpretedOption\"/\n\005CType\022\n\n\006S" + "TRING\020\000\022\010\n\004CORD\020\001\022\020\n\014STRING_PIECE\020\002*\t\010\350\007", "\020\200\200\200\200\002\"x\n\013EnumOptions\022\031\n\013allow_alias\030\002 \001" + "(\010:\004true\022C\n\024uninterpreted_option\030\347\007 \003(\0132" + "$.google.protobuf.UninterpretedOption*\t\010" + "\350\007\020\200\200\200\200\002\"b\n\020EnumValueOptions\022C\n\024uninterp" + "reted_option\030\347\007 \003(\0132$.google.protobuf.Un" + "interpretedOption*\t\010\350\007\020\200\200\200\200\002\"`\n\016ServiceO" + "ptions\022C\n\024uninterpreted_option\030\347\007 \003(\0132$." + "google.protobuf.UninterpretedOption*\t\010\350\007" + "\020\200\200\200\200\002\"_\n\rMethodOptions\022C\n\024uninterpreted" + "_option\030\347\007 \003(\0132$.google.protobuf.Uninter", "pretedOption*\t\010\350\007\020\200\200\200\200\002\"\236\002\n\023Uninterprete" + "dOption\022;\n\004name\030\002 \003(\0132-.google.protobuf." + "UninterpretedOption.NamePart\022\030\n\020identifi" + "er_value\030\003 \001(\t\022\032\n\022positive_int_value\030\004 \001" + "(\004\022\032\n\022negative_int_value\030\005 \001(\003\022\024\n\014double" + "_value\030\006 \001(\001\022\024\n\014string_value\030\007 \001(\014\022\027\n\017ag" + "gregate_value\030\010 \001(\t\0323\n\010NamePart\022\021\n\tname_" + "part\030\001 \002(\t\022\024\n\014is_extension\030\002 \002(\010\"\261\001\n\016Sou" + "rceCodeInfo\022:\n\010location\030\001 \003(\0132(.google.p" + "rotobuf.SourceCodeInfo.Location\032c\n\010Locat", "ion\022\020\n\004path\030\001 \003(\005B\002\020\001\022\020\n\004span\030\002 \003(\005B\002\020\001\022" + "\030\n\020leading_comments\030\003 \001(\t\022\031\n\021trailing_co" + "mments\030\004 \001(\tB)\n\023com.google.protobufB\020Des" + "criptorProtosH\001" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_google_protobuf_FileDescriptorSet_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_protobuf_FileDescriptorSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_FileDescriptorSet_descriptor, new java.lang.String[] { "File", }); internal_static_google_protobuf_FileDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_protobuf_FileDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_FileDescriptorProto_descriptor, new java.lang.String[] { "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", }); internal_static_google_protobuf_DescriptorProto_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_protobuf_DescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_DescriptorProto_descriptor, new java.lang.String[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "Options", }); internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor = internal_static_google_protobuf_DescriptorProto_descriptor.getNestedTypes().get(0); internal_static_google_protobuf_DescriptorProto_ExtensionRange_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_DescriptorProto_ExtensionRange_descriptor, new java.lang.String[] { "Start", "End", }); internal_static_google_protobuf_FieldDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_google_protobuf_FieldDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_FieldDescriptorProto_descriptor, new java.lang.String[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "Options", }); internal_static_google_protobuf_EnumDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_google_protobuf_EnumDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_EnumDescriptorProto_descriptor, new java.lang.String[] { "Name", "Value", "Options", }); internal_static_google_protobuf_EnumValueDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_google_protobuf_EnumValueDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_EnumValueDescriptorProto_descriptor, new java.lang.String[] { "Name", "Number", "Options", }); internal_static_google_protobuf_ServiceDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_google_protobuf_ServiceDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_ServiceDescriptorProto_descriptor, new java.lang.String[] { "Name", "Method", "Options", }); internal_static_google_protobuf_MethodDescriptorProto_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_google_protobuf_MethodDescriptorProto_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_MethodDescriptorProto_descriptor, new java.lang.String[] { "Name", "InputType", "OutputType", "Options", }); internal_static_google_protobuf_FileOptions_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_google_protobuf_FileOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_FileOptions_descriptor, new java.lang.String[] { "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "UninterpretedOption", }); internal_static_google_protobuf_MessageOptions_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_google_protobuf_MessageOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_MessageOptions_descriptor, new java.lang.String[] { "MessageSetWireFormat", "NoStandardDescriptorAccessor", "UninterpretedOption", }); internal_static_google_protobuf_FieldOptions_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_google_protobuf_FieldOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_FieldOptions_descriptor, new java.lang.String[] { "Ctype", "Packed", "Lazy", "Deprecated", "ExperimentalMapKey", "Weak", "UninterpretedOption", }); internal_static_google_protobuf_EnumOptions_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_google_protobuf_EnumOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_EnumOptions_descriptor, new java.lang.String[] { "AllowAlias", "UninterpretedOption", }); internal_static_google_protobuf_EnumValueOptions_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_google_protobuf_EnumValueOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_EnumValueOptions_descriptor, new java.lang.String[] { "UninterpretedOption", }); internal_static_google_protobuf_ServiceOptions_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_google_protobuf_ServiceOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_ServiceOptions_descriptor, new java.lang.String[] { "UninterpretedOption", }); internal_static_google_protobuf_MethodOptions_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_google_protobuf_MethodOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_MethodOptions_descriptor, new java.lang.String[] { "UninterpretedOption", }); internal_static_google_protobuf_UninterpretedOption_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_google_protobuf_UninterpretedOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_UninterpretedOption_descriptor, new java.lang.String[] { "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue", }); internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor = internal_static_google_protobuf_UninterpretedOption_descriptor.getNestedTypes().get(0); internal_static_google_protobuf_UninterpretedOption_NamePart_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_UninterpretedOption_NamePart_descriptor, new java.lang.String[] { "NamePart", "IsExtension", }); internal_static_google_protobuf_SourceCodeInfo_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_google_protobuf_SourceCodeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_SourceCodeInfo_descriptor, new java.lang.String[] { "Location", }); internal_static_google_protobuf_SourceCodeInfo_Location_descriptor = internal_static_google_protobuf_SourceCodeInfo_descriptor.getNestedTypes().get(0); internal_static_google_protobuf_SourceCodeInfo_Location_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_protobuf_SourceCodeInfo_Location_descriptor, new java.lang.String[] { "Path", "Span", "LeadingComments", "TrailingComments", }); return null; } }
04238697-9ee0-4878-a264-bf9d2bee7bef
public void setCustomObject3Name(crmondemand.xml.opportunity.query.QueryType customObject3Name) { this.customObject3Name = customObject3Name; }
af3d5bdb-55e3-4d12-8571-c345709f15e0
public crmondemand.xml.contact.query.QueryType getCustomPickList74() { return this.customPickList74; }
108c637f-aac8-4658-b291-52988f1fc737
public crmondemand.xml.customobject3.query.QueryType getProductName() { return this.productName; }
a0030268-5c57-482b-bac7-b1bdadbcfc2c
public java.lang.String getCertficationType() { return this.certficationType; }
5fd3cf34-59b4-45f4-8308-87f5fcbcdf87
public crmondemand.xml.contact.query.QueryType getCustomInteger33() { return this.customInteger33; }
09e2b212-8847-45b1-a149-ed1a4f567540
public crmondemand.xml.contact.query.QueryType getCustomDate43() { return this.customDate43; }
a3d9cf82-933b-4a64-9ef8-cc454977a491
public ResourceException(Throwable cause) { super(cause); }
072351b3-0dc1-41b5-8eb5-3f66c01d9c9f
*/ Set<ConfigurationArea> getAllImportedConfigurationAreas() { return _allImportedConfigurationAreas; }
c0107e17-6046-4199-8cc4-6ea79dc46ed9
public crmondemand.xml.customobject3.query.QueryType getCustomText48() { return this.customText48; }
96f4ebba-0ad8-4f0f-b16c-c731a52ad21e
public crmondemand.xml.customobject3.query.QueryType getCustomBoolean34() { return this.customBoolean34; }
e2ab70d3-0175-4531-8fc6-80fcc4d674b7
public void doGet(String path) throws Exception{ //absPathпܰ?test=1֮Ϣ //ҳҳӦ͸ͻʱִhtmlʱhtmlְ󣬴ʱ·Ϊ·ʱν String absPath=Tools.parsePath(Listener.WEB_ROOT+path); System.out.println("Դ·========== "+absPath); String queryString =Tools.getQueryStringByPath(absPath); String filePath=Tools.getFilePath(absPath);//ȥܵ?IJ File f=new File(filePath); String fileType=Tools.parseFileSuffix(filePath);//ȡļ System.out.println("ļ========"+fileType); if(!f.canRead()){ System.out.println("can not read"); sendResponse(HTTP.HTTP_NOT_FOUND,null,null,filePath+"can not read ,please check~"); return; } if(!f.exists()){ //ûзԴ System.out.println("ûзĿԴ"); sendResponse(HTTP.HTTP_NOT_FOUND,null,null,null); return; } else{ if("php".equals(fileType)){ //phpļ Ժ //phpͲhtml String html=PHPModle.runPHP(filePath,queryString);//ȡ phpͺ sendResponsePHP(HTTP.HTTP_OK,html,null); return; } else{ //ȡļ Ҫܶж վֵ֧ //ȡĿԴ д //ָļ System.out.println("ǰ"+MIME.getMIMEBySuffix(fileType)); BufferedInputStream bis = new BufferedInputStream(new FileInputStream(f)); sendResponse(HTTP.HTTP_OK,bis,fileType,null); return; } } }
a386f7b1-f1a9-450a-b4a0-9c2f3b87176d
public void setCustomObject8Id(java.lang.String customObject8Id) { this.customObject8Id = customObject8Id; }
0636750c-d1b3-43fa-94bb-f1812421ffc5
public final void setOnMenuCloseFinished(EventHandler<MenuEvent> value) { onMenuCloseFinishedProperty().set(value); }
2365fa33-11bc-4d7b-828c-2b41d5577731
public void setCustomPhone6(crmondemand.xml.customobject6.query.QueryType customPhone6) { this.customPhone6 = customPhone6; }
e6c5c32e-603f-4649-a137-408ad0b3a73c
public JSystemPiqi.system_requestOrBuilder getSystemOrBuilder() { return system_; }
36e28408-51f4-4d9a-bbce-4674a07ad921
public void setUpdatedByLastName(java.lang.String updatedByLastName) { this.updatedByLastName = updatedByLastName; }
d7e2cebf-4d86-4faa-968e-c6abfccf5e51
public void setCustomText32(crmondemand.xml.customobject6.query.QueryType customText32) { this.customText32 = customText32; }
0946bf0e-78cc-40c0-913d-bebdaa8a0c80
public java.lang.String getCustomText81() { return this.customText81; }
ecda39e6-0d30-4cbd-8436-f5b18caa9b05
public crmondemand.xml.customobject3.query.QueryType getOpportunityAccountName() { return this.opportunityAccountName; }
8a8db5ea-d8f8-4f41-9b2f-19c0c657fddb
public void setCustomPickList99(java.lang.String customPickList99) { this.customPickList99 = customPickList99; }
1940a3e0-258a-4499-8ca8-d7b7aa3658b9
public crmondemand.xml.contact.query.QueryType getUpdatedByIntegrationId() { return this.updatedByIntegrationId; }
770de742-cd3f-4dde-87d7-04adeb395b72
public MaritalStatus getMaritalStatus() { return maritalStatus; }
0f09dc33-fc31-4d88-bba7-c102857fac1d
public static Cons loomRestrictionToKif(Cons tree, Symbol implicitvariable) { { Symbol operator = ((Symbol)(tree.value)); Stella_Object role = null; Stella_Object argument = null; Symbol existsvariable = null; Stella_Object qualification = tree.fourth(); if (Stella.getQuotedTree("((AT-LEAST AT-MOST EXACTLY) \"/LOGIC\")", "/LOGIC").memberP(operator)) { { argument = tree.rest.value; role = tree.rest.rest.value; } } else { { role = tree.rest.value; argument = tree.rest.rest.value; } } if ((operator == Logic.SYM_LOGIC_AT_LEAST) || ((operator == Logic.SYM_LOGIC_AT_MOST) || (operator == Logic.SYM_LOGIC_EXACTLY))) { if (qualification != null) { if (operator == Logic.SYM_LOGIC_AT_LEAST) { operator = Logic.SYM_PL_KERNEL_KB_QUALIFIED_RANGE_CARDINALITY_LOWER_BOUND; } else if (operator == Logic.SYM_LOGIC_AT_MOST) { operator = Logic.SYM_PL_KERNEL_KB_QUALIFIED_RANGE_CARDINALITY_UPPER_BOUND; } else if (operator == Logic.SYM_LOGIC_EXACTLY) { operator = Logic.SYM_PL_KERNEL_KB_QUALIFIED_RANGE_CARDINALITY; } else { { OutputStringStream stream000 = OutputStringStream.newOutputStringStream(); stream000.nativeStream.print("`" + operator + "' is not a valid case option"); throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace())); } } } else { if (operator == Logic.SYM_LOGIC_AT_LEAST) { operator = Logic.SYM_PL_KERNEL_KB_RANGE_CARDINALITY_LOWER_BOUND; } else if (operator == Logic.SYM_LOGIC_AT_MOST) { operator = Logic.SYM_PL_KERNEL_KB_RANGE_CARDINALITY_UPPER_BOUND; } else if (operator == Logic.SYM_LOGIC_EXACTLY) { operator = Logic.SYM_PL_KERNEL_KB_RANGE_CARDINALITY; } else { { OutputStringStream stream001 = OutputStringStream.newOutputStringStream(); stream001.nativeStream.print("`" + operator + "' is not a valid case option"); throw ((StellaException)(StellaException.newStellaException(stream001.theStringReader()).fillInStackTrace())); } } } return (Cons.cons(operator, Cons.cons(Logic.loomArgumentDescriptionToKif(role, Logic.KWD_BINARY), Cons.cons(implicitvariable, Cons.cons(argument, (((qualification != null) ? Cons.consList(Cons.cons(Logic.loomArgumentDescriptionToKif(qualification, Logic.KWD_UNARY), Stella.NIL)) : Stella.NIL)).concatenate(Stella.NIL, Stella.NIL)))))); } else if (operator == Logic.SYM_LOGIC_ALL) { if (qualification != null) { { { Symbol v = null; Cons iter000 = Logic.SYSTEM_DEFINED_ARGUMENT_NAMES; loop000 : for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) { v = ((Symbol)(iter000.value)); if (!(implicitvariable == v)) { existsvariable = v; break loop000; } } } return (Cons.list$(Cons.cons(Logic.SYM_STELLA_EXISTS, Cons.cons(Cons.cons(existsvariable, Stella.NIL), Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_eg, Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_AND, Cons.cons(Cons.cons(Logic.loomArgumentDescriptionToKif(role, Logic.KWD_BINARY), Cons.cons(implicitvariable, Cons.cons(existsvariable, Stella.NIL))), Cons.cons(Cons.cons(Logic.loomArgumentDescriptionToKif(qualification, Logic.KWD_UNARY), Cons.cons(existsvariable, Stella.NIL)), Cons.cons(Stella.NIL, Stella.NIL))))), Cons.cons(Cons.cons(Logic.loomArgumentDescriptionToKif(argument, Logic.KWD_UNARY), Cons.cons(((Symbol)(Logic.SYSTEM_DEFINED_ARGUMENT_NAMES.nth(0))), Stella.NIL)), Cons.cons(Stella.NIL, Stella.NIL))))), Cons.cons(Stella.NIL, Stella.NIL)))))); } } else { return (Cons.list$(Cons.cons(Logic.SYM_PL_KERNEL_KB_RANGE_TYPE, Cons.cons(Logic.loomArgumentDescriptionToKif(role, Logic.KWD_BINARY), Cons.cons(Cons.cons(implicitvariable, Cons.cons(Logic.loomArgumentDescriptionToKif(argument, Logic.KWD_UNARY), Stella.NIL)), Stella.NIL))))); } } else if (operator == Logic.SYM_STELLA_SOME) { return (Logic.loomRestrictionToKif(Cons.list$(Cons.cons(Logic.SYM_LOGIC_AT_LEAST, Cons.cons(IntegerWrapper.wrapInteger(1), Cons.cons(role, Cons.cons(Cons.cons(argument, Stella.NIL), Stella.NIL))))), implicitvariable)); } else if (operator == Logic.SYM_LOGIC_THE) { return (Logic.loomDescriptionToKif(Cons.list$(Cons.cons(Logic.SYM_STELLA_AND, Cons.cons(Cons.list$(Cons.cons(Logic.SYM_LOGIC_EXACTLY, Cons.cons(IntegerWrapper.wrapInteger(1), Cons.cons(role, Cons.cons(Stella.NIL, Stella.NIL))))), Cons.cons(Cons.list$(Cons.cons(Logic.SYM_LOGIC_ALL, Cons.cons(role, Cons.cons(Cons.cons(argument, Stella.NIL), Stella.NIL)))), Cons.cons(Stella.NIL, Stella.NIL))))), Cons.consList(Cons.cons(implicitvariable, Stella.NIL)))); } else if ((operator == Logic.SYM_LOGIC_FILLED_BY) || (operator == Logic.SYM_LOGIC_FILLERS)) { { Cons clauses = Stella.NIL; Stella_Object translatedrole = Logic.loomArgumentDescriptionToKif(role, Logic.KWD_BINARY); { Stella_Object filler = null; Cons iter001 = tree.rest.rest; Cons collect000 = null; for (;!(iter001 == Stella.NIL); iter001 = iter001.rest) { filler = iter001.value; if (collect000 == null) { { collect000 = Cons.cons(Cons.cons(translatedrole, Cons.cons(implicitvariable, Cons.cons(filler, Stella.NIL))), Stella.NIL); if (clauses == Stella.NIL) { clauses = collect000; } else { Cons.addConsToEndOfConsList(clauses, collect000); } } } else { { collect000.rest = Cons.cons(Cons.cons(translatedrole, Cons.cons(implicitvariable, Cons.cons(filler, Stella.NIL))), Stella.NIL); collect000 = collect000.rest; } } } } return (((Cons)(Logic.conjoinSentences(clauses)))); } } else if (operator == Logic.SYM_LOGIC_NOT_FILLED_BY) { { Cons clauses = Stella.NIL; Stella_Object translatedrole = Logic.loomArgumentDescriptionToKif(role, Logic.KWD_BINARY); { Stella_Object filler = null; Cons iter002 = tree.rest.rest; Cons collect001 = null; for (;!(iter002 == Stella.NIL); iter002 = iter002.rest) { filler = iter002.value; if (collect001 == null) { { collect001 = Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_NOT, Cons.cons(Cons.cons(translatedrole, Cons.cons(implicitvariable, Cons.cons(filler, Stella.NIL))), Cons.cons(Stella.NIL, Stella.NIL)))), Stella.NIL); if (clauses == Stella.NIL) { clauses = collect001; } else { Cons.addConsToEndOfConsList(clauses, collect001); } } } else { { collect001.rest = Cons.cons(Cons.list$(Cons.cons(Logic.SYM_STELLA_NOT, Cons.cons(Cons.cons(translatedrole, Cons.cons(implicitvariable, Cons.cons(filler, Stella.NIL))), Cons.cons(Stella.NIL, Stella.NIL)))), Stella.NIL); collect001 = collect001.rest; } } } } return (((Cons)(Logic.conjoinSentences(clauses)))); } } else { { OutputStringStream stream002 = OutputStringStream.newOutputStringStream(); stream002.nativeStream.print("`" + operator + "' is not a valid case option"); throw ((StellaException)(StellaException.newStellaException(stream002.theStringReader()).fillInStackTrace())); } } } }
253b414c-18d3-4935-ad0f-9df72015e988
public void setCustomPickList46(java.lang.String customPickList46) { this.customPickList46 = customPickList46; }
e2558911-83b2-4fea-bbc3-da406b0d8d81
public void setCustomPhone10(java.lang.String customPhone10) { this.customPhone10 = customPhone10; }
d3ab5314-8777-4bf1-973c-bdd11612633d
public void setCustomBoolean33(java.lang.Boolean customBoolean33) { this.customBoolean33 = customBoolean33; }
024754cb-4727-467c-9592-9f98bafd09f8
public crmondemand.xml.contact.query.QueryType getPolicyLineofBusiness() { return this.policyLineofBusiness; }
8b29057a-04a5-4f60-8634-ebd97a97419a
public void setCustomPickList58(crmondemand.xml.contact.query.QueryType customPickList58) { this.customPickList58 = customPickList58; }
8cde7ff8-6d08-4804-bfef-9f0a89820ba9
public crmondemand.xml.customobject6.query.QueryType getZCustomInteger20() { return this.zCustomInteger20; }
df23612d-bf04-4faa-a5b5-772c21cfe670
public void setBusinessPlanPlanName(java.lang.String businessPlanPlanName) { this.businessPlanPlanName = businessPlanPlanName; }
679f5618-2447-45d9-90ac-81dd3c15af6b
public void setCustomObject5Name(java.lang.String customObject5Name) { this.customObject5Name = customObject5Name; }
a69f28fb-7b61-457d-a60f-62aa2115e3b3
public void setCustomText75(crmondemand.xml.contact.query.QueryType customText75) { this.customText75 = customText75; }
f667a22d-134f-40dc-9ecb-355af2abe1ec
public crmondemand.xml.customobject6.query.QueryType getCustomNumber16() { return this.customNumber16; }
50c7efe9-761f-4732-8bc2-29898d1fa29e
public void setCustomObject8ExternalSystemId(crmondemand.xml.customobject6.query.QueryType customObject8ExternalSystemId) { this.customObject8ExternalSystemId = customObject8ExternalSystemId; }
a329054e-66b5-4581-bfae-ad975c0f6df5
public void setCustomInteger15(java.lang.Integer customInteger15) { this.customInteger15 = customInteger15; }
4af3e797-d0cc-4bff-a15b-77cf00fe8195
public void setCustomText57(java.lang.String customText57) { this.customText57 = customText57; }
eebe6bbe-c0cc-4244-9e53-6f6633eeb3de
public java.lang.Boolean getCustomBoolean9() { return this.customBoolean9; }
2bc4711a-a472-41d9-ba17-5a665801fdf2
public java.lang.String getCustomPickList97() { return this.customPickList97; }
b48eaa27-28cc-40e0-8503-22d74529ba82
public void setCustomNumber5(crmondemand.xml.customobject6.query.QueryType customNumber5) { this.customNumber5 = customNumber5; }
09e72663-b47b-40eb-9e91-fe7c782116a4
public void setCustomText32(java.lang.String customText32) { this.customText32 = customText32; }
c3afdbc3-c5d7-4f46-8c65-3a6e405dc92c
public void setCustomPickList16(crmondemand.xml.customobject6.query.QueryType customPickList16) { this.customPickList16 = customPickList16; }
58f55b24-43c4-424f-a43a-75f4a4405742
public void setCustomText47(java.lang.String customText47) { this.customText47 = customText47; }
881a6bca-c3bd-4611-83e2-f91d70b9dc97
public void setCustomPickList65(crmondemand.xml.customobject6.query.QueryType customPickList65) { this.customPickList65 = customPickList65; }
ade8fff1-d34b-4297-aa71-54179cd79eab
public void setCustomInteger17(crmondemand.xml.customobject3.query.QueryType customInteger17) { this.customInteger17 = customInteger17; }
99841f0d-966c-4e78-ad17-a9bdeb52dae5
public crmondemand.xml.opportunity.query.QueryType getCustomNumber23() { return this.customNumber23; }
817acce5-f34b-4eb3-88fb-71d75c06f71c
public void setCustomPickList6(java.lang.String customPickList6) { this.customPickList6 = customPickList6; }
b2878c23-a56e-40ca-8546-0b2de368c482
public java.util.Calendar getCustomDate51() { return this.customDate51; }
399d897e-d9a0-478a-886b-0dd8fb030d7e
public java.lang.String getCustomText16() { return this.customText16; }
dd9a3098-f45c-41bb-b052-5dfef94689bb
public void setlbIntegrity(JLabel lbIntegrity) { this.lbIntegrity = lbIntegrity; }
dcebf4e1-2254-4af8-80a6-11e6934903a6
public java.lang.String getFundRequestName() { return this.fundRequestName; }
5dde5705-b6e2-4a57-805b-0dd5bcf00354
public crmondemand.xml.contact.query.QueryType getCustomPickList68() { return this.customPickList68; }
e7f192ed-dd79-47af-9291-e704552f7a5e
public void setCustomDate40(crmondemand.xml.contact.query.QueryType customDate40) { this.customDate40 = customDate40; }
a8d7ff97-e928-4423-94a1-d94e0b3647b3
boolean hasPathTo(int v);
678250dc-412c-4749-acef-d7c36be6271c
public void handler() { set_DX(get_DX() | m68ki_read_16(EA_IX())); long res = MASK_OUT_ABOVE_16(get_DX()); m68k_cpu.n_flag = GET_MSB_16(res); m68k_cpu.not_z_flag = res; m68k_cpu.c_flag = m68k_cpu.v_flag = 0; USE_CLKS(4 + 10); if (m68klog != null) { fprintf(m68klog, "or_er_ix_16 :PC:%d,PPC:%d,mode:%d,dr0:%d,dr1:%d,dr2:%d,dr3:%d,dr4:%d,dr5:%d,dr6:%d,dr7:%d,ar0:%d,ar1:%d,ar2:%d,ar3:%d,ar4:%d,ar5:%d,ar6:%d,ar7:%d,sp0:%d,sp1:%d,sp2:%d,sp3:%d,vbr:%d,sfc:%d,dfc:%d,cacr:%d,caar:%d,ir:%d,t1:%d,t0:%d,s:%d,m:%d,x:%d,n:%d,nz:%d,v:%d,c:%d,intm:%d,ints:%d,stop:%d,halt:%d,intc:%d,prefa:%d,prefd:%d\n", m68k_cpu.pc, m68k_cpu.ppc, m68k_cpu.mode, m68k_cpu.dr[0], m68k_cpu.dr[1], m68k_cpu.dr[2], m68k_cpu.dr[3], m68k_cpu.dr[4], m68k_cpu.dr[5], m68k_cpu.dr[6], m68k_cpu.dr[7], m68k_cpu.ar[0], m68k_cpu.ar[1], m68k_cpu.ar[2], m68k_cpu.ar[3], m68k_cpu.ar[4], m68k_cpu.ar[5], m68k_cpu.ar[6], m68k_cpu.ar[7], m68k_cpu.sp[0], m68k_cpu.sp[1], m68k_cpu.sp[2], m68k_cpu.sp[3], m68k_cpu.vbr, m68k_cpu.sfc, m68k_cpu.dfc, m68k_cpu.cacr, m68k_cpu.caar, m68k_cpu.ir, m68k_cpu.t1_flag, m68k_cpu.t0_flag, m68k_cpu.s_flag, m68k_cpu.m_flag, m68k_cpu.x_flag, m68k_cpu.n_flag, m68k_cpu.not_z_flag, m68k_cpu.v_flag, m68k_cpu.c_flag, m68k_cpu.int_mask, m68k_cpu.int_state, m68k_cpu.stopped, m68k_cpu.halted, m68k_cpu.int_cycles, m68k_cpu.pref_addr, m68k_cpu.pref_data); } }
c23d0ac1-2f32-486d-ab0a-48d333e32187
public void setAccountStatus(java.lang.String accountStatus) { this.accountStatus = accountStatus; }
74de0297-b65d-44f0-a7b0-e78044b047eb
public crmondemand.xml.customobject3.query.QueryType getPolicyType() { return this.policyType; }
e4f6a608-b366-44a9-b6e4-377cd6859b5b
public java.lang.String getCustomPickList104() { return this.customPickList104; }
ce3eb5b6-fa2f-4e36-acee-8bae44d63848
public void setCustomDate18(crmondemand.xml.contact.query.QueryType customDate18) { this.customDate18 = customDate18; }
8b20c4a1-8593-4444-a906-9a769dfbf5c5
public java.lang.String getCustomText46() { return this.customText46; }
baed08ca-81e1-4c38-bf11-191500b8802b
public java.util.Calendar getCustomDate16() { return this.customDate16; }
a3ce9594-82c8-416d-a40f-3ab93be6b665
public java.lang.String getCustomPickList93() { return this.customPickList93; }
974183ea-a92a-45ba-bc50-3421a88597c1
public int getY() { return y; }
30948645-9cf1-4ec0-b4ad-2ac6564ff7da
public void MakeKing(){ // if the current piece is owned by player 1 if (player == 1){ pIcon = 'T'; //set the icon of the piece to 'T' } // if the current piece is owned by player 2 else if (player == 2){ pIcon = 'F'; //set the icon of the piece to 'F' } }
ee02f450-7154-4905-a7be-13bcef2fb1d3
public java.lang.String getCustomText69() { return this.customText69; }
a7e3342a-6193-4dc4-adc4-db1025570abd
public int getCode() { return code; }
d9dfabe8-4ff7-4c81-a631-5749d3661ac9
public static void main(String[] args) { new CreatePlist(); Date data = new Date(); data.getTime(); System.out.println(data); NSDate nsdate = new NSDate(data); System.out.println(nsdate); }
e6c42c0a-22da-43c4-903b-3c05ba5f212e
public void handler() { fclose(konamilog); throw new UnsupportedOperationException("unsupported opcode"); }
dc4f4c9b-eb89-464c-bc95-314925d6f783
public void setCustomText47(java.lang.String customText47) { this.customText47 = customText47; }
26c16049-d862-4234-af07-0262fc731077
public java.lang.String getCustomPickList95() { return this.customPickList95; }
0ab077a0-59e0-42bb-8f40-ada7ce56b361
public java.lang.String getPolicyExternalSystemId() { return this.policyExternalSystemId; }
3514a140-7a20-4cf3-9f53-9b3f4eedc9db
public void setCustomDate30(crmondemand.xml.contact.query.QueryType customDate30) { this.customDate30 = customDate30; }
e8a34564-46e8-4000-944e-b942c14eafd7
public org.bwapi.proxy.messages.GameMessages.UnitId getStaticGeysers(int index) { return staticGeysers_.get(index); }
e69c7aa2-8f0a-4b82-a283-38f8df169c4c
public java.lang.String getCustomObject11ExternalSystemId() { return this.customObject11ExternalSystemId; }