All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.trueaccord.scalapb.Scalapb Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: scalapb/scalapb.proto

package com.trueaccord.scalapb;

public final class Scalapb {
  private Scalapb() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
    registry.add(com.trueaccord.scalapb.Scalapb.options);
    registry.add(com.trueaccord.scalapb.Scalapb.message);
    registry.add(com.trueaccord.scalapb.Scalapb.field);
    registry.add(com.trueaccord.scalapb.Scalapb.enumOptions);
    registry.add(com.trueaccord.scalapb.Scalapb.enumValue);
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ScalaPbOptionsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:scalapb.ScalaPbOptions)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * If set then it overrides the java_package and package.
     * 
* * optional string package_name = 1; */ boolean hasPackageName(); /** *
     * If set then it overrides the java_package and package.
     * 
* * optional string package_name = 1; */ java.lang.String getPackageName(); /** *
     * If set then it overrides the java_package and package.
     * 
* * optional string package_name = 1; */ com.google.protobuf.ByteString getPackageNameBytes(); /** *
     * If true, the compiler does not append the proto base file name
     * into the generated package name. If false (the default), the
     * generated scala package name is the package_name.basename where
     * basename is the proto file name without the .proto extension.
     * 
* * optional bool flat_package = 2; */ boolean hasFlatPackage(); /** *
     * If true, the compiler does not append the proto base file name
     * into the generated package name. If false (the default), the
     * generated scala package name is the package_name.basename where
     * basename is the proto file name without the .proto extension.
     * 
* * optional bool flat_package = 2; */ boolean getFlatPackage(); /** *
     * Adds the following imports at the top of the file (this is meant
     * to provide implicit TypeMappers)
     * 
* * repeated string import = 3; */ java.util.List getImportList(); /** *
     * Adds the following imports at the top of the file (this is meant
     * to provide implicit TypeMappers)
     * 
* * repeated string import = 3; */ int getImportCount(); /** *
     * Adds the following imports at the top of the file (this is meant
     * to provide implicit TypeMappers)
     * 
* * repeated string import = 3; */ java.lang.String getImport(int index); /** *
     * Adds the following imports at the top of the file (this is meant
     * to provide implicit TypeMappers)
     * 
* * repeated string import = 3; */ com.google.protobuf.ByteString getImportBytes(int index); /** *
     * Text to add to the generated scala file.  This can be used only
     * when single_file is true.
     * 
* * repeated string preamble = 4; */ java.util.List getPreambleList(); /** *
     * Text to add to the generated scala file.  This can be used only
     * when single_file is true.
     * 
* * repeated string preamble = 4; */ int getPreambleCount(); /** *
     * Text to add to the generated scala file.  This can be used only
     * when single_file is true.
     * 
* * repeated string preamble = 4; */ java.lang.String getPreamble(int index); /** *
     * Text to add to the generated scala file.  This can be used only
     * when single_file is true.
     * 
* * repeated string preamble = 4; */ com.google.protobuf.ByteString getPreambleBytes(int index); /** *
     * If true, all messages and enums (but not services) will be written
     * to a single Scala file.
     * 
* * optional bool single_file = 5; */ boolean hasSingleFile(); /** *
     * If true, all messages and enums (but not services) will be written
     * to a single Scala file.
     * 
* * optional bool single_file = 5; */ boolean getSingleFile(); /** *
     * By default, wrappers defined at
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto,
     * are mapped to an Option[T] where T is a primitive type. When this field
     * is set to true, we do not perform this transformation.
     * 
* * optional bool no_primitive_wrappers = 7; */ boolean hasNoPrimitiveWrappers(); /** *
     * By default, wrappers defined at
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto,
     * are mapped to an Option[T] where T is a primitive type. When this field
     * is set to true, we do not perform this transformation.
     * 
* * optional bool no_primitive_wrappers = 7; */ boolean getNoPrimitiveWrappers(); /** *
     * DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
     * primitive_wrappers. This field remains here for backwards compatibility,
     * but it has no effect on generated code. It is an error to set both
     * `primitive_wrappers` and `no_primitive_wrappers`.
     * 
* * optional bool primitive_wrappers = 6; */ boolean hasPrimitiveWrappers(); /** *
     * DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
     * primitive_wrappers. This field remains here for backwards compatibility,
     * but it has no effect on generated code. It is an error to set both
     * `primitive_wrappers` and `no_primitive_wrappers`.
     * 
* * optional bool primitive_wrappers = 6; */ boolean getPrimitiveWrappers(); /** *
     * Scala type to be used for repeated fields. If unspecified,
     * `scala.collection.Seq` will be used.
     * 
* * optional string collection_type = 8; */ boolean hasCollectionType(); /** *
     * Scala type to be used for repeated fields. If unspecified,
     * `scala.collection.Seq` will be used.
     * 
* * optional string collection_type = 8; */ java.lang.String getCollectionType(); /** *
     * Scala type to be used for repeated fields. If unspecified,
     * `scala.collection.Seq` will be used.
     * 
* * optional string collection_type = 8; */ com.google.protobuf.ByteString getCollectionTypeBytes(); /** *
     * For use in tests only. Inhibit Java conversions even when when generator parameters
     * request for it.
     * 
* * optional bool test_only_no_java_conversions = 100001; */ boolean hasTestOnlyNoJavaConversions(); /** *
     * For use in tests only. Inhibit Java conversions even when when generator parameters
     * request for it.
     * 
* * optional bool test_only_no_java_conversions = 100001; */ boolean getTestOnlyNoJavaConversions(); } /** * Protobuf type {@code scalapb.ScalaPbOptions} */ public static final class ScalaPbOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:scalapb.ScalaPbOptions) ScalaPbOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use ScalaPbOptions.newBuilder() to construct. private ScalaPbOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ScalaPbOptions() { packageName_ = ""; flatPackage_ = false; import_ = com.google.protobuf.LazyStringArrayList.EMPTY; preamble_ = com.google.protobuf.LazyStringArrayList.EMPTY; singleFile_ = false; noPrimitiveWrappers_ = false; primitiveWrappers_ = false; collectionType_ = ""; testOnlyNoJavaConversions_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ScalaPbOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; packageName_ = bs; break; } case 16: { bitField0_ |= 0x00000002; flatPackage_ = input.readBool(); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { import_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } import_.add(bs); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { preamble_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000008; } preamble_.add(bs); break; } case 40: { bitField0_ |= 0x00000004; singleFile_ = input.readBool(); break; } case 48: { bitField0_ |= 0x00000010; primitiveWrappers_ = input.readBool(); break; } case 56: { bitField0_ |= 0x00000008; noPrimitiveWrappers_ = input.readBool(); break; } case 66: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000020; collectionType_ = bs; break; } case 800008: { bitField0_ |= 0x00000040; testOnlyNoJavaConversions_ = 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).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { import_ = import_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { preamble_ = preamble_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_ScalaPbOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_ScalaPbOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.ScalaPbOptions.class, com.trueaccord.scalapb.Scalapb.ScalaPbOptions.Builder.class); } private int bitField0_; public static final int PACKAGE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object packageName_; /** *
     * If set then it overrides the java_package and package.
     * 
* * optional string package_name = 1; */ public boolean hasPackageName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * If set then it overrides the java_package and package.
     * 
* * optional string package_name = 1; */ public java.lang.String getPackageName() { java.lang.Object ref = packageName_; 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()) { packageName_ = s; } return s; } } /** *
     * If set then it overrides the java_package and package.
     * 
* * optional string package_name = 1; */ public com.google.protobuf.ByteString getPackageNameBytes() { java.lang.Object ref = packageName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FLAT_PACKAGE_FIELD_NUMBER = 2; private boolean flatPackage_; /** *
     * If true, the compiler does not append the proto base file name
     * into the generated package name. If false (the default), the
     * generated scala package name is the package_name.basename where
     * basename is the proto file name without the .proto extension.
     * 
* * optional bool flat_package = 2; */ public boolean hasFlatPackage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
     * If true, the compiler does not append the proto base file name
     * into the generated package name. If false (the default), the
     * generated scala package name is the package_name.basename where
     * basename is the proto file name without the .proto extension.
     * 
* * optional bool flat_package = 2; */ public boolean getFlatPackage() { return flatPackage_; } public static final int IMPORT_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList import_; /** *
     * Adds the following imports at the top of the file (this is meant
     * to provide implicit TypeMappers)
     * 
* * repeated string import = 3; */ public com.google.protobuf.ProtocolStringList getImportList() { return import_; } /** *
     * Adds the following imports at the top of the file (this is meant
     * to provide implicit TypeMappers)
     * 
* * repeated string import = 3; */ public int getImportCount() { return import_.size(); } /** *
     * Adds the following imports at the top of the file (this is meant
     * to provide implicit TypeMappers)
     * 
* * repeated string import = 3; */ public java.lang.String getImport(int index) { return import_.get(index); } /** *
     * Adds the following imports at the top of the file (this is meant
     * to provide implicit TypeMappers)
     * 
* * repeated string import = 3; */ public com.google.protobuf.ByteString getImportBytes(int index) { return import_.getByteString(index); } public static final int PREAMBLE_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList preamble_; /** *
     * Text to add to the generated scala file.  This can be used only
     * when single_file is true.
     * 
* * repeated string preamble = 4; */ public com.google.protobuf.ProtocolStringList getPreambleList() { return preamble_; } /** *
     * Text to add to the generated scala file.  This can be used only
     * when single_file is true.
     * 
* * repeated string preamble = 4; */ public int getPreambleCount() { return preamble_.size(); } /** *
     * Text to add to the generated scala file.  This can be used only
     * when single_file is true.
     * 
* * repeated string preamble = 4; */ public java.lang.String getPreamble(int index) { return preamble_.get(index); } /** *
     * Text to add to the generated scala file.  This can be used only
     * when single_file is true.
     * 
* * repeated string preamble = 4; */ public com.google.protobuf.ByteString getPreambleBytes(int index) { return preamble_.getByteString(index); } public static final int SINGLE_FILE_FIELD_NUMBER = 5; private boolean singleFile_; /** *
     * If true, all messages and enums (but not services) will be written
     * to a single Scala file.
     * 
* * optional bool single_file = 5; */ public boolean hasSingleFile() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * If true, all messages and enums (but not services) will be written
     * to a single Scala file.
     * 
* * optional bool single_file = 5; */ public boolean getSingleFile() { return singleFile_; } public static final int NO_PRIMITIVE_WRAPPERS_FIELD_NUMBER = 7; private boolean noPrimitiveWrappers_; /** *
     * By default, wrappers defined at
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto,
     * are mapped to an Option[T] where T is a primitive type. When this field
     * is set to true, we do not perform this transformation.
     * 
* * optional bool no_primitive_wrappers = 7; */ public boolean hasNoPrimitiveWrappers() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * By default, wrappers defined at
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto,
     * are mapped to an Option[T] where T is a primitive type. When this field
     * is set to true, we do not perform this transformation.
     * 
* * optional bool no_primitive_wrappers = 7; */ public boolean getNoPrimitiveWrappers() { return noPrimitiveWrappers_; } public static final int PRIMITIVE_WRAPPERS_FIELD_NUMBER = 6; private boolean primitiveWrappers_; /** *
     * DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
     * primitive_wrappers. This field remains here for backwards compatibility,
     * but it has no effect on generated code. It is an error to set both
     * `primitive_wrappers` and `no_primitive_wrappers`.
     * 
* * optional bool primitive_wrappers = 6; */ public boolean hasPrimitiveWrappers() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
     * primitive_wrappers. This field remains here for backwards compatibility,
     * but it has no effect on generated code. It is an error to set both
     * `primitive_wrappers` and `no_primitive_wrappers`.
     * 
* * optional bool primitive_wrappers = 6; */ public boolean getPrimitiveWrappers() { return primitiveWrappers_; } public static final int COLLECTION_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object collectionType_; /** *
     * Scala type to be used for repeated fields. If unspecified,
     * `scala.collection.Seq` will be used.
     * 
* * optional string collection_type = 8; */ public boolean hasCollectionType() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
     * Scala type to be used for repeated fields. If unspecified,
     * `scala.collection.Seq` will be used.
     * 
* * optional string collection_type = 8; */ public java.lang.String getCollectionType() { java.lang.Object ref = collectionType_; 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()) { collectionType_ = s; } return s; } } /** *
     * Scala type to be used for repeated fields. If unspecified,
     * `scala.collection.Seq` will be used.
     * 
* * optional string collection_type = 8; */ public com.google.protobuf.ByteString getCollectionTypeBytes() { java.lang.Object ref = collectionType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TEST_ONLY_NO_JAVA_CONVERSIONS_FIELD_NUMBER = 100001; private boolean testOnlyNoJavaConversions_; /** *
     * For use in tests only. Inhibit Java conversions even when when generator parameters
     * request for it.
     * 
* * optional bool test_only_no_java_conversions = 100001; */ public boolean hasTestOnlyNoJavaConversions() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
     * For use in tests only. Inhibit Java conversions even when when generator parameters
     * request for it.
     * 
* * optional bool test_only_no_java_conversions = 100001; */ public boolean getTestOnlyNoJavaConversions() { return testOnlyNoJavaConversions_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(2, flatPackage_); } for (int i = 0; i < import_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, import_.getRaw(i)); } for (int i = 0; i < preamble_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, preamble_.getRaw(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBool(5, singleFile_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(6, primitiveWrappers_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBool(7, noPrimitiveWrappers_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, collectionType_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBool(100001, testOnlyNoJavaConversions_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, flatPackage_); } { int dataSize = 0; for (int i = 0; i < import_.size(); i++) { dataSize += computeStringSizeNoTag(import_.getRaw(i)); } size += dataSize; size += 1 * getImportList().size(); } { int dataSize = 0; for (int i = 0; i < preamble_.size(); i++) { dataSize += computeStringSizeNoTag(preamble_.getRaw(i)); } size += dataSize; size += 1 * getPreambleList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, singleFile_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, primitiveWrappers_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, noPrimitiveWrappers_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, collectionType_); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(100001, testOnlyNoJavaConversions_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.trueaccord.scalapb.Scalapb.ScalaPbOptions)) { return super.equals(obj); } com.trueaccord.scalapb.Scalapb.ScalaPbOptions other = (com.trueaccord.scalapb.Scalapb.ScalaPbOptions) obj; boolean result = true; result = result && (hasPackageName() == other.hasPackageName()); if (hasPackageName()) { result = result && getPackageName() .equals(other.getPackageName()); } result = result && (hasFlatPackage() == other.hasFlatPackage()); if (hasFlatPackage()) { result = result && (getFlatPackage() == other.getFlatPackage()); } result = result && getImportList() .equals(other.getImportList()); result = result && getPreambleList() .equals(other.getPreambleList()); result = result && (hasSingleFile() == other.hasSingleFile()); if (hasSingleFile()) { result = result && (getSingleFile() == other.getSingleFile()); } result = result && (hasNoPrimitiveWrappers() == other.hasNoPrimitiveWrappers()); if (hasNoPrimitiveWrappers()) { result = result && (getNoPrimitiveWrappers() == other.getNoPrimitiveWrappers()); } result = result && (hasPrimitiveWrappers() == other.hasPrimitiveWrappers()); if (hasPrimitiveWrappers()) { result = result && (getPrimitiveWrappers() == other.getPrimitiveWrappers()); } result = result && (hasCollectionType() == other.hasCollectionType()); if (hasCollectionType()) { result = result && getCollectionType() .equals(other.getCollectionType()); } result = result && (hasTestOnlyNoJavaConversions() == other.hasTestOnlyNoJavaConversions()); if (hasTestOnlyNoJavaConversions()) { result = result && (getTestOnlyNoJavaConversions() == other.getTestOnlyNoJavaConversions()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasPackageName()) { hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; hash = (53 * hash) + getPackageName().hashCode(); } if (hasFlatPackage()) { hash = (37 * hash) + FLAT_PACKAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getFlatPackage()); } if (getImportCount() > 0) { hash = (37 * hash) + IMPORT_FIELD_NUMBER; hash = (53 * hash) + getImportList().hashCode(); } if (getPreambleCount() > 0) { hash = (37 * hash) + PREAMBLE_FIELD_NUMBER; hash = (53 * hash) + getPreambleList().hashCode(); } if (hasSingleFile()) { hash = (37 * hash) + SINGLE_FILE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSingleFile()); } if (hasNoPrimitiveWrappers()) { hash = (37 * hash) + NO_PRIMITIVE_WRAPPERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNoPrimitiveWrappers()); } if (hasPrimitiveWrappers()) { hash = (37 * hash) + PRIMITIVE_WRAPPERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPrimitiveWrappers()); } if (hasCollectionType()) { hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + getCollectionType().hashCode(); } if (hasTestOnlyNoJavaConversions()) { hash = (37 * hash) + TEST_ONLY_NO_JAVA_CONVERSIONS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTestOnlyNoJavaConversions()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.trueaccord.scalapb.Scalapb.ScalaPbOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code scalapb.ScalaPbOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:scalapb.ScalaPbOptions) com.trueaccord.scalapb.Scalapb.ScalaPbOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_ScalaPbOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_ScalaPbOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.ScalaPbOptions.class, com.trueaccord.scalapb.Scalapb.ScalaPbOptions.Builder.class); } // Construct using com.trueaccord.scalapb.Scalapb.ScalaPbOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); packageName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); flatPackage_ = false; bitField0_ = (bitField0_ & ~0x00000002); import_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); preamble_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); singleFile_ = false; bitField0_ = (bitField0_ & ~0x00000010); noPrimitiveWrappers_ = false; bitField0_ = (bitField0_ & ~0x00000020); primitiveWrappers_ = false; bitField0_ = (bitField0_ & ~0x00000040); collectionType_ = ""; bitField0_ = (bitField0_ & ~0x00000080); testOnlyNoJavaConversions_ = false; bitField0_ = (bitField0_ & ~0x00000100); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_ScalaPbOptions_descriptor; } public com.trueaccord.scalapb.Scalapb.ScalaPbOptions getDefaultInstanceForType() { return com.trueaccord.scalapb.Scalapb.ScalaPbOptions.getDefaultInstance(); } public com.trueaccord.scalapb.Scalapb.ScalaPbOptions build() { com.trueaccord.scalapb.Scalapb.ScalaPbOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.trueaccord.scalapb.Scalapb.ScalaPbOptions buildPartial() { com.trueaccord.scalapb.Scalapb.ScalaPbOptions result = new com.trueaccord.scalapb.Scalapb.ScalaPbOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.packageName_ = packageName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.flatPackage_ = flatPackage_; if (((bitField0_ & 0x00000004) == 0x00000004)) { import_ = import_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.import_ = import_; if (((bitField0_ & 0x00000008) == 0x00000008)) { preamble_ = preamble_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.preamble_ = preamble_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.singleFile_ = singleFile_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000008; } result.noPrimitiveWrappers_ = noPrimitiveWrappers_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000010; } result.primitiveWrappers_ = primitiveWrappers_; if (((from_bitField0_ & 0x00000080) == 0x00000080)) { to_bitField0_ |= 0x00000020; } result.collectionType_ = collectionType_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000040; } result.testOnlyNoJavaConversions_ = testOnlyNoJavaConversions_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.trueaccord.scalapb.Scalapb.ScalaPbOptions) { return mergeFrom((com.trueaccord.scalapb.Scalapb.ScalaPbOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.trueaccord.scalapb.Scalapb.ScalaPbOptions other) { if (other == com.trueaccord.scalapb.Scalapb.ScalaPbOptions.getDefaultInstance()) return this; if (other.hasPackageName()) { bitField0_ |= 0x00000001; packageName_ = other.packageName_; onChanged(); } if (other.hasFlatPackage()) { setFlatPackage(other.getFlatPackage()); } if (!other.import_.isEmpty()) { if (import_.isEmpty()) { import_ = other.import_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureImportIsMutable(); import_.addAll(other.import_); } onChanged(); } if (!other.preamble_.isEmpty()) { if (preamble_.isEmpty()) { preamble_ = other.preamble_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePreambleIsMutable(); preamble_.addAll(other.preamble_); } onChanged(); } if (other.hasSingleFile()) { setSingleFile(other.getSingleFile()); } if (other.hasNoPrimitiveWrappers()) { setNoPrimitiveWrappers(other.getNoPrimitiveWrappers()); } if (other.hasPrimitiveWrappers()) { setPrimitiveWrappers(other.getPrimitiveWrappers()); } if (other.hasCollectionType()) { bitField0_ |= 0x00000080; collectionType_ = other.collectionType_; onChanged(); } if (other.hasTestOnlyNoJavaConversions()) { setTestOnlyNoJavaConversions(other.getTestOnlyNoJavaConversions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.trueaccord.scalapb.Scalapb.ScalaPbOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.trueaccord.scalapb.Scalapb.ScalaPbOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object packageName_ = ""; /** *
       * If set then it overrides the java_package and package.
       * 
* * optional string package_name = 1; */ public boolean hasPackageName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
       * If set then it overrides the java_package and package.
       * 
* * optional string package_name = 1; */ public java.lang.String getPackageName() { java.lang.Object ref = packageName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { packageName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * If set then it overrides the java_package and package.
       * 
* * optional string package_name = 1; */ public com.google.protobuf.ByteString getPackageNameBytes() { java.lang.Object ref = packageName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); packageName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If set then it overrides the java_package and package.
       * 
* * optional string package_name = 1; */ public Builder setPackageName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; packageName_ = value; onChanged(); return this; } /** *
       * If set then it overrides the java_package and package.
       * 
* * optional string package_name = 1; */ public Builder clearPackageName() { bitField0_ = (bitField0_ & ~0x00000001); packageName_ = getDefaultInstance().getPackageName(); onChanged(); return this; } /** *
       * If set then it overrides the java_package and package.
       * 
* * optional string package_name = 1; */ public Builder setPackageNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; packageName_ = value; onChanged(); return this; } private boolean flatPackage_ ; /** *
       * If true, the compiler does not append the proto base file name
       * into the generated package name. If false (the default), the
       * generated scala package name is the package_name.basename where
       * basename is the proto file name without the .proto extension.
       * 
* * optional bool flat_package = 2; */ public boolean hasFlatPackage() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
       * If true, the compiler does not append the proto base file name
       * into the generated package name. If false (the default), the
       * generated scala package name is the package_name.basename where
       * basename is the proto file name without the .proto extension.
       * 
* * optional bool flat_package = 2; */ public boolean getFlatPackage() { return flatPackage_; } /** *
       * If true, the compiler does not append the proto base file name
       * into the generated package name. If false (the default), the
       * generated scala package name is the package_name.basename where
       * basename is the proto file name without the .proto extension.
       * 
* * optional bool flat_package = 2; */ public Builder setFlatPackage(boolean value) { bitField0_ |= 0x00000002; flatPackage_ = value; onChanged(); return this; } /** *
       * If true, the compiler does not append the proto base file name
       * into the generated package name. If false (the default), the
       * generated scala package name is the package_name.basename where
       * basename is the proto file name without the .proto extension.
       * 
* * optional bool flat_package = 2; */ public Builder clearFlatPackage() { bitField0_ = (bitField0_ & ~0x00000002); flatPackage_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList import_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureImportIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { import_ = new com.google.protobuf.LazyStringArrayList(import_); bitField0_ |= 0x00000004; } } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public com.google.protobuf.ProtocolStringList getImportList() { return import_.getUnmodifiableView(); } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public int getImportCount() { return import_.size(); } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public java.lang.String getImport(int index) { return import_.get(index); } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public com.google.protobuf.ByteString getImportBytes(int index) { return import_.getByteString(index); } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public Builder setImport( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureImportIsMutable(); import_.set(index, value); onChanged(); return this; } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public Builder addImport( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureImportIsMutable(); import_.add(value); onChanged(); return this; } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public Builder addAllImport( java.lang.Iterable values) { ensureImportIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, import_); onChanged(); return this; } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public Builder clearImport() { import_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Adds the following imports at the top of the file (this is meant
       * to provide implicit TypeMappers)
       * 
* * repeated string import = 3; */ public Builder addImportBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureImportIsMutable(); import_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList preamble_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePreambleIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { preamble_ = new com.google.protobuf.LazyStringArrayList(preamble_); bitField0_ |= 0x00000008; } } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public com.google.protobuf.ProtocolStringList getPreambleList() { return preamble_.getUnmodifiableView(); } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public int getPreambleCount() { return preamble_.size(); } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public java.lang.String getPreamble(int index) { return preamble_.get(index); } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public com.google.protobuf.ByteString getPreambleBytes(int index) { return preamble_.getByteString(index); } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public Builder setPreamble( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePreambleIsMutable(); preamble_.set(index, value); onChanged(); return this; } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public Builder addPreamble( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePreambleIsMutable(); preamble_.add(value); onChanged(); return this; } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public Builder addAllPreamble( java.lang.Iterable values) { ensurePreambleIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, preamble_); onChanged(); return this; } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public Builder clearPreamble() { preamble_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
       * Text to add to the generated scala file.  This can be used only
       * when single_file is true.
       * 
* * repeated string preamble = 4; */ public Builder addPreambleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePreambleIsMutable(); preamble_.add(value); onChanged(); return this; } private boolean singleFile_ ; /** *
       * If true, all messages and enums (but not services) will be written
       * to a single Scala file.
       * 
* * optional bool single_file = 5; */ public boolean hasSingleFile() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
       * If true, all messages and enums (but not services) will be written
       * to a single Scala file.
       * 
* * optional bool single_file = 5; */ public boolean getSingleFile() { return singleFile_; } /** *
       * If true, all messages and enums (but not services) will be written
       * to a single Scala file.
       * 
* * optional bool single_file = 5; */ public Builder setSingleFile(boolean value) { bitField0_ |= 0x00000010; singleFile_ = value; onChanged(); return this; } /** *
       * If true, all messages and enums (but not services) will be written
       * to a single Scala file.
       * 
* * optional bool single_file = 5; */ public Builder clearSingleFile() { bitField0_ = (bitField0_ & ~0x00000010); singleFile_ = false; onChanged(); return this; } private boolean noPrimitiveWrappers_ ; /** *
       * By default, wrappers defined at
       * https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto,
       * are mapped to an Option[T] where T is a primitive type. When this field
       * is set to true, we do not perform this transformation.
       * 
* * optional bool no_primitive_wrappers = 7; */ public boolean hasNoPrimitiveWrappers() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * By default, wrappers defined at
       * https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto,
       * are mapped to an Option[T] where T is a primitive type. When this field
       * is set to true, we do not perform this transformation.
       * 
* * optional bool no_primitive_wrappers = 7; */ public boolean getNoPrimitiveWrappers() { return noPrimitiveWrappers_; } /** *
       * By default, wrappers defined at
       * https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto,
       * are mapped to an Option[T] where T is a primitive type. When this field
       * is set to true, we do not perform this transformation.
       * 
* * optional bool no_primitive_wrappers = 7; */ public Builder setNoPrimitiveWrappers(boolean value) { bitField0_ |= 0x00000020; noPrimitiveWrappers_ = value; onChanged(); return this; } /** *
       * By default, wrappers defined at
       * https://github.com/google/protobuf/blob/master/src/google/protobuf/wrappers.proto,
       * are mapped to an Option[T] where T is a primitive type. When this field
       * is set to true, we do not perform this transformation.
       * 
* * optional bool no_primitive_wrappers = 7; */ public Builder clearNoPrimitiveWrappers() { bitField0_ = (bitField0_ & ~0x00000020); noPrimitiveWrappers_ = false; onChanged(); return this; } private boolean primitiveWrappers_ ; /** *
       * DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
       * primitive_wrappers. This field remains here for backwards compatibility,
       * but it has no effect on generated code. It is an error to set both
       * `primitive_wrappers` and `no_primitive_wrappers`.
       * 
* * optional bool primitive_wrappers = 6; */ public boolean hasPrimitiveWrappers() { return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
       * DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
       * primitive_wrappers. This field remains here for backwards compatibility,
       * but it has no effect on generated code. It is an error to set both
       * `primitive_wrappers` and `no_primitive_wrappers`.
       * 
* * optional bool primitive_wrappers = 6; */ public boolean getPrimitiveWrappers() { return primitiveWrappers_; } /** *
       * DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
       * primitive_wrappers. This field remains here for backwards compatibility,
       * but it has no effect on generated code. It is an error to set both
       * `primitive_wrappers` and `no_primitive_wrappers`.
       * 
* * optional bool primitive_wrappers = 6; */ public Builder setPrimitiveWrappers(boolean value) { bitField0_ |= 0x00000040; primitiveWrappers_ = value; onChanged(); return this; } /** *
       * DEPRECATED. In ScalaPB <= 0.5.47, it was necessary to explicitly enable
       * primitive_wrappers. This field remains here for backwards compatibility,
       * but it has no effect on generated code. It is an error to set both
       * `primitive_wrappers` and `no_primitive_wrappers`.
       * 
* * optional bool primitive_wrappers = 6; */ public Builder clearPrimitiveWrappers() { bitField0_ = (bitField0_ & ~0x00000040); primitiveWrappers_ = false; onChanged(); return this; } private java.lang.Object collectionType_ = ""; /** *
       * Scala type to be used for repeated fields. If unspecified,
       * `scala.collection.Seq` will be used.
       * 
* * optional string collection_type = 8; */ public boolean hasCollectionType() { return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
       * Scala type to be used for repeated fields. If unspecified,
       * `scala.collection.Seq` will be used.
       * 
* * optional string collection_type = 8; */ public java.lang.String getCollectionType() { java.lang.Object ref = collectionType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { collectionType_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Scala type to be used for repeated fields. If unspecified,
       * `scala.collection.Seq` will be used.
       * 
* * optional string collection_type = 8; */ public com.google.protobuf.ByteString getCollectionTypeBytes() { java.lang.Object ref = collectionType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Scala type to be used for repeated fields. If unspecified,
       * `scala.collection.Seq` will be used.
       * 
* * optional string collection_type = 8; */ public Builder setCollectionType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; collectionType_ = value; onChanged(); return this; } /** *
       * Scala type to be used for repeated fields. If unspecified,
       * `scala.collection.Seq` will be used.
       * 
* * optional string collection_type = 8; */ public Builder clearCollectionType() { bitField0_ = (bitField0_ & ~0x00000080); collectionType_ = getDefaultInstance().getCollectionType(); onChanged(); return this; } /** *
       * Scala type to be used for repeated fields. If unspecified,
       * `scala.collection.Seq` will be used.
       * 
* * optional string collection_type = 8; */ public Builder setCollectionTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; collectionType_ = value; onChanged(); return this; } private boolean testOnlyNoJavaConversions_ ; /** *
       * For use in tests only. Inhibit Java conversions even when when generator parameters
       * request for it.
       * 
* * optional bool test_only_no_java_conversions = 100001; */ public boolean hasTestOnlyNoJavaConversions() { return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
       * For use in tests only. Inhibit Java conversions even when when generator parameters
       * request for it.
       * 
* * optional bool test_only_no_java_conversions = 100001; */ public boolean getTestOnlyNoJavaConversions() { return testOnlyNoJavaConversions_; } /** *
       * For use in tests only. Inhibit Java conversions even when when generator parameters
       * request for it.
       * 
* * optional bool test_only_no_java_conversions = 100001; */ public Builder setTestOnlyNoJavaConversions(boolean value) { bitField0_ |= 0x00000100; testOnlyNoJavaConversions_ = value; onChanged(); return this; } /** *
       * For use in tests only. Inhibit Java conversions even when when generator parameters
       * request for it.
       * 
* * optional bool test_only_no_java_conversions = 100001; */ public Builder clearTestOnlyNoJavaConversions() { bitField0_ = (bitField0_ & ~0x00000100); testOnlyNoJavaConversions_ = false; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:scalapb.ScalaPbOptions) } // @@protoc_insertion_point(class_scope:scalapb.ScalaPbOptions) private static final com.trueaccord.scalapb.Scalapb.ScalaPbOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.trueaccord.scalapb.Scalapb.ScalaPbOptions(); } public static com.trueaccord.scalapb.Scalapb.ScalaPbOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ScalaPbOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ScalaPbOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.trueaccord.scalapb.Scalapb.ScalaPbOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MessageOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:scalapb.MessageOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Additional classes and traits to mix in to the case class.
     * 
* * repeated string extends = 1; */ java.util.List getExtendsList(); /** *
     * Additional classes and traits to mix in to the case class.
     * 
* * repeated string extends = 1; */ int getExtendsCount(); /** *
     * Additional classes and traits to mix in to the case class.
     * 
* * repeated string extends = 1; */ java.lang.String getExtends(int index); /** *
     * Additional classes and traits to mix in to the case class.
     * 
* * repeated string extends = 1; */ com.google.protobuf.ByteString getExtendsBytes(int index); /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ java.util.List getCompanionExtendsList(); /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ int getCompanionExtendsCount(); /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ java.lang.String getCompanionExtends(int index); /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ com.google.protobuf.ByteString getCompanionExtendsBytes(int index); /** *
     * Custom annotations to add to the generated case class.
     * 
* * repeated string annotations = 3; */ java.util.List getAnnotationsList(); /** *
     * Custom annotations to add to the generated case class.
     * 
* * repeated string annotations = 3; */ int getAnnotationsCount(); /** *
     * Custom annotations to add to the generated case class.
     * 
* * repeated string annotations = 3; */ java.lang.String getAnnotations(int index); /** *
     * Custom annotations to add to the generated case class.
     * 
* * repeated string annotations = 3; */ com.google.protobuf.ByteString getAnnotationsBytes(int index); /** *
     * All instances of this message will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 4; */ boolean hasType(); /** *
     * All instances of this message will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 4; */ java.lang.String getType(); /** *
     * All instances of this message will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 4; */ com.google.protobuf.ByteString getTypeBytes(); } /** * Protobuf type {@code scalapb.MessageOptions} */ public static final class MessageOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:scalapb.MessageOptions) MessageOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use MessageOptions.newBuilder() to construct. private MessageOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MessageOptions() { extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; companionExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY; annotations_ = com.google.protobuf.LazyStringArrayList.EMPTY; type_ = ""; } @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 { this(); 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: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { extends_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } extends_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { companionExtends_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } companionExtends_.add(bs); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { annotations_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000004; } annotations_.add(bs); break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { extends_ = extends_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { companionExtends_ = companionExtends_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { annotations_ = annotations_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_MessageOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_MessageOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.MessageOptions.class, com.trueaccord.scalapb.Scalapb.MessageOptions.Builder.class); } private int bitField0_; public static final int EXTENDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList extends_; /** *
     * Additional classes and traits to mix in to the case class.
     * 
* * repeated string extends = 1; */ public com.google.protobuf.ProtocolStringList getExtendsList() { return extends_; } /** *
     * Additional classes and traits to mix in to the case class.
     * 
* * repeated string extends = 1; */ public int getExtendsCount() { return extends_.size(); } /** *
     * Additional classes and traits to mix in to the case class.
     * 
* * repeated string extends = 1; */ public java.lang.String getExtends(int index) { return extends_.get(index); } /** *
     * Additional classes and traits to mix in to the case class.
     * 
* * repeated string extends = 1; */ public com.google.protobuf.ByteString getExtendsBytes(int index) { return extends_.getByteString(index); } public static final int COMPANION_EXTENDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList companionExtends_; /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ public com.google.protobuf.ProtocolStringList getCompanionExtendsList() { return companionExtends_; } /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ public int getCompanionExtendsCount() { return companionExtends_.size(); } /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ public java.lang.String getCompanionExtends(int index) { return companionExtends_.get(index); } /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ public com.google.protobuf.ByteString getCompanionExtendsBytes(int index) { return companionExtends_.getByteString(index); } public static final int ANNOTATIONS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList annotations_; /** *
     * Custom annotations to add to the generated case class.
     * 
* * repeated string annotations = 3; */ public com.google.protobuf.ProtocolStringList getAnnotationsList() { return annotations_; } /** *
     * Custom annotations to add to the generated case class.
     * 
* * repeated string annotations = 3; */ public int getAnnotationsCount() { return annotations_.size(); } /** *
     * Custom annotations to add to the generated case class.
     * 
* * repeated string annotations = 3; */ public java.lang.String getAnnotations(int index) { return annotations_.get(index); } /** *
     * Custom annotations to add to the generated case class.
     * 
* * repeated string annotations = 3; */ public com.google.protobuf.ByteString getAnnotationsBytes(int index) { return annotations_.getByteString(index); } public static final int TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object type_; /** *
     * All instances of this message will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * All instances of this message will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** *
     * All instances of this message will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < extends_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, extends_.getRaw(i)); } for (int i = 0; i < companionExtends_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companionExtends_.getRaw(i)); } for (int i = 0; i < annotations_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, annotations_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < extends_.size(); i++) { dataSize += computeStringSizeNoTag(extends_.getRaw(i)); } size += dataSize; size += 1 * getExtendsList().size(); } { int dataSize = 0; for (int i = 0; i < companionExtends_.size(); i++) { dataSize += computeStringSizeNoTag(companionExtends_.getRaw(i)); } size += dataSize; size += 1 * getCompanionExtendsList().size(); } { int dataSize = 0; for (int i = 0; i < annotations_.size(); i++) { dataSize += computeStringSizeNoTag(annotations_.getRaw(i)); } size += dataSize; size += 1 * getAnnotationsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.trueaccord.scalapb.Scalapb.MessageOptions)) { return super.equals(obj); } com.trueaccord.scalapb.Scalapb.MessageOptions other = (com.trueaccord.scalapb.Scalapb.MessageOptions) obj; boolean result = true; result = result && getExtendsList() .equals(other.getExtendsList()); result = result && getCompanionExtendsList() .equals(other.getCompanionExtendsList()); result = result && getAnnotationsList() .equals(other.getAnnotationsList()); result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType() .equals(other.getType()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getExtendsCount() > 0) { hash = (37 * hash) + EXTENDS_FIELD_NUMBER; hash = (53 * hash) + getExtendsList().hashCode(); } if (getCompanionExtendsCount() > 0) { hash = (37 * hash) + COMPANION_EXTENDS_FIELD_NUMBER; hash = (53 * hash) + getCompanionExtendsList().hashCode(); } if (getAnnotationsCount() > 0) { hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; hash = (53 * hash) + getAnnotationsList().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.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.trueaccord.scalapb.Scalapb.MessageOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.MessageOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.trueaccord.scalapb.Scalapb.MessageOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code scalapb.MessageOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:scalapb.MessageOptions) com.trueaccord.scalapb.Scalapb.MessageOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_MessageOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_MessageOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.MessageOptions.class, com.trueaccord.scalapb.Scalapb.MessageOptions.Builder.class); } // Construct using com.trueaccord.scalapb.Scalapb.MessageOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); companionExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); annotations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); type_ = ""; bitField0_ = (bitField0_ & ~0x00000008); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_MessageOptions_descriptor; } public com.trueaccord.scalapb.Scalapb.MessageOptions getDefaultInstanceForType() { return com.trueaccord.scalapb.Scalapb.MessageOptions.getDefaultInstance(); } public com.trueaccord.scalapb.Scalapb.MessageOptions build() { com.trueaccord.scalapb.Scalapb.MessageOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.trueaccord.scalapb.Scalapb.MessageOptions buildPartial() { com.trueaccord.scalapb.Scalapb.MessageOptions result = new com.trueaccord.scalapb.Scalapb.MessageOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { extends_ = extends_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.extends_ = extends_; if (((bitField0_ & 0x00000002) == 0x00000002)) { companionExtends_ = companionExtends_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.companionExtends_ = companionExtends_; if (((bitField0_ & 0x00000004) == 0x00000004)) { annotations_ = annotations_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.annotations_ = annotations_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.trueaccord.scalapb.Scalapb.MessageOptions) { return mergeFrom((com.trueaccord.scalapb.Scalapb.MessageOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.trueaccord.scalapb.Scalapb.MessageOptions other) { if (other == com.trueaccord.scalapb.Scalapb.MessageOptions.getDefaultInstance()) return this; if (!other.extends_.isEmpty()) { if (extends_.isEmpty()) { extends_ = other.extends_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExtendsIsMutable(); extends_.addAll(other.extends_); } onChanged(); } if (!other.companionExtends_.isEmpty()) { if (companionExtends_.isEmpty()) { companionExtends_ = other.companionExtends_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCompanionExtendsIsMutable(); companionExtends_.addAll(other.companionExtends_); } onChanged(); } if (!other.annotations_.isEmpty()) { if (annotations_.isEmpty()) { annotations_ = other.annotations_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAnnotationsIsMutable(); annotations_.addAll(other.annotations_); } onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000008; type_ = other.type_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.trueaccord.scalapb.Scalapb.MessageOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.trueaccord.scalapb.Scalapb.MessageOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExtendsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { extends_ = new com.google.protobuf.LazyStringArrayList(extends_); bitField0_ |= 0x00000001; } } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public com.google.protobuf.ProtocolStringList getExtendsList() { return extends_.getUnmodifiableView(); } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public int getExtendsCount() { return extends_.size(); } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public java.lang.String getExtends(int index) { return extends_.get(index); } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public com.google.protobuf.ByteString getExtendsBytes(int index) { return extends_.getByteString(index); } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public Builder setExtends( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.set(index, value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public Builder addExtends( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.add(value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public Builder addAllExtends( java.lang.Iterable values) { ensureExtendsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, extends_); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public Builder clearExtends() { extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the case class.
       * 
* * repeated string extends = 1; */ public Builder addExtendsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList companionExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCompanionExtendsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { companionExtends_ = new com.google.protobuf.LazyStringArrayList(companionExtends_); bitField0_ |= 0x00000002; } } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public com.google.protobuf.ProtocolStringList getCompanionExtendsList() { return companionExtends_.getUnmodifiableView(); } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public int getCompanionExtendsCount() { return companionExtends_.size(); } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public java.lang.String getCompanionExtends(int index) { return companionExtends_.get(index); } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public com.google.protobuf.ByteString getCompanionExtendsBytes(int index) { return companionExtends_.getByteString(index); } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder setCompanionExtends( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCompanionExtendsIsMutable(); companionExtends_.set(index, value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder addCompanionExtends( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCompanionExtendsIsMutable(); companionExtends_.add(value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder addAllCompanionExtends( java.lang.Iterable values) { ensureCompanionExtendsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, companionExtends_); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder clearCompanionExtends() { companionExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder addCompanionExtendsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureCompanionExtendsIsMutable(); companionExtends_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList annotations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { annotations_ = new com.google.protobuf.LazyStringArrayList(annotations_); bitField0_ |= 0x00000004; } } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public com.google.protobuf.ProtocolStringList getAnnotationsList() { return annotations_.getUnmodifiableView(); } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public int getAnnotationsCount() { return annotations_.size(); } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public java.lang.String getAnnotations(int index) { return annotations_.get(index); } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public com.google.protobuf.ByteString getAnnotationsBytes(int index) { return annotations_.getByteString(index); } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public Builder setAnnotations( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAnnotationsIsMutable(); annotations_.set(index, value); onChanged(); return this; } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public Builder addAnnotations( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureAnnotationsIsMutable(); annotations_.add(value); onChanged(); return this; } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public Builder addAllAnnotations( java.lang.Iterable values) { ensureAnnotationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, annotations_); onChanged(); return this; } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public Builder clearAnnotations() { annotations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
       * Custom annotations to add to the generated case class.
       * 
* * repeated string annotations = 3; */ public Builder addAnnotationsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureAnnotationsIsMutable(); annotations_.add(value); onChanged(); return this; } private java.lang.Object type_ = ""; /** *
       * All instances of this message will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 4; */ public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * All instances of this message will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 4; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * All instances of this message will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 4; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * All instances of this message will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 4; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } /** *
       * All instances of this message will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 4; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * All instances of this message will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 4; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:scalapb.MessageOptions) } // @@protoc_insertion_point(class_scope:scalapb.MessageOptions) private static final com.trueaccord.scalapb.Scalapb.MessageOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.trueaccord.scalapb.Scalapb.MessageOptions(); } public static com.trueaccord.scalapb.Scalapb.MessageOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public MessageOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MessageOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.trueaccord.scalapb.Scalapb.MessageOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:scalapb.FieldOptions) com.google.protobuf.MessageOrBuilder { /** * optional string type = 1; */ boolean hasType(); /** * optional string type = 1; */ java.lang.String getType(); /** * optional string type = 1; */ com.google.protobuf.ByteString getTypeBytes(); /** * optional string scala_name = 2; */ boolean hasScalaName(); /** * optional string scala_name = 2; */ java.lang.String getScalaName(); /** * optional string scala_name = 2; */ com.google.protobuf.ByteString getScalaNameBytes(); /** *
     * Can be specified only if this field is repeated. If unspecified,
     * it falls back to the file option named `collection_type`, which defaults
     * to `scala.collection.Seq`.
     * 
* * optional string collection_type = 3; */ boolean hasCollectionType(); /** *
     * Can be specified only if this field is repeated. If unspecified,
     * it falls back to the file option named `collection_type`, which defaults
     * to `scala.collection.Seq`.
     * 
* * optional string collection_type = 3; */ java.lang.String getCollectionType(); /** *
     * Can be specified only if this field is repeated. If unspecified,
     * it falls back to the file option named `collection_type`, which defaults
     * to `scala.collection.Seq`.
     * 
* * optional string collection_type = 3; */ com.google.protobuf.ByteString getCollectionTypeBytes(); /** *
     * If the field is a map, you can specify custom Scala types for the key
     * or value.
     * 
* * optional string key_type = 4; */ boolean hasKeyType(); /** *
     * If the field is a map, you can specify custom Scala types for the key
     * or value.
     * 
* * optional string key_type = 4; */ java.lang.String getKeyType(); /** *
     * If the field is a map, you can specify custom Scala types for the key
     * or value.
     * 
* * optional string key_type = 4; */ com.google.protobuf.ByteString getKeyTypeBytes(); /** * optional string value_type = 5; */ boolean hasValueType(); /** * optional string value_type = 5; */ java.lang.String getValueType(); /** * optional string value_type = 5; */ com.google.protobuf.ByteString getValueTypeBytes(); } /** * Protobuf type {@code scalapb.FieldOptions} */ public static final class FieldOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:scalapb.FieldOptions) FieldOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use FieldOptions.newBuilder() to construct. private FieldOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldOptions() { type_ = ""; scalaName_ = ""; collectionType_ = ""; keyType_ = ""; valueType_ = ""; } @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 { this(); 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: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; scalaName_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; collectionType_ = bs; break; } case 34: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000008; keyType_ = bs; break; } case 42: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000010; valueType_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_FieldOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_FieldOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.FieldOptions.class, com.trueaccord.scalapb.Scalapb.FieldOptions.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCALA_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object scalaName_; /** * optional string scala_name = 2; */ public boolean hasScalaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string scala_name = 2; */ public java.lang.String getScalaName() { java.lang.Object ref = scalaName_; 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()) { scalaName_ = s; } return s; } } /** * optional string scala_name = 2; */ public com.google.protobuf.ByteString getScalaNameBytes() { java.lang.Object ref = scalaName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scalaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLLECTION_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object collectionType_; /** *
     * Can be specified only if this field is repeated. If unspecified,
     * it falls back to the file option named `collection_type`, which defaults
     * to `scala.collection.Seq`.
     * 
* * optional string collection_type = 3; */ public boolean hasCollectionType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
     * Can be specified only if this field is repeated. If unspecified,
     * it falls back to the file option named `collection_type`, which defaults
     * to `scala.collection.Seq`.
     * 
* * optional string collection_type = 3; */ public java.lang.String getCollectionType() { java.lang.Object ref = collectionType_; 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()) { collectionType_ = s; } return s; } } /** *
     * Can be specified only if this field is repeated. If unspecified,
     * it falls back to the file option named `collection_type`, which defaults
     * to `scala.collection.Seq`.
     * 
* * optional string collection_type = 3; */ public com.google.protobuf.ByteString getCollectionTypeBytes() { java.lang.Object ref = collectionType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int KEY_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object keyType_; /** *
     * If the field is a map, you can specify custom Scala types for the key
     * or value.
     * 
* * optional string key_type = 4; */ public boolean hasKeyType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * If the field is a map, you can specify custom Scala types for the key
     * or value.
     * 
* * optional string key_type = 4; */ public java.lang.String getKeyType() { java.lang.Object ref = keyType_; 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()) { keyType_ = s; } return s; } } /** *
     * If the field is a map, you can specify custom Scala types for the key
     * or value.
     * 
* * optional string key_type = 4; */ public com.google.protobuf.ByteString getKeyTypeBytes() { java.lang.Object ref = keyType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VALUE_TYPE_FIELD_NUMBER = 5; private volatile java.lang.Object valueType_; /** * optional string value_type = 5; */ public boolean hasValueType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string value_type = 5; */ public java.lang.String getValueType() { java.lang.Object ref = valueType_; 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()) { valueType_ = s; } return s; } } /** * optional string value_type = 5; */ public com.google.protobuf.ByteString getValueTypeBytes() { java.lang.Object ref = valueType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); valueType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scalaName_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collectionType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keyType_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, valueType_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scalaName_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collectionType_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keyType_); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, valueType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.trueaccord.scalapb.Scalapb.FieldOptions)) { return super.equals(obj); } com.trueaccord.scalapb.Scalapb.FieldOptions other = (com.trueaccord.scalapb.Scalapb.FieldOptions) obj; boolean result = true; result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType() .equals(other.getType()); } result = result && (hasScalaName() == other.hasScalaName()); if (hasScalaName()) { result = result && getScalaName() .equals(other.getScalaName()); } result = result && (hasCollectionType() == other.hasCollectionType()); if (hasCollectionType()) { result = result && getCollectionType() .equals(other.getCollectionType()); } result = result && (hasKeyType() == other.hasKeyType()); if (hasKeyType()) { result = result && getKeyType() .equals(other.getKeyType()); } result = result && (hasValueType() == other.hasValueType()); if (hasValueType()) { result = result && getValueType() .equals(other.getValueType()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } if (hasScalaName()) { hash = (37 * hash) + SCALA_NAME_FIELD_NUMBER; hash = (53 * hash) + getScalaName().hashCode(); } if (hasCollectionType()) { hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; hash = (53 * hash) + getCollectionType().hashCode(); } if (hasKeyType()) { hash = (37 * hash) + KEY_TYPE_FIELD_NUMBER; hash = (53 * hash) + getKeyType().hashCode(); } if (hasValueType()) { hash = (37 * hash) + VALUE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getValueType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.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.trueaccord.scalapb.Scalapb.FieldOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.FieldOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.trueaccord.scalapb.Scalapb.FieldOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code scalapb.FieldOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:scalapb.FieldOptions) com.trueaccord.scalapb.Scalapb.FieldOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_FieldOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_FieldOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.FieldOptions.class, com.trueaccord.scalapb.Scalapb.FieldOptions.Builder.class); } // Construct using com.trueaccord.scalapb.Scalapb.FieldOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); type_ = ""; bitField0_ = (bitField0_ & ~0x00000001); scalaName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); collectionType_ = ""; bitField0_ = (bitField0_ & ~0x00000004); keyType_ = ""; bitField0_ = (bitField0_ & ~0x00000008); valueType_ = ""; bitField0_ = (bitField0_ & ~0x00000010); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_FieldOptions_descriptor; } public com.trueaccord.scalapb.Scalapb.FieldOptions getDefaultInstanceForType() { return com.trueaccord.scalapb.Scalapb.FieldOptions.getDefaultInstance(); } public com.trueaccord.scalapb.Scalapb.FieldOptions build() { com.trueaccord.scalapb.Scalapb.FieldOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.trueaccord.scalapb.Scalapb.FieldOptions buildPartial() { com.trueaccord.scalapb.Scalapb.FieldOptions result = new com.trueaccord.scalapb.Scalapb.FieldOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.scalaName_ = scalaName_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.collectionType_ = collectionType_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.keyType_ = keyType_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.valueType_ = valueType_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.trueaccord.scalapb.Scalapb.FieldOptions) { return mergeFrom((com.trueaccord.scalapb.Scalapb.FieldOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.trueaccord.scalapb.Scalapb.FieldOptions other) { if (other == com.trueaccord.scalapb.Scalapb.FieldOptions.getDefaultInstance()) return this; if (other.hasType()) { bitField0_ |= 0x00000001; type_ = other.type_; onChanged(); } if (other.hasScalaName()) { bitField0_ |= 0x00000002; scalaName_ = other.scalaName_; onChanged(); } if (other.hasCollectionType()) { bitField0_ |= 0x00000004; collectionType_ = other.collectionType_; onChanged(); } if (other.hasKeyType()) { bitField0_ |= 0x00000008; keyType_ = other.keyType_; onChanged(); } if (other.hasValueType()) { bitField0_ |= 0x00000010; valueType_ = other.valueType_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.trueaccord.scalapb.Scalapb.FieldOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.trueaccord.scalapb.Scalapb.FieldOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object type_ = ""; /** * optional string type = 1; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional string type = 1; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string type = 1; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string type = 1; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } /** * optional string type = 1; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** * optional string type = 1; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value; onChanged(); return this; } private java.lang.Object scalaName_ = ""; /** * optional string scala_name = 2; */ public boolean hasScalaName() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * optional string scala_name = 2; */ public java.lang.String getScalaName() { java.lang.Object ref = scalaName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { scalaName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string scala_name = 2; */ public com.google.protobuf.ByteString getScalaNameBytes() { java.lang.Object ref = scalaName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); scalaName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string scala_name = 2; */ public Builder setScalaName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; scalaName_ = value; onChanged(); return this; } /** * optional string scala_name = 2; */ public Builder clearScalaName() { bitField0_ = (bitField0_ & ~0x00000002); scalaName_ = getDefaultInstance().getScalaName(); onChanged(); return this; } /** * optional string scala_name = 2; */ public Builder setScalaNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; scalaName_ = value; onChanged(); return this; } private java.lang.Object collectionType_ = ""; /** *
       * Can be specified only if this field is repeated. If unspecified,
       * it falls back to the file option named `collection_type`, which defaults
       * to `scala.collection.Seq`.
       * 
