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

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

// 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);
  }

  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(); /** *
     * When this option is enabled, 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.
     * 
* * optional bool primitive_wrappers = 6; */ boolean hasPrimitiveWrappers(); /** *
     * When this option is enabled, 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.
     * 
* * optional bool primitive_wrappers = 6; */ boolean getPrimitiveWrappers(); } /** * Protobuf type {@code scalapb.ScalaPbOptions} */ public static final class ScalaPbOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:scalapb.ScalaPbOptions) ScalaPbOptionsOrBuilder { // 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; primitiveWrappers_ = 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_ |= 0x00000008; primitiveWrappers_ = 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 PRIMITIVE_WRAPPERS_FIELD_NUMBER = 6; private boolean primitiveWrappers_; /** *
     * When this option is enabled, 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.
     * 
* * optional bool primitive_wrappers = 6; */ public boolean hasPrimitiveWrappers() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
     * When this option is enabled, 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.
     * 
* * optional bool primitive_wrappers = 6; */ public boolean getPrimitiveWrappers() { return primitiveWrappers_; } 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_ & 0x00000008) == 0x00000008)) { output.writeBool(6, primitiveWrappers_); } 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_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, primitiveWrappers_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @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 && (hasPrimitiveWrappers() == other.hasPrimitiveWrappers()); if (hasPrimitiveWrappers()) { result = result && (getPrimitiveWrappers() == other.getPrimitiveWrappers()); } 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) + getDescriptorForType().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 (hasPrimitiveWrappers()) { hash = (37 * hash) + PRIMITIVE_WRAPPERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPrimitiveWrappers()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } 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); primitiveWrappers_ = false; bitField0_ = (bitField0_ & ~0x00000020); 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.primitiveWrappers_ = primitiveWrappers_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, 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, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, 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.hasPrimitiveWrappers()) { setPrimitiveWrappers(other.getPrimitiveWrappers()); } 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 primitiveWrappers_ ; /** *
       * When this option is enabled, 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.
       * 
* * optional bool primitive_wrappers = 6; */ public boolean hasPrimitiveWrappers() { return ((bitField0_ & 0x00000020) == 0x00000020); } /** *
       * When this option is enabled, 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.
       * 
* * optional bool primitive_wrappers = 6; */ public boolean getPrimitiveWrappers() { return primitiveWrappers_; } /** *
       * When this option is enabled, 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.
       * 
* * optional bool primitive_wrappers = 6; */ public Builder setPrimitiveWrappers(boolean value) { bitField0_ |= 0x00000020; primitiveWrappers_ = value; onChanged(); return this; } /** *
       * When this option is enabled, 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.
       * 
* * optional bool primitive_wrappers = 6; */ public Builder clearPrimitiveWrappers() { bitField0_ = (bitField0_ & ~0x00000020); primitiveWrappers_ = 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); } /** * Protobuf type {@code scalapb.MessageOptions} */ public static final class MessageOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:scalapb.MessageOptions) MessageOptionsOrBuilder { // 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; } @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; } } } } 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_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); } 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); } 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)); } 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(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @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 && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } 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); 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_; 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_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, 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, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, 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(); } 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; } 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(); } /** * Protobuf type {@code scalapb.FieldOptions} */ public static final class FieldOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:scalapb.FieldOptions) FieldOptionsOrBuilder { // Use FieldOptions.newBuilder() to construct. private FieldOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldOptions() { type_ = ""; } @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; } } } } 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; } } 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_); } 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @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 && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().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.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); 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_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, 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, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, 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(); } 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; } 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 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; /** *
   * File-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()); 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; 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\"\217\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\032\n\022primitive_wr" + "appers\030\006 \001(\010\"<\n\016MessageOptions\022\017\n\007extend" + "s\030\001 \003(\t\022\031\n\021companion_extends\030\002 \003(\t\"\034\n\014Fi" + "eldOptions\022\014\n\004type\030\001 \001(\t:G\n\007options\022\034.go" + "ogle.protobuf.FileOptions\030\374\007 \001(\0132\027.scala" + "pb.ScalaPbOptions:J\n\007message\022\037.google.pr", "otobuf.MessageOptions\030\374\007 \001(\0132\027.scalapb.M" + "essageOptions:D\n\005field\022\035.google.protobuf" + ".FieldOptions\030\374\007 \001(\0132\025.scalapb.FieldOpti" + "onsB\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", "PrimitiveWrappers", }); 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", }); 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", }); options.internalInit(descriptor.getExtensions().get(0)); message.internalInit(descriptor.getExtensions().get(1)); field.internalInit(descriptor.getExtensions().get(2)); com.google.protobuf.DescriptorProtos.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy