scalapb.options.Scalapb Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: scalapb/scalapb.proto
package scalapb.options;
public final class Scalapb {
private Scalapb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
registry.add(scalapb.options.Scalapb.options);
registry.add(scalapb.options.Scalapb.message);
registry.add(scalapb.options.Scalapb.field);
registry.add(scalapb.options.Scalapb.enumOptions);
registry.add(scalapb.options.Scalapb.enumValue);
registry.add(scalapb.options.Scalapb.oneof);
}
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();
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9;
*/
boolean hasPreserveUnknownFields();
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9;
*/
boolean getPreserveUnknownFields();
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
boolean hasObjectName();
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
java.lang.String getObjectName();
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
com.google.protobuf.ByteString
getObjectNameBytes();
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
*/
boolean hasScope();
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
*/
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope getScope();
/**
*
* If true, lenses will not be generated.
*
*
* optional bool lenses = 12 [default = true];
*/
boolean hasLenses();
/**
*
* If true, lenses will not be generated.
*
*
* optional bool lenses = 12 [default = true];
*/
boolean getLenses();
/**
*
* If true, then source-code info information will be included in the
* generated code - normally the source code info is cleared out to reduce
* code size. The source code info is useful for extracting source code
* location from the descriptors as well as comments.
*
*
* optional bool retain_source_code_info = 13;
*/
boolean hasRetainSourceCodeInfo();
/**
*
* If true, then source-code info information will be included in the
* generated code - normally the source code info is cleared out to reduce
* code size. The source code info is useful for extracting source code
* location from the descriptors as well as comments.
*
*
* optional bool retain_source_code_info = 13;
*/
boolean getRetainSourceCodeInfo();
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
boolean hasMapType();
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
java.lang.String getMapType();
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
com.google.protobuf.ByteString
getMapTypeBytes();
/**
*
* 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_ = "";
import_ = com.google.protobuf.LazyStringArrayList.EMPTY;
preamble_ = com.google.protobuf.LazyStringArrayList.EMPTY;
collectionType_ = "";
objectName_ = "";
scope_ = 0;
lenses_ = true;
mapType_ = "";
}
@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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
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) != 0)) {
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) != 0)) {
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 72: {
bitField0_ |= 0x00000040;
preserveUnknownFields_ = input.readBool();
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
objectName_ = bs;
break;
}
case 88: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope value = scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(11, rawValue);
} else {
bitField0_ |= 0x00000100;
scope_ = rawValue;
}
break;
}
case 96: {
bitField0_ |= 0x00000200;
lenses_ = input.readBool();
break;
}
case 104: {
bitField0_ |= 0x00000400;
retainSourceCodeInfo_ = input.readBool();
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
mapType_ = bs;
break;
}
case 800008: {
bitField0_ |= 0x00001000;
testOnlyNoJavaConversions_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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) != 0)) {
import_ = import_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
preamble_ = preamble_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.class, scalapb.options.Scalapb.ScalaPbOptions.Builder.class);
}
/**
*
* Whether to apply the options only to this file, or for the entire package (and its subpackages)
*
*
* Protobuf enum {@code scalapb.ScalaPbOptions.OptionsScope}
*/
public enum OptionsScope
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Apply the options for this file only (default)
*
*
* FILE = 0;
*/
FILE(0),
/**
*
* Apply the options for the entire package and its subpackages.
*
*
* PACKAGE = 1;
*/
PACKAGE(1),
;
/**
*
* Apply the options for this file only (default)
*
*
* FILE = 0;
*/
public static final int FILE_VALUE = 0;
/**
*
* Apply the options for the entire package and its subpackages.
*
*
* PACKAGE = 1;
*/
public static final int PACKAGE_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OptionsScope valueOf(int value) {
return forNumber(value);
}
public static OptionsScope forNumber(int value) {
switch (value) {
case 0: return FILE;
case 1: return PACKAGE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
OptionsScope> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public OptionsScope findValueByNumber(int number) {
return OptionsScope.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return scalapb.options.Scalapb.ScalaPbOptions.getDescriptor().getEnumTypes().get(0);
}
private static final OptionsScope[] VALUES = values();
public static OptionsScope valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private OptionsScope(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:scalapb.ScalaPbOptions.OptionsScope)
}
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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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 PRESERVE_UNKNOWN_FIELDS_FIELD_NUMBER = 9;
private boolean preserveUnknownFields_;
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9;
*/
public boolean hasPreserveUnknownFields() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9;
*/
public boolean getPreserveUnknownFields() {
return preserveUnknownFields_;
}
public static final int OBJECT_NAME_FIELD_NUMBER = 10;
private volatile java.lang.Object objectName_;
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public boolean hasObjectName() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public java.lang.String getObjectName() {
java.lang.Object ref = objectName_;
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()) {
objectName_ = s;
}
return s;
}
}
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public com.google.protobuf.ByteString
getObjectNameBytes() {
java.lang.Object ref = objectName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
objectName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCOPE_FIELD_NUMBER = 11;
private int scope_;
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
*/
public scalapb.options.Scalapb.ScalaPbOptions.OptionsScope getScope() {
@SuppressWarnings("deprecation")
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope result = scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.valueOf(scope_);
return result == null ? scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.FILE : result;
}
public static final int LENSES_FIELD_NUMBER = 12;
private boolean lenses_;
/**
*
* If true, lenses will not be generated.
*
*
* optional bool lenses = 12 [default = true];
*/
public boolean hasLenses() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* If true, lenses will not be generated.
*
*
* optional bool lenses = 12 [default = true];
*/
public boolean getLenses() {
return lenses_;
}
public static final int RETAIN_SOURCE_CODE_INFO_FIELD_NUMBER = 13;
private boolean retainSourceCodeInfo_;
/**
*
* If true, then source-code info information will be included in the
* generated code - normally the source code info is cleared out to reduce
* code size. The source code info is useful for extracting source code
* location from the descriptors as well as comments.
*
*
* optional bool retain_source_code_info = 13;
*/
public boolean hasRetainSourceCodeInfo() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* If true, then source-code info information will be included in the
* generated code - normally the source code info is cleared out to reduce
* code size. The source code info is useful for extracting source code
* location from the descriptors as well as comments.
*
*
* optional bool retain_source_code_info = 13;
*/
public boolean getRetainSourceCodeInfo() {
return retainSourceCodeInfo_;
}
public static final int MAP_TYPE_FIELD_NUMBER = 14;
private volatile java.lang.Object mapType_;
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public boolean hasMapType() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public java.lang.String getMapType() {
java.lang.Object ref = mapType_;
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()) {
mapType_ = s;
}
return s;
}
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public com.google.protobuf.ByteString
getMapTypeBytes() {
java.lang.Object ref = mapType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mapType_ = 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_ & 0x00001000) != 0);
}
/**
*
* 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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, packageName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
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) != 0)) {
output.writeBool(5, singleFile_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(6, primitiveWrappers_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(7, noPrimitiveWrappers_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, collectionType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(9, preserveUnknownFields_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, objectName_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeEnum(11, scope_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(12, lenses_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeBool(13, retainSourceCodeInfo_);
}
if (((bitField0_ & 0x00000800) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, mapType_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeBool(100001, testOnlyNoJavaConversions_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, packageName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
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) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, singleFile_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, primitiveWrappers_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, noPrimitiveWrappers_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, collectionType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, preserveUnknownFields_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, objectName_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, scope_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, lenses_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, retainSourceCodeInfo_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, mapType_);
}
if (((bitField0_ & 0x00001000) != 0)) {
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 scalapb.options.Scalapb.ScalaPbOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.ScalaPbOptions other = (scalapb.options.Scalapb.ScalaPbOptions) obj;
if (hasPackageName() != other.hasPackageName()) return false;
if (hasPackageName()) {
if (!getPackageName()
.equals(other.getPackageName())) return false;
}
if (hasFlatPackage() != other.hasFlatPackage()) return false;
if (hasFlatPackage()) {
if (getFlatPackage()
!= other.getFlatPackage()) return false;
}
if (!getImportList()
.equals(other.getImportList())) return false;
if (!getPreambleList()
.equals(other.getPreambleList())) return false;
if (hasSingleFile() != other.hasSingleFile()) return false;
if (hasSingleFile()) {
if (getSingleFile()
!= other.getSingleFile()) return false;
}
if (hasNoPrimitiveWrappers() != other.hasNoPrimitiveWrappers()) return false;
if (hasNoPrimitiveWrappers()) {
if (getNoPrimitiveWrappers()
!= other.getNoPrimitiveWrappers()) return false;
}
if (hasPrimitiveWrappers() != other.hasPrimitiveWrappers()) return false;
if (hasPrimitiveWrappers()) {
if (getPrimitiveWrappers()
!= other.getPrimitiveWrappers()) return false;
}
if (hasCollectionType() != other.hasCollectionType()) return false;
if (hasCollectionType()) {
if (!getCollectionType()
.equals(other.getCollectionType())) return false;
}
if (hasPreserveUnknownFields() != other.hasPreserveUnknownFields()) return false;
if (hasPreserveUnknownFields()) {
if (getPreserveUnknownFields()
!= other.getPreserveUnknownFields()) return false;
}
if (hasObjectName() != other.hasObjectName()) return false;
if (hasObjectName()) {
if (!getObjectName()
.equals(other.getObjectName())) return false;
}
if (hasScope() != other.hasScope()) return false;
if (hasScope()) {
if (scope_ != other.scope_) return false;
}
if (hasLenses() != other.hasLenses()) return false;
if (hasLenses()) {
if (getLenses()
!= other.getLenses()) return false;
}
if (hasRetainSourceCodeInfo() != other.hasRetainSourceCodeInfo()) return false;
if (hasRetainSourceCodeInfo()) {
if (getRetainSourceCodeInfo()
!= other.getRetainSourceCodeInfo()) return false;
}
if (hasMapType() != other.hasMapType()) return false;
if (hasMapType()) {
if (!getMapType()
.equals(other.getMapType())) return false;
}
if (hasTestOnlyNoJavaConversions() != other.hasTestOnlyNoJavaConversions()) return false;
if (hasTestOnlyNoJavaConversions()) {
if (getTestOnlyNoJavaConversions()
!= other.getTestOnlyNoJavaConversions()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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 (hasPreserveUnknownFields()) {
hash = (37 * hash) + PRESERVE_UNKNOWN_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPreserveUnknownFields());
}
if (hasObjectName()) {
hash = (37 * hash) + OBJECT_NAME_FIELD_NUMBER;
hash = (53 * hash) + getObjectName().hashCode();
}
if (hasScope()) {
hash = (37 * hash) + SCOPE_FIELD_NUMBER;
hash = (53 * hash) + scope_;
}
if (hasLenses()) {
hash = (37 * hash) + LENSES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLenses());
}
if (hasRetainSourceCodeInfo()) {
hash = (37 * hash) + RETAIN_SOURCE_CODE_INFO_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRetainSourceCodeInfo());
}
if (hasMapType()) {
hash = (37 * hash) + MAP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getMapType().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 scalapb.options.Scalapb.ScalaPbOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.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 scalapb.options.Scalapb.ScalaPbOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.ScalaPbOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.ScalaPbOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(scalapb.options.Scalapb.ScalaPbOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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)
scalapb.options.Scalapb.ScalaPbOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.class, scalapb.options.Scalapb.ScalaPbOptions.Builder.class);
}
// Construct using scalapb.options.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) {
}
}
@java.lang.Override
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);
preserveUnknownFields_ = false;
bitField0_ = (bitField0_ & ~0x00000100);
objectName_ = "";
bitField0_ = (bitField0_ & ~0x00000200);
scope_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
lenses_ = true;
bitField0_ = (bitField0_ & ~0x00000800);
retainSourceCodeInfo_ = false;
bitField0_ = (bitField0_ & ~0x00001000);
mapType_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
testOnlyNoJavaConversions_ = false;
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.ScalaPbOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions build() {
scalapb.options.Scalapb.ScalaPbOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions buildPartial() {
scalapb.options.Scalapb.ScalaPbOptions result = new scalapb.options.Scalapb.ScalaPbOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.packageName_ = packageName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.flatPackage_ = flatPackage_;
to_bitField0_ |= 0x00000002;
}
if (((bitField0_ & 0x00000004) != 0)) {
import_ = import_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.import_ = import_;
if (((bitField0_ & 0x00000008) != 0)) {
preamble_ = preamble_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.preamble_ = preamble_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.singleFile_ = singleFile_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.noPrimitiveWrappers_ = noPrimitiveWrappers_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.primitiveWrappers_ = primitiveWrappers_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.collectionType_ = collectionType_;
if (((from_bitField0_ & 0x00000100) != 0)) {
result.preserveUnknownFields_ = preserveUnknownFields_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.objectName_ = objectName_;
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.scope_ = scope_;
if (((from_bitField0_ & 0x00000800) != 0)) {
to_bitField0_ |= 0x00000200;
}
result.lenses_ = lenses_;
if (((from_bitField0_ & 0x00001000) != 0)) {
result.retainSourceCodeInfo_ = retainSourceCodeInfo_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
to_bitField0_ |= 0x00000800;
}
result.mapType_ = mapType_;
if (((from_bitField0_ & 0x00004000) != 0)) {
result.testOnlyNoJavaConversions_ = testOnlyNoJavaConversions_;
to_bitField0_ |= 0x00001000;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.ScalaPbOptions) {
return mergeFrom((scalapb.options.Scalapb.ScalaPbOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.ScalaPbOptions other) {
if (other == scalapb.options.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.hasPreserveUnknownFields()) {
setPreserveUnknownFields(other.getPreserveUnknownFields());
}
if (other.hasObjectName()) {
bitField0_ |= 0x00000200;
objectName_ = other.objectName_;
onChanged();
}
if (other.hasScope()) {
setScope(other.getScope());
}
if (other.hasLenses()) {
setLenses(other.getLenses());
}
if (other.hasRetainSourceCodeInfo()) {
setRetainSourceCodeInfo(other.getRetainSourceCodeInfo());
}
if (other.hasMapType()) {
bitField0_ |= 0x00002000;
mapType_ = other.mapType_;
onChanged();
}
if (other.hasTestOnlyNoJavaConversions()) {
setTestOnlyNoJavaConversions(other.getTestOnlyNoJavaConversions());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
scalapb.options.Scalapb.ScalaPbOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (scalapb.options.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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0)) {
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) != 0)) {
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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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 preserveUnknownFields_ ;
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9;
*/
public boolean hasPreserveUnknownFields() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9;
*/
public boolean getPreserveUnknownFields() {
return preserveUnknownFields_;
}
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9;
*/
public Builder setPreserveUnknownFields(boolean value) {
bitField0_ |= 0x00000100;
preserveUnknownFields_ = value;
onChanged();
return this;
}
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9;
*/
public Builder clearPreserveUnknownFields() {
bitField0_ = (bitField0_ & ~0x00000100);
preserveUnknownFields_ = false;
onChanged();
return this;
}
private java.lang.Object objectName_ = "";
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public boolean hasObjectName() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public java.lang.String getObjectName() {
java.lang.Object ref = objectName_;
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()) {
objectName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public com.google.protobuf.ByteString
getObjectNameBytes() {
java.lang.Object ref = objectName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
objectName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public Builder setObjectName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
objectName_ = value;
onChanged();
return this;
}
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public Builder clearObjectName() {
bitField0_ = (bitField0_ & ~0x00000200);
objectName_ = getDefaultInstance().getObjectName();
onChanged();
return this;
}
/**
*
* If defined, sets the name of the file-level object that would be generated. This
* object extends `GeneratedFileObject` and contains descriptors, and list of message
* and enum companions.
*
*
* optional string object_name = 10;
*/
public Builder setObjectNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000200;
objectName_ = value;
onChanged();
return this;
}
private int scope_ = 0;
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
*/
public boolean hasScope() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
*/
public scalapb.options.Scalapb.ScalaPbOptions.OptionsScope getScope() {
@SuppressWarnings("deprecation")
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope result = scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.valueOf(scope_);
return result == null ? scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.FILE : result;
}
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
*/
public Builder setScope(scalapb.options.Scalapb.ScalaPbOptions.OptionsScope value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
scope_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
*/
public Builder clearScope() {
bitField0_ = (bitField0_ & ~0x00000400);
scope_ = 0;
onChanged();
return this;
}
private boolean lenses_ = true;
/**
*
* If true, lenses will not be generated.
*
*
* optional bool lenses = 12 [default = true];
*/
public boolean hasLenses() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* If true, lenses will not be generated.
*
*
* optional bool lenses = 12 [default = true];
*/
public boolean getLenses() {
return lenses_;
}
/**
*
* If true, lenses will not be generated.
*
*
* optional bool lenses = 12 [default = true];
*/
public Builder setLenses(boolean value) {
bitField0_ |= 0x00000800;
lenses_ = value;
onChanged();
return this;
}
/**
*
* If true, lenses will not be generated.
*
*
* optional bool lenses = 12 [default = true];
*/
public Builder clearLenses() {
bitField0_ = (bitField0_ & ~0x00000800);
lenses_ = true;
onChanged();
return this;
}
private boolean retainSourceCodeInfo_ ;
/**
*
* If true, then source-code info information will be included in the
* generated code - normally the source code info is cleared out to reduce
* code size. The source code info is useful for extracting source code
* location from the descriptors as well as comments.
*
*
* optional bool retain_source_code_info = 13;
*/
public boolean hasRetainSourceCodeInfo() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* If true, then source-code info information will be included in the
* generated code - normally the source code info is cleared out to reduce
* code size. The source code info is useful for extracting source code
* location from the descriptors as well as comments.
*
*
* optional bool retain_source_code_info = 13;
*/
public boolean getRetainSourceCodeInfo() {
return retainSourceCodeInfo_;
}
/**
*
* If true, then source-code info information will be included in the
* generated code - normally the source code info is cleared out to reduce
* code size. The source code info is useful for extracting source code
* location from the descriptors as well as comments.
*
*
* optional bool retain_source_code_info = 13;
*/
public Builder setRetainSourceCodeInfo(boolean value) {
bitField0_ |= 0x00001000;
retainSourceCodeInfo_ = value;
onChanged();
return this;
}
/**
*
* If true, then source-code info information will be included in the
* generated code - normally the source code info is cleared out to reduce
* code size. The source code info is useful for extracting source code
* location from the descriptors as well as comments.
*
*
* optional bool retain_source_code_info = 13;
*/
public Builder clearRetainSourceCodeInfo() {
bitField0_ = (bitField0_ & ~0x00001000);
retainSourceCodeInfo_ = false;
onChanged();
return this;
}
private java.lang.Object mapType_ = "";
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public boolean hasMapType() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public java.lang.String getMapType() {
java.lang.Object ref = mapType_;
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()) {
mapType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public com.google.protobuf.ByteString
getMapTypeBytes() {
java.lang.Object ref = mapType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mapType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public Builder setMapType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
mapType_ = value;
onChanged();
return this;
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public Builder clearMapType() {
bitField0_ = (bitField0_ & ~0x00002000);
mapType_ = getDefaultInstance().getMapType();
onChanged();
return this;
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
*/
public Builder setMapTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
mapType_ = 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_ & 0x00004000) != 0);
}
/**
*
* 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_ |= 0x00004000;
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_ & ~0x00004000);
testOnlyNoJavaConversions_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
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 scalapb.options.Scalapb.ScalaPbOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.ScalaPbOptions();
}
public static scalapb.options.Scalapb.ScalaPbOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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;
}
@java.lang.Override
public scalapb.options.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();
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
java.util.List
getCompanionAnnotationsList();
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
int getCompanionAnnotationsCount();
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
java.lang.String getCompanionAnnotations(int index);
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
com.google.protobuf.ByteString
getCompanionAnnotationsBytes(int index);
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
java.util.List
getSealedOneofExtendsList();
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
int getSealedOneofExtendsCount();
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
java.lang.String getSealedOneofExtends(int index);
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
com.google.protobuf.ByteString
getSealedOneofExtendsBytes(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 {
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_ = "";
companionAnnotations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
sealedOneofExtends_ = 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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
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) != 0)) {
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) != 0)) {
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;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
companionAnnotations_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
companionAnnotations_.add(bs);
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
sealedOneofExtends_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
sealedOneofExtends_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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) != 0)) {
extends_ = extends_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
companionExtends_ = companionExtends_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
annotations_ = annotations_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
companionAnnotations_ = companionAnnotations_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
sealedOneofExtends_ = sealedOneofExtends_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_MessageOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_MessageOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.MessageOptions.class, scalapb.options.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) != 0);
}
/**
*
* 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;
}
}
public static final int COMPANION_ANNOTATIONS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList companionAnnotations_;
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public com.google.protobuf.ProtocolStringList
getCompanionAnnotationsList() {
return companionAnnotations_;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public int getCompanionAnnotationsCount() {
return companionAnnotations_.size();
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public java.lang.String getCompanionAnnotations(int index) {
return companionAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public com.google.protobuf.ByteString
getCompanionAnnotationsBytes(int index) {
return companionAnnotations_.getByteString(index);
}
public static final int SEALED_ONEOF_EXTENDS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList sealedOneofExtends_;
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofExtendsList() {
return sealedOneofExtends_;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public int getSealedOneofExtendsCount() {
return sealedOneofExtends_.size();
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public java.lang.String getSealedOneofExtends(int index) {
return sealedOneofExtends_.get(index);
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public com.google.protobuf.ByteString
getSealedOneofExtendsBytes(int index) {
return sealedOneofExtends_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, type_);
}
for (int i = 0; i < companionAnnotations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, companionAnnotations_.getRaw(i));
}
for (int i = 0; i < sealedOneofExtends_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sealedOneofExtends_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
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) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, type_);
}
{
int dataSize = 0;
for (int i = 0; i < companionAnnotations_.size(); i++) {
dataSize += computeStringSizeNoTag(companionAnnotations_.getRaw(i));
}
size += dataSize;
size += 1 * getCompanionAnnotationsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < sealedOneofExtends_.size(); i++) {
dataSize += computeStringSizeNoTag(sealedOneofExtends_.getRaw(i));
}
size += dataSize;
size += 1 * getSealedOneofExtendsList().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 scalapb.options.Scalapb.MessageOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.MessageOptions other = (scalapb.options.Scalapb.MessageOptions) obj;
if (!getExtendsList()
.equals(other.getExtendsList())) return false;
if (!getCompanionExtendsList()
.equals(other.getCompanionExtendsList())) return false;
if (!getAnnotationsList()
.equals(other.getAnnotationsList())) return false;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!getCompanionAnnotationsList()
.equals(other.getCompanionAnnotationsList())) return false;
if (!getSealedOneofExtendsList()
.equals(other.getSealedOneofExtendsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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();
}
if (getCompanionAnnotationsCount() > 0) {
hash = (37 * hash) + COMPANION_ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getCompanionAnnotationsList().hashCode();
}
if (getSealedOneofExtendsCount() > 0) {
hash = (37 * hash) + SEALED_ONEOF_EXTENDS_FIELD_NUMBER;
hash = (53 * hash) + getSealedOneofExtendsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.MessageOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.MessageOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.MessageOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.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 scalapb.options.Scalapb.MessageOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.MessageOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.MessageOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.MessageOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.MessageOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(scalapb.options.Scalapb.MessageOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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)
scalapb.options.Scalapb.MessageOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_MessageOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_MessageOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.MessageOptions.class, scalapb.options.Scalapb.MessageOptions.Builder.class);
}
// Construct using scalapb.options.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) {
}
}
@java.lang.Override
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);
companionAnnotations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
sealedOneofExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_MessageOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.MessageOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.MessageOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.MessageOptions build() {
scalapb.options.Scalapb.MessageOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.MessageOptions buildPartial() {
scalapb.options.Scalapb.MessageOptions result = new scalapb.options.Scalapb.MessageOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) != 0)) {
extends_ = extends_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.extends_ = extends_;
if (((bitField0_ & 0x00000002) != 0)) {
companionExtends_ = companionExtends_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.companionExtends_ = companionExtends_;
if (((bitField0_ & 0x00000004) != 0)) {
annotations_ = annotations_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.annotations_ = annotations_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((bitField0_ & 0x00000010) != 0)) {
companionAnnotations_ = companionAnnotations_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.companionAnnotations_ = companionAnnotations_;
if (((bitField0_ & 0x00000020) != 0)) {
sealedOneofExtends_ = sealedOneofExtends_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.sealedOneofExtends_ = sealedOneofExtends_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.MessageOptions) {
return mergeFrom((scalapb.options.Scalapb.MessageOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.MessageOptions other) {
if (other == scalapb.options.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();
}
if (!other.companionAnnotations_.isEmpty()) {
if (companionAnnotations_.isEmpty()) {
companionAnnotations_ = other.companionAnnotations_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.addAll(other.companionAnnotations_);
}
onChanged();
}
if (!other.sealedOneofExtends_.isEmpty()) {
if (sealedOneofExtends_.isEmpty()) {
sealedOneofExtends_ = other.sealedOneofExtends_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.addAll(other.sealedOneofExtends_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
scalapb.options.Scalapb.MessageOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (scalapb.options.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) != 0)) {
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) != 0)) {
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) != 0)) {
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) != 0);
}
/**
*
* 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;
}
private com.google.protobuf.LazyStringList companionAnnotations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureCompanionAnnotationsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
companionAnnotations_ = new com.google.protobuf.LazyStringArrayList(companionAnnotations_);
bitField0_ |= 0x00000010;
}
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public com.google.protobuf.ProtocolStringList
getCompanionAnnotationsList() {
return companionAnnotations_.getUnmodifiableView();
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public int getCompanionAnnotationsCount() {
return companionAnnotations_.size();
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public java.lang.String getCompanionAnnotations(int index) {
return companionAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public com.google.protobuf.ByteString
getCompanionAnnotationsBytes(int index) {
return companionAnnotations_.getByteString(index);
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public Builder setCompanionAnnotations(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.set(index, value);
onChanged();
return this;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public Builder addCompanionAnnotations(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.add(value);
onChanged();
return this;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public Builder addAllCompanionAnnotations(
java.lang.Iterable values) {
ensureCompanionAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, companionAnnotations_);
onChanged();
return this;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public Builder clearCompanionAnnotations() {
companionAnnotations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
*/
public Builder addCompanionAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList sealedOneofExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureSealedOneofExtendsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
sealedOneofExtends_ = new com.google.protobuf.LazyStringArrayList(sealedOneofExtends_);
bitField0_ |= 0x00000020;
}
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofExtendsList() {
return sealedOneofExtends_.getUnmodifiableView();
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public int getSealedOneofExtendsCount() {
return sealedOneofExtends_.size();
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public java.lang.String getSealedOneofExtends(int index) {
return sealedOneofExtends_.get(index);
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public com.google.protobuf.ByteString
getSealedOneofExtendsBytes(int index) {
return sealedOneofExtends_.getByteString(index);
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public Builder setSealedOneofExtends(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.set(index, value);
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public Builder addSealedOneofExtends(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.add(value);
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public Builder addAllSealedOneofExtends(
java.lang.Iterable values) {
ensureSealedOneofExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sealedOneofExtends_);
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public Builder clearSealedOneofExtends() {
sealedOneofExtends_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
*/
public Builder addSealedOneofExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
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 scalapb.options.Scalapb.MessageOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.MessageOptions();
}
public static scalapb.options.Scalapb.MessageOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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;
}
@java.lang.Override
public scalapb.options.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();
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
java.util.List
getAnnotationsList();
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
int getAnnotationsCount();
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
java.lang.String getAnnotations(int index);
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
com.google.protobuf.ByteString
getAnnotationsBytes(int index);
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
boolean hasMapType();
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
java.lang.String getMapType();
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
com.google.protobuf.ByteString
getMapTypeBytes();
/**
*
* Do not box this value in Option[T]
*
*
* optional bool no_box = 30;
*/
boolean hasNoBox();
/**
*
* Do not box this value in Option[T]
*
*
* optional bool no_box = 30;
*/
boolean getNoBox();
}
/**
* 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_ = "";
annotations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
mapType_ = "";
}
@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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
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;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
annotations_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
annotations_.add(bs);
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
mapType_ = bs;
break;
}
case 240: {
bitField0_ |= 0x00000040;
noBox_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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_ & 0x00000020) != 0)) {
annotations_ = annotations_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.FieldOptions.class, scalapb.options.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) != 0);
}
/**
* 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) != 0);
}
/**
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
* 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;
}
}
public static final int ANNOTATIONS_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList annotations_;
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
public com.google.protobuf.ProtocolStringList
getAnnotationsList() {
return annotations_;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
public int getAnnotationsCount() {
return annotations_.size();
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
public java.lang.String getAnnotations(int index) {
return annotations_.get(index);
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
public com.google.protobuf.ByteString
getAnnotationsBytes(int index) {
return annotations_.getByteString(index);
}
public static final int MAP_TYPE_FIELD_NUMBER = 7;
private volatile java.lang.Object mapType_;
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public boolean hasMapType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public java.lang.String getMapType() {
java.lang.Object ref = mapType_;
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()) {
mapType_ = s;
}
return s;
}
}
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public com.google.protobuf.ByteString
getMapTypeBytes() {
java.lang.Object ref = mapType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mapType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NO_BOX_FIELD_NUMBER = 30;
private boolean noBox_;
/**
*
* Do not box this value in Option[T]
*
*
* optional bool no_box = 30;
*/
public boolean hasNoBox() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Do not box this value in Option[T]
*
*
* optional bool no_box = 30;
*/
public boolean getNoBox() {
return noBox_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scalaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, collectionType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, keyType_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, valueType_);
}
for (int i = 0; i < annotations_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, annotations_.getRaw(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, mapType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(30, noBox_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scalaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, collectionType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, keyType_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, valueType_);
}
{
int dataSize = 0;
for (int i = 0; i < annotations_.size(); i++) {
dataSize += computeStringSizeNoTag(annotations_.getRaw(i));
}
size += dataSize;
size += 1 * getAnnotationsList().size();
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, mapType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(30, noBox_);
}
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 scalapb.options.Scalapb.FieldOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.FieldOptions other = (scalapb.options.Scalapb.FieldOptions) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasScalaName() != other.hasScalaName()) return false;
if (hasScalaName()) {
if (!getScalaName()
.equals(other.getScalaName())) return false;
}
if (hasCollectionType() != other.hasCollectionType()) return false;
if (hasCollectionType()) {
if (!getCollectionType()
.equals(other.getCollectionType())) return false;
}
if (hasKeyType() != other.hasKeyType()) return false;
if (hasKeyType()) {
if (!getKeyType()
.equals(other.getKeyType())) return false;
}
if (hasValueType() != other.hasValueType()) return false;
if (hasValueType()) {
if (!getValueType()
.equals(other.getValueType())) return false;
}
if (!getAnnotationsList()
.equals(other.getAnnotationsList())) return false;
if (hasMapType() != other.hasMapType()) return false;
if (hasMapType()) {
if (!getMapType()
.equals(other.getMapType())) return false;
}
if (hasNoBox() != other.hasNoBox()) return false;
if (hasNoBox()) {
if (getNoBox()
!= other.getNoBox()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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();
}
if (getAnnotationsCount() > 0) {
hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getAnnotationsList().hashCode();
}
if (hasMapType()) {
hash = (37 * hash) + MAP_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getMapType().hashCode();
}
if (hasNoBox()) {
hash = (37 * hash) + NO_BOX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoBox());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.FieldOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.FieldOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.FieldOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.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 scalapb.options.Scalapb.FieldOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.FieldOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.FieldOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.FieldOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.FieldOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(scalapb.options.Scalapb.FieldOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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)
scalapb.options.Scalapb.FieldOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.FieldOptions.class, scalapb.options.Scalapb.FieldOptions.Builder.class);
}
// Construct using scalapb.options.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) {
}
}
@java.lang.Override
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);
annotations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
mapType_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
noBox_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.FieldOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.FieldOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.FieldOptions build() {
scalapb.options.Scalapb.FieldOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.FieldOptions buildPartial() {
scalapb.options.Scalapb.FieldOptions result = new scalapb.options.Scalapb.FieldOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.scalaName_ = scalaName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.collectionType_ = collectionType_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.keyType_ = keyType_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.valueType_ = valueType_;
if (((bitField0_ & 0x00000020) != 0)) {
annotations_ = annotations_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.annotations_ = annotations_;
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.mapType_ = mapType_;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.noBox_ = noBox_;
to_bitField0_ |= 0x00000040;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.FieldOptions) {
return mergeFrom((scalapb.options.Scalapb.FieldOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.FieldOptions other) {
if (other == scalapb.options.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();
}
if (!other.annotations_.isEmpty()) {
if (annotations_.isEmpty()) {
annotations_ = other.annotations_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureAnnotationsIsMutable();
annotations_.addAll(other.annotations_);
}
onChanged();
}
if (other.hasMapType()) {
bitField0_ |= 0x00000040;
mapType_ = other.mapType_;
onChanged();
}
if (other.hasNoBox()) {
setNoBox(other.getNoBox());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
scalapb.options.Scalapb.FieldOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (scalapb.options.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) != 0);
}
/**
* 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) != 0);
}
/**
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
*
* 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) != 0);
}
/**
* 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;
}
private com.google.protobuf.LazyStringList annotations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureAnnotationsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
annotations_ = new com.google.protobuf.LazyStringArrayList(annotations_);
bitField0_ |= 0x00000020;
}
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
public com.google.protobuf.ProtocolStringList
getAnnotationsList() {
return annotations_.getUnmodifiableView();
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
public int getAnnotationsCount() {
return annotations_.size();
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
public java.lang.String getAnnotations(int index) {
return annotations_.get(index);
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
public com.google.protobuf.ByteString
getAnnotationsBytes(int index) {
return annotations_.getByteString(index);
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
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 field.
*
*
* repeated string annotations = 6;
*/
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 field.
*
*
* repeated string annotations = 6;
*/
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 field.
*
*
* repeated string annotations = 6;
*/
public Builder clearAnnotations() {
annotations_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
*/
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 mapType_ = "";
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public boolean hasMapType() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public java.lang.String getMapType() {
java.lang.Object ref = mapType_;
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()) {
mapType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public com.google.protobuf.ByteString
getMapTypeBytes() {
java.lang.Object ref = mapType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
mapType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public Builder setMapType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
mapType_ = value;
onChanged();
return this;
}
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public Builder clearMapType() {
bitField0_ = (bitField0_ & ~0x00000040);
mapType_ = getDefaultInstance().getMapType();
onChanged();
return this;
}
/**
*
* Can be specified only if this field is a map. If unspecified,
* it falls back to the file option named `map_type` which defaults to
* `scala.collection.immutable.Map`
*
*
* optional string map_type = 7;
*/
public Builder setMapTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
mapType_ = value;
onChanged();
return this;
}
private boolean noBox_ ;
/**
*
* Do not box this value in Option[T]
*
*
* optional bool no_box = 30;
*/
public boolean hasNoBox() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Do not box this value in Option[T]
*
*
* optional bool no_box = 30;
*/
public boolean getNoBox() {
return noBox_;
}
/**
*
* Do not box this value in Option[T]
*
*
* optional bool no_box = 30;
*/
public Builder setNoBox(boolean value) {
bitField0_ |= 0x00000080;
noBox_ = value;
onChanged();
return this;
}
/**
*
* Do not box this value in Option[T]
*
*
* optional bool no_box = 30;
*/
public Builder clearNoBox() {
bitField0_ = (bitField0_ & ~0x00000080);
noBox_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
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 scalapb.options.Scalapb.FieldOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.FieldOptions();
}
public static scalapb.options.Scalapb.FieldOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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;
}
@java.lang.Override
public scalapb.options.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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
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) != 0)) {
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;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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) != 0)) {
extends_ = extends_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
companionExtends_ = companionExtends_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.EnumOptions.class, scalapb.options.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) != 0);
}
/**
*
* 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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
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) != 0)) {
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 scalapb.options.Scalapb.EnumOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.EnumOptions other = (scalapb.options.Scalapb.EnumOptions) obj;
if (!getExtendsList()
.equals(other.getExtendsList())) return false;
if (!getCompanionExtendsList()
.equals(other.getCompanionExtendsList())) return false;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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 scalapb.options.Scalapb.EnumOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.EnumOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.EnumOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.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 scalapb.options.Scalapb.EnumOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.EnumOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.EnumOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.EnumOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.EnumOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(scalapb.options.Scalapb.EnumOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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)
scalapb.options.Scalapb.EnumOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.EnumOptions.class, scalapb.options.Scalapb.EnumOptions.Builder.class);
}
// Construct using scalapb.options.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) {
}
}
@java.lang.Override
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;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.EnumOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.EnumOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.EnumOptions build() {
scalapb.options.Scalapb.EnumOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.EnumOptions buildPartial() {
scalapb.options.Scalapb.EnumOptions result = new scalapb.options.Scalapb.EnumOptions(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) != 0)) {
extends_ = extends_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.extends_ = extends_;
if (((bitField0_ & 0x00000002) != 0)) {
companionExtends_ = companionExtends_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.companionExtends_ = companionExtends_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.EnumOptions) {
return mergeFrom((scalapb.options.Scalapb.EnumOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.EnumOptions other) {
if (other == scalapb.options.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;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
scalapb.options.Scalapb.EnumOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (scalapb.options.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) != 0)) {
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) != 0)) {
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) != 0);
}
/**
*
* 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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
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 scalapb.options.Scalapb.EnumOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.EnumOptions();
}
public static scalapb.options.Scalapb.EnumOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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;
}
@java.lang.Override
public scalapb.options.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();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
extends_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
extends_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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) != 0)) {
extends_ = extends_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumValueOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumValueOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.EnumValueOptions.class, scalapb.options.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;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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);
}
@java.lang.Override
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 scalapb.options.Scalapb.EnumValueOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.EnumValueOptions other = (scalapb.options.Scalapb.EnumValueOptions) obj;
if (!getExtendsList()
.equals(other.getExtendsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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 scalapb.options.Scalapb.EnumValueOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.EnumValueOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.EnumValueOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.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 scalapb.options.Scalapb.EnumValueOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.EnumValueOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.EnumValueOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.EnumValueOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.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 scalapb.options.Scalapb.EnumValueOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.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);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(scalapb.options.Scalapb.EnumValueOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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)
scalapb.options.Scalapb.EnumValueOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumValueOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumValueOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.EnumValueOptions.class, scalapb.options.Scalapb.EnumValueOptions.Builder.class);
}
// Construct using scalapb.options.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) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
extends_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumValueOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.EnumValueOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.EnumValueOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.EnumValueOptions build() {
scalapb.options.Scalapb.EnumValueOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.EnumValueOptions buildPartial() {
scalapb.options.Scalapb.EnumValueOptions result = new scalapb.options.Scalapb.EnumValueOptions(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
extends_ = extends_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.extends_ = extends_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.EnumValueOptions) {
return mergeFrom((scalapb.options.Scalapb.EnumValueOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.EnumValueOptions other) {
if (other == scalapb.options.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;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
scalapb.options.Scalapb.EnumValueOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (scalapb.options.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) != 0)) {
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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
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 scalapb.options.Scalapb.EnumValueOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.EnumValueOptions();
}
public static scalapb.options.Scalapb.EnumValueOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
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;
}
@java.lang.Override
public scalapb.options.Scalapb.EnumValueOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OneofOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.OneofOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
java.util.List
getExtendsList();
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
int getExtendsCount();
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
java.lang.String getExtends(int index);
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
com.google.protobuf.ByteString
getExtendsBytes(int index);
}
/**
* Protobuf type {@code scalapb.OneofOptions}
*/
public static final class OneofOptions extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:scalapb.OneofOptions)
OneofOptionsOrBuilder {
private static final long serialVersionUID = 0L;
// Use OneofOptions.newBuilder() to construct.
private OneofOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OneofOptions() {
extends_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OneofOptions(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
extends_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
extends_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
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) != 0)) {
extends_ = extends_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_OneofOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_OneofOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.OneofOptions.class, scalapb.options.Scalapb.OneofOptions.Builder.class);
}
public static final int EXTENDS_FIELD_NUMBER = 1;
private com.google.protobuf.LazyStringList extends_;
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
return extends_;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public java.lang.String getExtends(int index) {
return extends_.get(index);
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public com.google.protobuf.ByteString
getExtendsBytes(int index) {
return extends_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
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);
}
@java.lang.Override
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 scalapb.options.Scalapb.OneofOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.OneofOptions other = (scalapb.options.Scalapb.OneofOptions) obj;
if (!getExtendsList()
.equals(other.getExtendsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@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 scalapb.options.Scalapb.OneofOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.OneofOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.OneofOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.OneofOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.OneofOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.OneofOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.OneofOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.OneofOptions 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 scalapb.options.Scalapb.OneofOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.OneofOptions 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 scalapb.options.Scalapb.OneofOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.OneofOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(scalapb.options.Scalapb.OneofOptions prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
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.OneofOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:scalapb.OneofOptions)
scalapb.options.Scalapb.OneofOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_OneofOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_OneofOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.OneofOptions.class, scalapb.options.Scalapb.OneofOptions.Builder.class);
}
// Construct using scalapb.options.Scalapb.OneofOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
extends_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_OneofOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.OneofOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.OneofOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.OneofOptions build() {
scalapb.options.Scalapb.OneofOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.OneofOptions buildPartial() {
scalapb.options.Scalapb.OneofOptions result = new scalapb.options.Scalapb.OneofOptions(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
extends_ = extends_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.extends_ = extends_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.OneofOptions) {
return mergeFrom((scalapb.options.Scalapb.OneofOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.OneofOptions other) {
if (other == scalapb.options.Scalapb.OneofOptions.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;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
scalapb.options.Scalapb.OneofOptions parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (scalapb.options.Scalapb.OneofOptions) 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) != 0)) {
extends_ = new com.google.protobuf.LazyStringArrayList(extends_);
bitField0_ |= 0x00000001;
}
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
return extends_.getUnmodifiableView();
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public java.lang.String getExtends(int index) {
return extends_.get(index);
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public com.google.protobuf.ByteString
getExtendsBytes(int index) {
return extends_.getByteString(index);
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* 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 traits to mix in to a oneof.
*
*
* 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 traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public Builder addAllExtends(
java.lang.Iterable values) {
ensureExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extends_);
onChanged();
return this;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
*/
public Builder clearExtends() {
extends_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* 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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:scalapb.OneofOptions)
}
// @@protoc_insertion_point(class_scope:scalapb.OneofOptions)
private static final scalapb.options.Scalapb.OneofOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.OneofOptions();
}
public static scalapb.options.Scalapb.OneofOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OneofOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OneofOptions(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public scalapb.options.Scalapb.OneofOptions 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,
scalapb.options.Scalapb.ScalaPbOptions> options = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
scalapb.options.Scalapb.ScalaPbOptions.class,
scalapb.options.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,
scalapb.options.Scalapb.MessageOptions> message = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
scalapb.options.Scalapb.MessageOptions.class,
scalapb.options.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,
scalapb.options.Scalapb.FieldOptions> field = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
scalapb.options.Scalapb.FieldOptions.class,
scalapb.options.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,
scalapb.options.Scalapb.EnumOptions> enumOptions = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
scalapb.options.Scalapb.EnumOptions.class,
scalapb.options.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,
scalapb.options.Scalapb.EnumValueOptions> enumValue = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
scalapb.options.Scalapb.EnumValueOptions.class,
scalapb.options.Scalapb.EnumValueOptions.getDefaultInstance());
public static final int ONEOF_FIELD_NUMBER = 1020;
/**
*
* Enum-level optionals for ScalaPB.
* Extension number officially assigned by protobuf-global-extension-registry@google.com
*
*
* extend .google.protobuf.OneofOptions { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
com.google.protobuf.DescriptorProtos.OneofOptions,
scalapb.options.Scalapb.OneofOptions> oneof = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
scalapb.options.Scalapb.OneofOptions.class,
scalapb.options.Scalapb.OneofOptions.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;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_OneofOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_scalapb_OneofOptions_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\"\313\003\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\037\n\027preserve" +
"_unknown_fields\030\t \001(\010\022\023\n\013object_name\030\n \001" +
"(\t\0223\n\005scope\030\013 \001(\0162$.scalapb.ScalaPbOptio" +
"ns.OptionsScope\022\024\n\006lenses\030\014 \001(\010:\004true\022\037\n" +
"\027retain_source_code_info\030\r \001(\010\022\020\n\010map_ty" +
"pe\030\016 \001(\t\022\'\n\035test_only_no_java_conversion" +
"s\030\241\215\006 \001(\010\"%\n\014OptionsScope\022\010\n\004FILE\020\000\022\013\n\007P" +
"ACKAGE\020\001\"\234\001\n\016MessageOptions\022\017\n\007extends\030\001" +
" \003(\t\022\031\n\021companion_extends\030\002 \003(\t\022\023\n\013annot" +
"ations\030\003 \003(\t\022\014\n\004type\030\004 \001(\t\022\035\n\025companion_" +
"annotations\030\005 \003(\t\022\034\n\024sealed_oneof_extend" +
"s\030\006 \003(\t\"\246\001\n\014FieldOptions\022\014\n\004type\030\001 \001(\t\022\022" +
"\n\nscala_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\022\023\n\013annotations\030\006 \003(\t\022\020\n\010map_type\030\007 \001(\t" +
"\022\016\n\006no_box\030\036 \001(\010\"G\n\013EnumOptions\022\017\n\007exten" +
"ds\030\001 \003(\t\022\031\n\021companion_extends\030\002 \003(\t\022\014\n\004t" +
"ype\030\003 \001(\t\"#\n\020EnumValueOptions\022\017\n\007extends" +
"\030\001 \003(\t\"\037\n\014OneofOptions\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\007mess" +
"age\022\037.google.protobuf.MessageOptions\030\374\007 " +
"\001(\0132\027.scalapb.MessageOptions:D\n\005field\022\035." +
"google.protobuf.FieldOptions\030\374\007 \001(\0132\025.sc" +
"alapb.FieldOptions:I\n\014enum_options\022\034.goo" +
"gle.protobuf.EnumOptions\030\374\007 \001(\0132\024.scalap" +
"b.EnumOptions:Q\n\nenum_value\022!.google.pro" +
"tobuf.EnumValueOptions\030\374\007 \001(\0132\031.scalapb." +
"EnumValueOptions:D\n\005oneof\022\035.google.proto" +
"buf.OneofOptions\030\374\007 \001(\0132\025.scalapb.OneofO" +
"ptionsB\'\n\017scalapb.options\342?\023\n\017scalapb.op" +
"tions\020\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
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", "PreserveUnknownFields", "ObjectName", "Scope", "Lenses", "RetainSourceCodeInfo", "MapType", "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", "CompanionAnnotations", "SealedOneofExtends", });
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", "Annotations", "MapType", "NoBox", });
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", });
internal_static_scalapb_OneofOptions_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_scalapb_OneofOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_scalapb_OneofOptions_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));
oneof.internalInit(descriptor.getExtensions().get(5));
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(scalapb.options.Scalapb.options);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.DescriptorProtos.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}