* * optional string collection_type = 3; */ public boolean hasCollectionType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * Can be specified only if this field is repeated. If unspecified,
       * it falls back to the file option named `collection_type`, which defaults
       * to `scala.collection.Seq`.
       * 
* * optional string collection_type = 3; */ public java.lang.String getCollectionType() { java.lang.Object ref = collectionType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { collectionType_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Can be specified only if this field is repeated. If unspecified,
       * it falls back to the file option named `collection_type`, which defaults
       * to `scala.collection.Seq`.
       * 
* * optional string collection_type = 3; */ public com.google.protobuf.ByteString getCollectionTypeBytes() { java.lang.Object ref = collectionType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Can be specified only if this field is repeated. If unspecified,
       * it falls back to the file option named `collection_type`, which defaults
       * to `scala.collection.Seq`.
       * 
* * optional string collection_type = 3; */ public Builder setCollectionType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; collectionType_ = value; onChanged(); return this; } /** *
       * Can be specified only if this field is repeated. If unspecified,
       * it falls back to the file option named `collection_type`, which defaults
       * to `scala.collection.Seq`.
       * 
* * optional string collection_type = 3; */ public Builder clearCollectionType() { bitField0_ = (bitField0_ & ~0x00000004); collectionType_ = getDefaultInstance().getCollectionType(); onChanged(); return this; } /** *
       * Can be specified only if this field is repeated. If unspecified,
       * it falls back to the file option named `collection_type`, which defaults
       * to `scala.collection.Seq`.
       * 
* * optional string collection_type = 3; */ public Builder setCollectionTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; collectionType_ = value; onChanged(); return this; } private java.lang.Object keyType_ = ""; /** *
       * If the field is a map, you can specify custom Scala types for the key
       * or value.
       * 
* * optional string key_type = 4; */ public boolean hasKeyType() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
       * If the field is a map, you can specify custom Scala types for the key
       * or value.
       * 
* * optional string key_type = 4; */ public java.lang.String getKeyType() { java.lang.Object ref = keyType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { keyType_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * If the field is a map, you can specify custom Scala types for the key
       * or value.
       * 
* * optional string key_type = 4; */ public com.google.protobuf.ByteString getKeyTypeBytes() { java.lang.Object ref = keyType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); keyType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * If the field is a map, you can specify custom Scala types for the key
       * or value.
       * 
* * optional string key_type = 4; */ public Builder setKeyType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; keyType_ = value; onChanged(); return this; } /** *
       * If the field is a map, you can specify custom Scala types for the key
       * or value.
       * 
* * optional string key_type = 4; */ public Builder clearKeyType() { bitField0_ = (bitField0_ & ~0x00000008); keyType_ = getDefaultInstance().getKeyType(); onChanged(); return this; } /** *
       * If the field is a map, you can specify custom Scala types for the key
       * or value.
       * 
* * optional string key_type = 4; */ public Builder setKeyTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; keyType_ = value; onChanged(); return this; } private java.lang.Object valueType_ = ""; /** * optional string value_type = 5; */ public boolean hasValueType() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * optional string value_type = 5; */ public java.lang.String getValueType() { java.lang.Object ref = valueType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { valueType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string value_type = 5; */ public com.google.protobuf.ByteString getValueTypeBytes() { java.lang.Object ref = valueType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); valueType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string value_type = 5; */ public Builder setValueType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; valueType_ = value; onChanged(); return this; } /** * optional string value_type = 5; */ public Builder clearValueType() { bitField0_ = (bitField0_ & ~0x00000010); valueType_ = getDefaultInstance().getValueType(); onChanged(); return this; } /** * optional string value_type = 5; */ public Builder setValueTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; valueType_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:scalapb.FieldOptions) } // @@protoc_insertion_point(class_scope:scalapb.FieldOptions) private static final com.trueaccord.scalapb.Scalapb.FieldOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.trueaccord.scalapb.Scalapb.FieldOptions(); } public static com.trueaccord.scalapb.Scalapb.FieldOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public FieldOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.trueaccord.scalapb.Scalapb.FieldOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:scalapb.EnumOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Additional classes and traits to mix in to the base trait
     * 
* * repeated string extends = 1; */ java.util.List getExtendsList(); /** *
     * Additional classes and traits to mix in to the base trait
     * 
* * repeated string extends = 1; */ int getExtendsCount(); /** *
     * Additional classes and traits to mix in to the base trait
     * 
* * repeated string extends = 1; */ java.lang.String getExtends(int index); /** *
     * Additional classes and traits to mix in to the base trait
     * 
* * repeated string extends = 1; */ com.google.protobuf.ByteString getExtendsBytes(int index); /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ java.util.List getCompanionExtendsList(); /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ int getCompanionExtendsCount(); /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ java.lang.String getCompanionExtends(int index); /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ com.google.protobuf.ByteString getCompanionExtendsBytes(int index); /** *
     * All instances of this enum will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 3; */ boolean hasType(); /** *
     * All instances of this enum will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 3; */ java.lang.String getType(); /** *
     * All instances of this enum will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 3; */ com.google.protobuf.ByteString getTypeBytes(); } /** * Protobuf type {@code scalapb.EnumOptions} */ public static final class EnumOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:scalapb.EnumOptions) EnumOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use EnumOptions.newBuilder() to construct. private EnumOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnumOptions() { extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; companionExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY; type_ = ""; } @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 { this(); 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: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { extends_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } extends_.add(bs); break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { companionExtends_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000002; } companionExtends_.add(bs); break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; type_ = bs; break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { extends_ = extends_.getUnmodifiableView(); } if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { companionExtends_ = companionExtends_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.EnumOptions.class, com.trueaccord.scalapb.Scalapb.EnumOptions.Builder.class); } private int bitField0_; public static final int EXTENDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList extends_; /** *
     * Additional classes and traits to mix in to the base trait
     * 
* * repeated string extends = 1; */ public com.google.protobuf.ProtocolStringList getExtendsList() { return extends_; } /** *
     * Additional classes and traits to mix in to the base trait
     * 
* * repeated string extends = 1; */ public int getExtendsCount() { return extends_.size(); } /** *
     * Additional classes and traits to mix in to the base trait
     * 
* * repeated string extends = 1; */ public java.lang.String getExtends(int index) { return extends_.get(index); } /** *
     * Additional classes and traits to mix in to the base trait
     * 
* * repeated string extends = 1; */ public com.google.protobuf.ByteString getExtendsBytes(int index) { return extends_.getByteString(index); } public static final int COMPANION_EXTENDS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList companionExtends_; /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ public com.google.protobuf.ProtocolStringList getCompanionExtendsList() { return companionExtends_; } /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ public int getCompanionExtendsCount() { return companionExtends_.size(); } /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ public java.lang.String getCompanionExtends(int index) { return companionExtends_.get(index); } /** *
     * Additional classes and traits to mix in to the companion object.
     * 
* * repeated string companion_extends = 2; */ public com.google.protobuf.ByteString getCompanionExtendsBytes(int index) { return companionExtends_.getByteString(index); } public static final int TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object type_; /** *
     * All instances of this enum will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
     * All instances of this enum will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 3; */ public java.lang.String getType() { java.lang.Object ref = type_; 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()) { type_ = s; } return s; } } /** *
     * All instances of this enum will be converted to this type. An implicit TypeMapper
     * must be present.
     * 
* * optional string type = 3; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < extends_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, extends_.getRaw(i)); } for (int i = 0; i < companionExtends_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companionExtends_.getRaw(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < extends_.size(); i++) { dataSize += computeStringSizeNoTag(extends_.getRaw(i)); } size += dataSize; size += 1 * getExtendsList().size(); } { int dataSize = 0; for (int i = 0; i < companionExtends_.size(); i++) { dataSize += computeStringSizeNoTag(companionExtends_.getRaw(i)); } size += dataSize; size += 1 * getCompanionExtendsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.trueaccord.scalapb.Scalapb.EnumOptions)) { return super.equals(obj); } com.trueaccord.scalapb.Scalapb.EnumOptions other = (com.trueaccord.scalapb.Scalapb.EnumOptions) obj; boolean result = true; result = result && getExtendsList() .equals(other.getExtendsList()); result = result && getCompanionExtendsList() .equals(other.getCompanionExtendsList()); result = result && (hasType() == other.hasType()); if (hasType()) { result = result && getType() .equals(other.getType()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getExtendsCount() > 0) { hash = (37 * hash) + EXTENDS_FIELD_NUMBER; hash = (53 * hash) + getExtendsList().hashCode(); } if (getCompanionExtendsCount() > 0) { hash = (37 * hash) + COMPANION_EXTENDS_FIELD_NUMBER; hash = (53 * hash) + getCompanionExtendsList().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.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.trueaccord.scalapb.Scalapb.EnumOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.EnumOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.trueaccord.scalapb.Scalapb.EnumOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code scalapb.EnumOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:scalapb.EnumOptions) com.trueaccord.scalapb.Scalapb.EnumOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.EnumOptions.class, com.trueaccord.scalapb.Scalapb.EnumOptions.Builder.class); } // Construct using com.trueaccord.scalapb.Scalapb.EnumOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); companionExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); type_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumOptions_descriptor; } public com.trueaccord.scalapb.Scalapb.EnumOptions getDefaultInstanceForType() { return com.trueaccord.scalapb.Scalapb.EnumOptions.getDefaultInstance(); } public com.trueaccord.scalapb.Scalapb.EnumOptions build() { com.trueaccord.scalapb.Scalapb.EnumOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.trueaccord.scalapb.Scalapb.EnumOptions buildPartial() { com.trueaccord.scalapb.Scalapb.EnumOptions result = new com.trueaccord.scalapb.Scalapb.EnumOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { extends_ = extends_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.extends_ = extends_; if (((bitField0_ & 0x00000002) == 0x00000002)) { companionExtends_ = companionExtends_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.companionExtends_ = companionExtends_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.trueaccord.scalapb.Scalapb.EnumOptions) { return mergeFrom((com.trueaccord.scalapb.Scalapb.EnumOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.trueaccord.scalapb.Scalapb.EnumOptions other) { if (other == com.trueaccord.scalapb.Scalapb.EnumOptions.getDefaultInstance()) return this; if (!other.extends_.isEmpty()) { if (extends_.isEmpty()) { extends_ = other.extends_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExtendsIsMutable(); extends_.addAll(other.extends_); } onChanged(); } if (!other.companionExtends_.isEmpty()) { if (companionExtends_.isEmpty()) { companionExtends_ = other.companionExtends_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCompanionExtendsIsMutable(); companionExtends_.addAll(other.companionExtends_); } onChanged(); } if (other.hasType()) { bitField0_ |= 0x00000004; type_ = other.type_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.trueaccord.scalapb.Scalapb.EnumOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.trueaccord.scalapb.Scalapb.EnumOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExtendsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { extends_ = new com.google.protobuf.LazyStringArrayList(extends_); bitField0_ |= 0x00000001; } } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public com.google.protobuf.ProtocolStringList getExtendsList() { return extends_.getUnmodifiableView(); } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public int getExtendsCount() { return extends_.size(); } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public java.lang.String getExtends(int index) { return extends_.get(index); } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public com.google.protobuf.ByteString getExtendsBytes(int index) { return extends_.getByteString(index); } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public Builder setExtends( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.set(index, value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public Builder addExtends( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.add(value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public Builder addAllExtends( java.lang.Iterable values) { ensureExtendsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, extends_); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public Builder clearExtends() { extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the base trait
       * 
* * repeated string extends = 1; */ public Builder addExtendsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList companionExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCompanionExtendsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { companionExtends_ = new com.google.protobuf.LazyStringArrayList(companionExtends_); bitField0_ |= 0x00000002; } } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public com.google.protobuf.ProtocolStringList getCompanionExtendsList() { return companionExtends_.getUnmodifiableView(); } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public int getCompanionExtendsCount() { return companionExtends_.size(); } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public java.lang.String getCompanionExtends(int index) { return companionExtends_.get(index); } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public com.google.protobuf.ByteString getCompanionExtendsBytes(int index) { return companionExtends_.getByteString(index); } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder setCompanionExtends( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCompanionExtendsIsMutable(); companionExtends_.set(index, value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder addCompanionExtends( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCompanionExtendsIsMutable(); companionExtends_.add(value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder addAllCompanionExtends( java.lang.Iterable values) { ensureCompanionExtendsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, companionExtends_); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder clearCompanionExtends() { companionExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to the companion object.
       * 
* * repeated string companion_extends = 2; */ public Builder addCompanionExtendsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureCompanionExtendsIsMutable(); companionExtends_.add(value); onChanged(); return this; } private java.lang.Object type_ = ""; /** *
       * All instances of this enum will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 3; */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
       * All instances of this enum will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 3; */ public java.lang.String getType() { java.lang.Object ref = type_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { type_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * All instances of this enum will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 3; */ public com.google.protobuf.ByteString getTypeBytes() { java.lang.Object ref = type_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); type_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * All instances of this enum will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 3; */ public Builder setType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** *
       * All instances of this enum will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 3; */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = getDefaultInstance().getType(); onChanged(); return this; } /** *
       * All instances of this enum will be converted to this type. An implicit TypeMapper
       * must be present.
       * 
* * optional string type = 3; */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:scalapb.EnumOptions) } // @@protoc_insertion_point(class_scope:scalapb.EnumOptions) private static final com.trueaccord.scalapb.Scalapb.EnumOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.trueaccord.scalapb.Scalapb.EnumOptions(); } public static com.trueaccord.scalapb.Scalapb.EnumOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public EnumOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.trueaccord.scalapb.Scalapb.EnumOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EnumValueOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:scalapb.EnumValueOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Additional classes and traits to mix in to an individual enum value.
     * 
* * repeated string extends = 1; */ java.util.List getExtendsList(); /** *
     * Additional classes and traits to mix in to an individual enum value.
     * 
* * repeated string extends = 1; */ int getExtendsCount(); /** *
     * Additional classes and traits to mix in to an individual enum value.
     * 
* * repeated string extends = 1; */ java.lang.String getExtends(int index); /** *
     * Additional classes and traits to mix in to an individual enum value.
     * 
* * repeated string extends = 1; */ com.google.protobuf.ByteString getExtendsBytes(int index); } /** * Protobuf type {@code scalapb.EnumValueOptions} */ public static final class EnumValueOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:scalapb.EnumValueOptions) EnumValueOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use EnumValueOptions.newBuilder() to construct. private EnumValueOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EnumValueOptions() { extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @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 { this(); 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: { com.google.protobuf.ByteString bs = input.readBytes(); if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { extends_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } extends_.add(bs); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { extends_ = extends_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumValueOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumValueOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.EnumValueOptions.class, com.trueaccord.scalapb.Scalapb.EnumValueOptions.Builder.class); } public static final int EXTENDS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList extends_; /** *
     * Additional classes and traits to mix in to an individual enum value.
     * 
* * repeated string extends = 1; */ public com.google.protobuf.ProtocolStringList getExtendsList() { return extends_; } /** *
     * Additional classes and traits to mix in to an individual enum value.
     * 
* * repeated string extends = 1; */ public int getExtendsCount() { return extends_.size(); } /** *
     * Additional classes and traits to mix in to an individual enum value.
     * 
* * repeated string extends = 1; */ public java.lang.String getExtends(int index) { return extends_.get(index); } /** *
     * Additional classes and traits to mix in to an individual enum value.
     * 
* * repeated string extends = 1; */ public com.google.protobuf.ByteString getExtendsBytes(int index) { return extends_.getByteString(index); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < extends_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, extends_.getRaw(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < extends_.size(); i++) { dataSize += computeStringSizeNoTag(extends_.getRaw(i)); } size += dataSize; size += 1 * getExtendsList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.trueaccord.scalapb.Scalapb.EnumValueOptions)) { return super.equals(obj); } com.trueaccord.scalapb.Scalapb.EnumValueOptions other = (com.trueaccord.scalapb.Scalapb.EnumValueOptions) obj; boolean result = true; result = result && getExtendsList() .equals(other.getExtendsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getExtendsCount() > 0) { hash = (37 * hash) + EXTENDS_FIELD_NUMBER; hash = (53 * hash) + getExtendsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.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.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.trueaccord.scalapb.Scalapb.EnumValueOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code scalapb.EnumValueOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:scalapb.EnumValueOptions) com.trueaccord.scalapb.Scalapb.EnumValueOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumValueOptions_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumValueOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( com.trueaccord.scalapb.Scalapb.EnumValueOptions.class, com.trueaccord.scalapb.Scalapb.EnumValueOptions.Builder.class); } // Construct using com.trueaccord.scalapb.Scalapb.EnumValueOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.trueaccord.scalapb.Scalapb.internal_static_scalapb_EnumValueOptions_descriptor; } public com.trueaccord.scalapb.Scalapb.EnumValueOptions getDefaultInstanceForType() { return com.trueaccord.scalapb.Scalapb.EnumValueOptions.getDefaultInstance(); } public com.trueaccord.scalapb.Scalapb.EnumValueOptions build() { com.trueaccord.scalapb.Scalapb.EnumValueOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.trueaccord.scalapb.Scalapb.EnumValueOptions buildPartial() { com.trueaccord.scalapb.Scalapb.EnumValueOptions result = new com.trueaccord.scalapb.Scalapb.EnumValueOptions(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) == 0x00000001)) { extends_ = extends_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.extends_ = extends_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.trueaccord.scalapb.Scalapb.EnumValueOptions) { return mergeFrom((com.trueaccord.scalapb.Scalapb.EnumValueOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.trueaccord.scalapb.Scalapb.EnumValueOptions other) { if (other == com.trueaccord.scalapb.Scalapb.EnumValueOptions.getDefaultInstance()) return this; if (!other.extends_.isEmpty()) { if (extends_.isEmpty()) { extends_ = other.extends_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureExtendsIsMutable(); extends_.addAll(other.extends_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); 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.trueaccord.scalapb.Scalapb.EnumValueOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.trueaccord.scalapb.Scalapb.EnumValueOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExtendsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { extends_ = new com.google.protobuf.LazyStringArrayList(extends_); bitField0_ |= 0x00000001; } } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public com.google.protobuf.ProtocolStringList getExtendsList() { return extends_.getUnmodifiableView(); } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public int getExtendsCount() { return extends_.size(); } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public java.lang.String getExtends(int index) { return extends_.get(index); } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public com.google.protobuf.ByteString getExtendsBytes(int index) { return extends_.getByteString(index); } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public Builder setExtends( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.set(index, value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public Builder addExtends( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.add(value); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public Builder addAllExtends( java.lang.Iterable values) { ensureExtendsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, extends_); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public Builder clearExtends() { extends_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Additional classes and traits to mix in to an individual enum value.
       * 
* * repeated string extends = 1; */ public Builder addExtendsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureExtendsIsMutable(); extends_.add(value); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:scalapb.EnumValueOptions) } // @@protoc_insertion_point(class_scope:scalapb.EnumValueOptions) private static final com.trueaccord.scalapb.Scalapb.EnumValueOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.trueaccord.scalapb.Scalapb.EnumValueOptions(); } public static com.trueaccord.scalapb.Scalapb.EnumValueOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public EnumValueOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EnumValueOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.trueaccord.scalapb.Scalapb.EnumValueOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int OPTIONS_FIELD_NUMBER = 1020; /** *
   * File-level optionals for ScalaPB.
   * Extension number officially assigned by protobuf-global-extension-registry@google.com
   * 
* * extend .google.protobuf.FileOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FileOptions, com.trueaccord.scalapb.Scalapb.ScalaPbOptions> options = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.trueaccord.scalapb.Scalapb.ScalaPbOptions.class, com.trueaccord.scalapb.Scalapb.ScalaPbOptions.getDefaultInstance()); public static final int MESSAGE_FIELD_NUMBER = 1020; /** *
   * Message-level optionals for ScalaPB.
   * Extension number officially assigned by protobuf-global-extension-registry@google.com
   * 
* * extend .google.protobuf.MessageOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.MessageOptions, com.trueaccord.scalapb.Scalapb.MessageOptions> message = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.trueaccord.scalapb.Scalapb.MessageOptions.class, com.trueaccord.scalapb.Scalapb.MessageOptions.getDefaultInstance()); public static final int FIELD_FIELD_NUMBER = 1020; /** *
   * Field-level optionals for ScalaPB.
   * Extension number officially assigned by protobuf-global-extension-registry@google.com
   * 
* * extend .google.protobuf.FieldOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.FieldOptions, com.trueaccord.scalapb.Scalapb.FieldOptions> field = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.trueaccord.scalapb.Scalapb.FieldOptions.class, com.trueaccord.scalapb.Scalapb.FieldOptions.getDefaultInstance()); public static final int ENUM_OPTIONS_FIELD_NUMBER = 1020; /** *
   * Enum-level optionals for ScalaPB.
   * Extension number officially assigned by protobuf-global-extension-registry@google.com
   * The field is called enum_options and not enum since enum is not allowed in Java.
   * 
* * extend .google.protobuf.EnumOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumOptions, com.trueaccord.scalapb.Scalapb.EnumOptions> enumOptions = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.trueaccord.scalapb.Scalapb.EnumOptions.class, com.trueaccord.scalapb.Scalapb.EnumOptions.getDefaultInstance()); public static final int ENUM_VALUE_FIELD_NUMBER = 1020; /** *
   * Enum-level optionals for ScalaPB.
   * Extension number officially assigned by protobuf-global-extension-registry@google.com
   * 
* * extend .google.protobuf.EnumValueOptions { ... } */ public static final com.google.protobuf.GeneratedMessage.GeneratedExtension< com.google.protobuf.DescriptorProtos.EnumValueOptions, com.trueaccord.scalapb.Scalapb.EnumValueOptions> enumValue = com.google.protobuf.GeneratedMessage .newFileScopedGeneratedExtension( com.trueaccord.scalapb.Scalapb.EnumValueOptions.class, com.trueaccord.scalapb.Scalapb.EnumValueOptions.getDefaultInstance()); private static final com.google.protobuf.Descriptors.Descriptor internal_static_scalapb_ScalaPbOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalapb_ScalaPbOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_scalapb_MessageOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalapb_MessageOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_scalapb_FieldOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalapb_FieldOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_scalapb_EnumOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalapb_EnumOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_scalapb_EnumValueOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalapb_EnumValueOptions_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\025scalapb/scalapb.proto\022\007scalapb\032 google" + "/protobuf/descriptor.proto\"\360\001\n\016ScalaPbOp" + "tions\022\024\n\014package_name\030\001 \001(\t\022\024\n\014flat_pack" + "age\030\002 \001(\010\022\016\n\006import\030\003 \003(\t\022\020\n\010preamble\030\004 " + "\003(\t\022\023\n\013single_file\030\005 \001(\010\022\035\n\025no_primitive" + "_wrappers\030\007 \001(\010\022\032\n\022primitive_wrappers\030\006 " + "\001(\010\022\027\n\017collection_type\030\010 \001(\t\022\'\n\035test_onl" + "y_no_java_conversions\030\241\215\006 \001(\010\"_\n\016Message" + "Options\022\017\n\007extends\030\001 \003(\t\022\031\n\021companion_ex" + "tends\030\002 \003(\t\022\023\n\013annotations\030\003 \003(\t\022\014\n\004type", "\030\004 \001(\t\"o\n\014FieldOptions\022\014\n\004type\030\001 \001(\t\022\022\n\n" + "scala_name\030\002 \001(\t\022\027\n\017collection_type\030\003 \001(" + "\t\022\020\n\010key_type\030\004 \001(\t\022\022\n\nvalue_type\030\005 \001(\t\"" + "G\n\013EnumOptions\022\017\n\007extends\030\001 \003(\t\022\031\n\021compa" + "nion_extends\030\002 \003(\t\022\014\n\004type\030\003 \001(\t\"#\n\020Enum" + "ValueOptions\022\017\n\007extends\030\001 \003(\t:G\n\007options" + "\022\034.google.protobuf.FileOptions\030\374\007 \001(\0132\027." + "scalapb.ScalaPbOptions:J\n\007message\022\037.goog" + "le.protobuf.MessageOptions\030\374\007 \001(\0132\027.scal" + "apb.MessageOptions:D\n\005field\022\035.google.pro", "tobuf.FieldOptions\030\374\007 \001(\0132\025.scalapb.Fiel" + "dOptions:I\n\014enum_options\022\034.google.protob" + "uf.EnumOptions\030\374\007 \001(\0132\024.scalapb.EnumOpti" + "ons:Q\n\nenum_value\022!.google.protobuf.Enum" + "ValueOptions\030\374\007 \001(\0132\031.scalapb.EnumValueO" + "ptionsB\030\n\026com.trueaccord.scalapb" }; 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; return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.DescriptorProtos.getDescriptor(), }, assigner); internal_static_scalapb_ScalaPbOptions_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_scalapb_ScalaPbOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalapb_ScalaPbOptions_descriptor, new java.lang.String[] { "PackageName", "FlatPackage", "Import", "Preamble", "SingleFile", "NoPrimitiveWrappers", "PrimitiveWrappers", "CollectionType", "TestOnlyNoJavaConversions", }); internal_static_scalapb_MessageOptions_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_scalapb_MessageOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalapb_MessageOptions_descriptor, new java.lang.String[] { "Extends", "CompanionExtends", "Annotations", "Type", }); internal_static_scalapb_FieldOptions_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_scalapb_FieldOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalapb_FieldOptions_descriptor, new java.lang.String[] { "Type", "ScalaName", "CollectionType", "KeyType", "ValueType", }); internal_static_scalapb_EnumOptions_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_scalapb_EnumOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalapb_EnumOptions_descriptor, new java.lang.String[] { "Extends", "CompanionExtends", "Type", }); internal_static_scalapb_EnumValueOptions_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_scalapb_EnumValueOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalapb_EnumValueOptions_descriptor, new java.lang.String[] { "Extends", }); options.internalInit(descriptor.getExtensions().get(0)); message.internalInit(descriptor.getExtensions().get(1)); field.internalInit(descriptor.getExtensions().get(2)); enumOptions.internalInit(descriptor.getExtensions().get(3)); enumValue.internalInit(descriptor.getExtensions().get(4)); com.google.protobuf.DescriptorProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy