java_out.scalapb.options.Scalapb Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: scalapb/scalapb.proto
// Protobuf Java Version: 4.28.2
package scalapb.options;
public final class Scalapb {
private Scalapb() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
Scalapb.class.getName());
}
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);
}
/**
* Protobuf enum {@code scalapb.MatchType}
*/
public enum MatchType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* CONTAINS = 0;
*/
CONTAINS(0),
/**
* EXACT = 1;
*/
EXACT(1),
/**
* PRESENCE = 2;
*/
PRESENCE(2),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
MatchType.class.getName());
}
/**
* CONTAINS = 0;
*/
public static final int CONTAINS_VALUE = 0;
/**
* EXACT = 1;
*/
public static final int EXACT_VALUE = 1;
/**
* PRESENCE = 2;
*/
public static final int PRESENCE_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static MatchType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static MatchType forNumber(int value) {
switch (value) {
case 0: return CONTAINS;
case 1: return EXACT;
case 2: return PRESENCE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
MatchType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public MatchType findValueByNumber(int number) {
return MatchType.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.getDescriptor().getEnumTypes().get(0);
}
private static final MatchType[] VALUES = values();
public static MatchType 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 MatchType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:scalapb.MatchType)
}
public interface ScalaPbOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.ScalaPbOptions)
com.google.protobuf.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
*
* If set then it overrides the java_package and package.
*
*
* optional string package_name = 1;
* @return Whether the packageName field is set.
*/
boolean hasPackageName();
/**
*
* If set then it overrides the java_package and package.
*
*
* optional string package_name = 1;
* @return The packageName.
*/
java.lang.String getPackageName();
/**
*
* If set then it overrides the java_package and package.
*
*
* optional string package_name = 1;
* @return The bytes for packageName.
*/
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;
* @return Whether the flatPackage field is set.
*/
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;
* @return The flatPackage.
*/
boolean getFlatPackage();
/**
*
* Adds the following imports at the top of the file (this is meant
* to provide implicit TypeMappers)
*
*
* repeated string import = 3;
* @return A list containing the import.
*/
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;
* @return The count of import.
*/
int getImportCount();
/**
*
* Adds the following imports at the top of the file (this is meant
* to provide implicit TypeMappers)
*
*
* repeated string import = 3;
* @param index The index of the element to return.
* @return The import at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the import at the given index.
*/
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;
* @return A list containing the preamble.
*/
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;
* @return The count of preamble.
*/
int getPreambleCount();
/**
*
* Text to add to the generated scala file. This can be used only
* when single_file is true.
*
*
* repeated string preamble = 4;
* @param index The index of the element to return.
* @return The preamble at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preamble at the given index.
*/
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;
* @return Whether the singleFile field is set.
*/
boolean hasSingleFile();
/**
*
* If true, all messages and enums (but not services) will be written
* to a single Scala file.
*
*
* optional bool single_file = 5;
* @return The singleFile.
*/
boolean getSingleFile();
/**
*
* By default, wrappers defined at
* https://github.com/protocolbuffers/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;
* @return Whether the noPrimitiveWrappers field is set.
*/
boolean hasNoPrimitiveWrappers();
/**
*
* By default, wrappers defined at
* https://github.com/protocolbuffers/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;
* @return The noPrimitiveWrappers.
*/
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;
* @return Whether the primitiveWrappers field is set.
*/
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;
* @return The primitiveWrappers.
*/
boolean getPrimitiveWrappers();
/**
*
* Scala type to be used for repeated fields. If unspecified,
* `scala.collection.Seq` will be used.
*
*
* optional string collection_type = 8;
* @return Whether the collectionType field is set.
*/
boolean hasCollectionType();
/**
*
* Scala type to be used for repeated fields. If unspecified,
* `scala.collection.Seq` will be used.
*
*
* optional string collection_type = 8;
* @return The collectionType.
*/
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;
* @return The bytes for collectionType.
*/
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 [default = true];
* @return Whether the preserveUnknownFields field is set.
*/
boolean hasPreserveUnknownFields();
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9 [default = true];
* @return The preserveUnknownFields.
*/
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;
* @return Whether the objectName field is set.
*/
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;
* @return The objectName.
*/
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;
* @return The bytes for objectName.
*/
com.google.protobuf.ByteString
getObjectNameBytes();
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
* @return Whether the scope field is set.
*/
boolean hasScope();
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
* @return The scope.
*/
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope getScope();
/**
*
* If true, lenses will be generated.
*
*
* optional bool lenses = 12 [default = true];
* @return Whether the lenses field is set.
*/
boolean hasLenses();
/**
*
* If true, lenses will be generated.
*
*
* optional bool lenses = 12 [default = true];
* @return The lenses.
*/
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;
* @return Whether the retainSourceCodeInfo field is set.
*/
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;
* @return The retainSourceCodeInfo.
*/
boolean getRetainSourceCodeInfo();
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
* @return Whether the mapType field is set.
*/
boolean hasMapType();
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
* @return The mapType.
*/
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;
* @return The bytes for mapType.
*/
com.google.protobuf.ByteString
getMapTypeBytes();
/**
*
* If true, no default values will be generated in message constructors.
* This setting can be overridden at the message-level and for individual
* fields.
*
*
* optional bool no_default_values_in_constructor = 15;
* @return Whether the noDefaultValuesInConstructor field is set.
*/
boolean hasNoDefaultValuesInConstructor();
/**
*
* If true, no default values will be generated in message constructors.
* This setting can be overridden at the message-level and for individual
* fields.
*
*
* optional bool no_default_values_in_constructor = 15;
* @return The noDefaultValuesInConstructor.
*/
boolean getNoDefaultValuesInConstructor();
/**
* optional .scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16;
* @return Whether the enumValueNaming field is set.
*/
boolean hasEnumValueNaming();
/**
* optional .scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16;
* @return The enumValueNaming.
*/
scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming getEnumValueNaming();
/**
*
* Indicate if prefix (enum name + optional underscore) should be removed in scala code
* Strip is applied before enum value naming changes.
*
*
* optional bool enum_strip_prefix = 17 [default = false];
* @return Whether the enumStripPrefix field is set.
*/
boolean hasEnumStripPrefix();
/**
*
* Indicate if prefix (enum name + optional underscore) should be removed in scala code
* Strip is applied before enum value naming changes.
*
*
* optional bool enum_strip_prefix = 17 [default = false];
* @return The enumStripPrefix.
*/
boolean getEnumStripPrefix();
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return Whether the bytesType field is set.
*/
boolean hasBytesType();
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return The bytesType.
*/
java.lang.String getBytesType();
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return The bytes for bytesType.
*/
com.google.protobuf.ByteString
getBytesTypeBytes();
/**
*
* Enable java conversions for this file.
*
*
* optional bool java_conversions = 23;
* @return Whether the javaConversions field is set.
*/
boolean hasJavaConversions();
/**
*
* Enable java conversions for this file.
*
*
* optional bool java_conversions = 23;
* @return The javaConversions.
*/
boolean getJavaConversions();
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
java.util.List
getAuxMessageOptionsList();
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions getAuxMessageOptions(int index);
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
int getAuxMessageOptionsCount();
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder>
getAuxMessageOptionsOrBuilderList();
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder getAuxMessageOptionsOrBuilder(
int index);
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
java.util.List
getAuxFieldOptionsList();
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions getAuxFieldOptions(int index);
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
int getAuxFieldOptionsCount();
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder>
getAuxFieldOptionsOrBuilderList();
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder getAuxFieldOptionsOrBuilder(
int index);
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
java.util.List
getAuxEnumOptionsList();
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions getAuxEnumOptions(int index);
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
int getAuxEnumOptionsCount();
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder>
getAuxEnumOptionsOrBuilderList();
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder getAuxEnumOptionsOrBuilder(
int index);
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
java.util.List
getAuxEnumValueOptionsList();
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions getAuxEnumValueOptions(int index);
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
int getAuxEnumValueOptionsCount();
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder>
getAuxEnumValueOptionsOrBuilderList();
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder getAuxEnumValueOptionsOrBuilder(
int index);
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @return A list containing the preprocessors.
*/
java.util.List
getPreprocessorsList();
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @return The count of preprocessors.
*/
int getPreprocessorsCount();
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param index The index of the element to return.
* @return The preprocessors at the given index.
*/
java.lang.String getPreprocessors(int index);
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param index The index of the value to return.
* @return The bytes of the preprocessors at the given index.
*/
com.google.protobuf.ByteString
getPreprocessorsBytes(int index);
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
java.util.List
getFieldTransformationsList();
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
scalapb.options.Scalapb.FieldTransformation getFieldTransformations(int index);
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
int getFieldTransformationsCount();
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
java.util.List extends scalapb.options.Scalapb.FieldTransformationOrBuilder>
getFieldTransformationsOrBuilderList();
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
scalapb.options.Scalapb.FieldTransformationOrBuilder getFieldTransformationsOrBuilder(
int index);
/**
*
* Ignores all transformations for this file. This is meant to allow specific files to
* opt out from transformations inherited through package-scoped options.
*
*
* optional bool ignore_all_transformations = 26;
* @return Whether the ignoreAllTransformations field is set.
*/
boolean hasIgnoreAllTransformations();
/**
*
* Ignores all transformations for this file. This is meant to allow specific files to
* opt out from transformations inherited through package-scoped options.
*
*
* optional bool ignore_all_transformations = 26;
* @return The ignoreAllTransformations.
*/
boolean getIgnoreAllTransformations();
/**
*
* If true, getters will be generated.
*
*
* optional bool getters = 27 [default = true];
* @return Whether the getters field is set.
*/
boolean hasGetters();
/**
*
* If true, getters will be generated.
*
*
* optional bool getters = 27 [default = true];
* @return The getters.
*/
boolean getGetters();
/**
*
* Generate sources that are compatible with Scala 3
*
*
* optional bool scala3_sources = 28;
* @return Whether the scala3Sources field is set.
*/
boolean hasScala3Sources();
/**
*
* Generate sources that are compatible with Scala 3
*
*
* optional bool scala3_sources = 28;
* @return The scala3Sources.
*/
boolean getScala3Sources();
/**
*
* Makes constructor parameters public, including defaults and TypeMappers.
*
*
* optional bool public_constructor_parameters = 29;
* @return Whether the publicConstructorParameters field is set.
*/
boolean hasPublicConstructorParameters();
/**
*
* Makes constructor parameters public, including defaults and TypeMappers.
*
*
* optional bool public_constructor_parameters = 29;
* @return The publicConstructorParameters.
*/
boolean getPublicConstructorParameters();
/**
*
* For use in tests only. Inhibit Java conversions even when when generator parameters
* request for it.
*
*
* optional bool test_only_no_java_conversions = 999;
* @return Whether the testOnlyNoJavaConversions field is set.
*/
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 = 999;
* @return The testOnlyNoJavaConversions.
*/
boolean getTestOnlyNoJavaConversions();
}
/**
* Protobuf type {@code scalapb.ScalaPbOptions}
*/
public static final class ScalaPbOptions extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
ScalaPbOptions> implements
// @@protoc_insertion_point(message_implements:scalapb.ScalaPbOptions)
ScalaPbOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
ScalaPbOptions.class.getName());
}
// Use ScalaPbOptions.newBuilder() to construct.
private ScalaPbOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
}
private ScalaPbOptions() {
packageName_ = "";
import_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preamble_ =
com.google.protobuf.LazyStringArrayList.emptyList();
collectionType_ = "";
preserveUnknownFields_ = true;
objectName_ = "";
scope_ = 0;
lenses_ = true;
mapType_ = "";
enumValueNaming_ = 0;
bytesType_ = "";
auxMessageOptions_ = java.util.Collections.emptyList();
auxFieldOptions_ = java.util.Collections.emptyList();
auxEnumOptions_ = java.util.Collections.emptyList();
auxEnumValueOptions_ = java.util.Collections.emptyList();
preprocessors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
fieldTransformations_ = java.util.Collections.emptyList();
getters_ = true;
}
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.GeneratedMessage.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),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
OptionsScope.class.getName());
}
/**
*
* 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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static OptionsScope valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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)
}
/**
*
* Naming convention for generated enum values
*
*
* Protobuf enum {@code scalapb.ScalaPbOptions.EnumValueNaming}
*/
public enum EnumValueNaming
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Enum value names in Scala use the same name as in the proto
*
*
* AS_IN_PROTO = 0;
*/
AS_IN_PROTO(0),
/**
*
* Convert enum values to CamelCase in Scala.
*
*
* CAMEL_CASE = 1;
*/
CAMEL_CASE(1),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
EnumValueNaming.class.getName());
}
/**
*
* Enum value names in Scala use the same name as in the proto
*
*
* AS_IN_PROTO = 0;
*/
public static final int AS_IN_PROTO_VALUE = 0;
/**
*
* Convert enum values to CamelCase in Scala.
*
*
* CAMEL_CASE = 1;
*/
public static final int CAMEL_CASE_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static EnumValueNaming valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static EnumValueNaming forNumber(int value) {
switch (value) {
case 0: return AS_IN_PROTO;
case 1: return CAMEL_CASE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
EnumValueNaming> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public EnumValueNaming findValueByNumber(int number) {
return EnumValueNaming.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(1);
}
private static final EnumValueNaming[] VALUES = values();
public static EnumValueNaming 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 EnumValueNaming(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:scalapb.ScalaPbOptions.EnumValueNaming)
}
public interface AuxMessageOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.ScalaPbOptions.AuxMessageOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
boolean hasTarget();
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return The target.
*/
java.lang.String getTarget();
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
com.google.protobuf.ByteString
getTargetBytes();
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
* @return Whether the options field is set.
*/
boolean hasOptions();
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
* @return The options.
*/
scalapb.options.Scalapb.MessageOptions getOptions();
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
scalapb.options.Scalapb.MessageOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* AuxMessageOptions enables you to set message-level options through package-scoped options.
* This is useful when you can't add a dependency on scalapb.proto from the proto file that
* defines the message.
*
*
* Protobuf type {@code scalapb.ScalaPbOptions.AuxMessageOptions}
*/
public static final class AuxMessageOptions extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:scalapb.ScalaPbOptions.AuxMessageOptions)
AuxMessageOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
AuxMessageOptions.class.getName());
}
// Use AuxMessageOptions.newBuilder() to construct.
private AuxMessageOptions(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private AuxMessageOptions() {
target_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.class, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder.class);
}
private int bitField0_;
public static final int TARGET_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object target_ = "";
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return The target.
*/
@java.lang.Override
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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()) {
target_ = s;
}
return s;
}
}
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONS_FIELD_NUMBER = 2;
private scalapb.options.Scalapb.MessageOptions options_;
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
* @return Whether the options field is set.
*/
@java.lang.Override
public boolean hasOptions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
* @return The options.
*/
@java.lang.Override
public scalapb.options.Scalapb.MessageOptions getOptions() {
return options_ == null ? scalapb.options.Scalapb.MessageOptions.getDefaultInstance() : options_;
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
@java.lang.Override
public scalapb.options.Scalapb.MessageOptionsOrBuilder getOptionsOrBuilder() {
return options_ == null ? scalapb.options.Scalapb.MessageOptions.getDefaultInstance() : options_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOptions()) {
if (!getOptions().isInitialized()) {
memoizedIsInitialized = 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.GeneratedMessage.writeString(output, 1, target_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getOptions());
}
getUnknownFields().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.GeneratedMessage.computeStringSize(1, target_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOptions());
}
size += getUnknownFields().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.AuxMessageOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions other = (scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions) obj;
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget()
.equals(other.getTarget())) return false;
}
if (hasOptions() != other.hasOptions()) return false;
if (hasOptions()) {
if (!getOptions()
.equals(other.getOptions())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions 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.AuxMessageOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions 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.AuxMessageOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.AuxMessageOptions 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AuxMessageOptions enables you to set message-level options through package-scoped options.
* This is useful when you can't add a dependency on scalapb.proto from the proto file that
* defines the message.
*
*
* Protobuf type {@code scalapb.ScalaPbOptions.AuxMessageOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:scalapb.ScalaPbOptions.AuxMessageOptions)
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.class, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder.class);
}
// Construct using scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
target_ = "";
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions build() {
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions buildPartial() {
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions result = new scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.target_ = target_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.options_ = optionsBuilder_ == null
? options_
: optionsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions) {
return mergeFrom((scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions other) {
if (other == scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.getDefaultInstance()) return this;
if (other.hasTarget()) {
target_ = other.target_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasOptions()) {
if (!getOptions().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
target_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getOptionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object target_ = "";
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return The target.
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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()) {
target_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
target_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = getDefaultInstance().getTarget();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The fully-qualified name of the message in the proto name space. Set to `*` to apply to all
* messages in scope.
*
*
* optional string target = 1;
* @param value The bytes for target to set.
* @return This builder for chaining.
*/
public Builder setTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
target_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private scalapb.options.Scalapb.MessageOptions options_;
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.MessageOptions, scalapb.options.Scalapb.MessageOptions.Builder, scalapb.options.Scalapb.MessageOptionsOrBuilder> optionsBuilder_;
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
* @return Whether the options field is set.
*/
public boolean hasOptions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
* @return The options.
*/
public scalapb.options.Scalapb.MessageOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? scalapb.options.Scalapb.MessageOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
public Builder setOptions(scalapb.options.Scalapb.MessageOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
} else {
optionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
public Builder setOptions(
scalapb.options.Scalapb.MessageOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
public Builder mergeOptions(scalapb.options.Scalapb.MessageOptions value) {
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
options_ != null &&
options_ != scalapb.options.Scalapb.MessageOptions.getDefaultInstance()) {
getOptionsBuilder().mergeFrom(value);
} else {
options_ = value;
}
} else {
optionsBuilder_.mergeFrom(value);
}
if (options_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
public Builder clearOptions() {
bitField0_ = (bitField0_ & ~0x00000002);
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
public scalapb.options.Scalapb.MessageOptions.Builder getOptionsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
public scalapb.options.Scalapb.MessageOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
scalapb.options.Scalapb.MessageOptions.getDefaultInstance() : options_;
}
}
/**
*
* Options to apply to the message. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.MessageOptions options = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.MessageOptions, scalapb.options.Scalapb.MessageOptions.Builder, scalapb.options.Scalapb.MessageOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.MessageOptions, scalapb.options.Scalapb.MessageOptions.Builder, scalapb.options.Scalapb.MessageOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
// @@protoc_insertion_point(builder_scope:scalapb.ScalaPbOptions.AuxMessageOptions)
}
// @@protoc_insertion_point(class_scope:scalapb.ScalaPbOptions.AuxMessageOptions)
private static final scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions();
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuxMessageOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.AuxMessageOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AuxFieldOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.ScalaPbOptions.AuxFieldOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
boolean hasTarget();
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return The target.
*/
java.lang.String getTarget();
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
com.google.protobuf.ByteString
getTargetBytes();
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
* @return Whether the options field is set.
*/
boolean hasOptions();
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
* @return The options.
*/
scalapb.options.Scalapb.FieldOptions getOptions();
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
scalapb.options.Scalapb.FieldOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* AuxFieldOptions enables you to set field-level options through package-scoped options.
* This is useful when you can't add a dependency on scalapb.proto from the proto file that
* defines the field.
*
*
* Protobuf type {@code scalapb.ScalaPbOptions.AuxFieldOptions}
*/
public static final class AuxFieldOptions extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:scalapb.ScalaPbOptions.AuxFieldOptions)
AuxFieldOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
AuxFieldOptions.class.getName());
}
// Use AuxFieldOptions.newBuilder() to construct.
private AuxFieldOptions(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private AuxFieldOptions() {
target_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.class, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder.class);
}
private int bitField0_;
public static final int TARGET_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object target_ = "";
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return The target.
*/
@java.lang.Override
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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()) {
target_ = s;
}
return s;
}
}
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONS_FIELD_NUMBER = 2;
private scalapb.options.Scalapb.FieldOptions options_;
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
* @return Whether the options field is set.
*/
@java.lang.Override
public boolean hasOptions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
* @return The options.
*/
@java.lang.Override
public scalapb.options.Scalapb.FieldOptions getOptions() {
return options_ == null ? scalapb.options.Scalapb.FieldOptions.getDefaultInstance() : options_;
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
@java.lang.Override
public scalapb.options.Scalapb.FieldOptionsOrBuilder getOptionsOrBuilder() {
return options_ == null ? scalapb.options.Scalapb.FieldOptions.getDefaultInstance() : options_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOptions()) {
if (!getOptions().isInitialized()) {
memoizedIsInitialized = 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.GeneratedMessage.writeString(output, 1, target_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getOptions());
}
getUnknownFields().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.GeneratedMessage.computeStringSize(1, target_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOptions());
}
size += getUnknownFields().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.AuxFieldOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions other = (scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions) obj;
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget()
.equals(other.getTarget())) return false;
}
if (hasOptions() != other.hasOptions()) return false;
if (hasOptions()) {
if (!getOptions()
.equals(other.getOptions())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions 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.AuxFieldOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions 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.AuxFieldOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.AuxFieldOptions 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AuxFieldOptions enables you to set field-level options through package-scoped options.
* This is useful when you can't add a dependency on scalapb.proto from the proto file that
* defines the field.
*
*
* Protobuf type {@code scalapb.ScalaPbOptions.AuxFieldOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:scalapb.ScalaPbOptions.AuxFieldOptions)
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.class, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder.class);
}
// Construct using scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
target_ = "";
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions build() {
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions buildPartial() {
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions result = new scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.target_ = target_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.options_ = optionsBuilder_ == null
? options_
: optionsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions) {
return mergeFrom((scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions other) {
if (other == scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.getDefaultInstance()) return this;
if (other.hasTarget()) {
target_ = other.target_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasOptions()) {
if (!getOptions().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
target_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getOptionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object target_ = "";
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return The target.
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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()) {
target_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
target_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = getDefaultInstance().getTarget();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The fully-qualified name of the field in the proto name space. Set to `*` to apply to all
* fields in scope.
*
*
* optional string target = 1;
* @param value The bytes for target to set.
* @return This builder for chaining.
*/
public Builder setTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
target_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private scalapb.options.Scalapb.FieldOptions options_;
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.FieldOptions, scalapb.options.Scalapb.FieldOptions.Builder, scalapb.options.Scalapb.FieldOptionsOrBuilder> optionsBuilder_;
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
* @return Whether the options field is set.
*/
public boolean hasOptions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
* @return The options.
*/
public scalapb.options.Scalapb.FieldOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? scalapb.options.Scalapb.FieldOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
public Builder setOptions(scalapb.options.Scalapb.FieldOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
} else {
optionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
public Builder setOptions(
scalapb.options.Scalapb.FieldOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
public Builder mergeOptions(scalapb.options.Scalapb.FieldOptions value) {
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
options_ != null &&
options_ != scalapb.options.Scalapb.FieldOptions.getDefaultInstance()) {
getOptionsBuilder().mergeFrom(value);
} else {
options_ = value;
}
} else {
optionsBuilder_.mergeFrom(value);
}
if (options_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
public Builder clearOptions() {
bitField0_ = (bitField0_ & ~0x00000002);
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
public scalapb.options.Scalapb.FieldOptions.Builder getOptionsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
public scalapb.options.Scalapb.FieldOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
scalapb.options.Scalapb.FieldOptions.getDefaultInstance() : options_;
}
}
/**
*
* Options to apply to the field. If there are any options defined on the target message
* they take precedence over the options.
*
*
* optional .scalapb.FieldOptions options = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.FieldOptions, scalapb.options.Scalapb.FieldOptions.Builder, scalapb.options.Scalapb.FieldOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.FieldOptions, scalapb.options.Scalapb.FieldOptions.Builder, scalapb.options.Scalapb.FieldOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
// @@protoc_insertion_point(builder_scope:scalapb.ScalaPbOptions.AuxFieldOptions)
}
// @@protoc_insertion_point(class_scope:scalapb.ScalaPbOptions.AuxFieldOptions)
private static final scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions();
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuxFieldOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.AuxFieldOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AuxEnumOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.ScalaPbOptions.AuxEnumOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
boolean hasTarget();
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return The target.
*/
java.lang.String getTarget();
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
com.google.protobuf.ByteString
getTargetBytes();
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
* @return Whether the options field is set.
*/
boolean hasOptions();
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
* @return The options.
*/
scalapb.options.Scalapb.EnumOptions getOptions();
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
scalapb.options.Scalapb.EnumOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* AuxEnumOptions enables you to set enum-level options through package-scoped options.
* This is useful when you can't add a dependency on scalapb.proto from the proto file that
* defines the enum.
*
*
* Protobuf type {@code scalapb.ScalaPbOptions.AuxEnumOptions}
*/
public static final class AuxEnumOptions extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:scalapb.ScalaPbOptions.AuxEnumOptions)
AuxEnumOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
AuxEnumOptions.class.getName());
}
// Use AuxEnumOptions.newBuilder() to construct.
private AuxEnumOptions(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private AuxEnumOptions() {
target_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.class, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder.class);
}
private int bitField0_;
public static final int TARGET_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object target_ = "";
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return The target.
*/
@java.lang.Override
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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()) {
target_ = s;
}
return s;
}
}
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONS_FIELD_NUMBER = 2;
private scalapb.options.Scalapb.EnumOptions options_;
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
* @return Whether the options field is set.
*/
@java.lang.Override
public boolean hasOptions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
* @return The options.
*/
@java.lang.Override
public scalapb.options.Scalapb.EnumOptions getOptions() {
return options_ == null ? scalapb.options.Scalapb.EnumOptions.getDefaultInstance() : options_;
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
@java.lang.Override
public scalapb.options.Scalapb.EnumOptionsOrBuilder getOptionsOrBuilder() {
return options_ == null ? scalapb.options.Scalapb.EnumOptions.getDefaultInstance() : options_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOptions()) {
if (!getOptions().isInitialized()) {
memoizedIsInitialized = 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.GeneratedMessage.writeString(output, 1, target_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getOptions());
}
getUnknownFields().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.GeneratedMessage.computeStringSize(1, target_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOptions());
}
size += getUnknownFields().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.AuxEnumOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions other = (scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions) obj;
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget()
.equals(other.getTarget())) return false;
}
if (hasOptions() != other.hasOptions()) return false;
if (hasOptions()) {
if (!getOptions()
.equals(other.getOptions())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions 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.AuxEnumOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions 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.AuxEnumOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.AuxEnumOptions 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AuxEnumOptions enables you to set enum-level options through package-scoped options.
* This is useful when you can't add a dependency on scalapb.proto from the proto file that
* defines the enum.
*
*
* Protobuf type {@code scalapb.ScalaPbOptions.AuxEnumOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:scalapb.ScalaPbOptions.AuxEnumOptions)
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.class, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder.class);
}
// Construct using scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
target_ = "";
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions build() {
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions buildPartial() {
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions result = new scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.target_ = target_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.options_ = optionsBuilder_ == null
? options_
: optionsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions) {
return mergeFrom((scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions other) {
if (other == scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.getDefaultInstance()) return this;
if (other.hasTarget()) {
target_ = other.target_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasOptions()) {
if (!getOptions().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
target_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getOptionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object target_ = "";
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return The target.
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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()) {
target_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
target_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = getDefaultInstance().getTarget();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The fully-qualified name of the enum in the proto name space. Set to `*` to apply to
* all enums in scope.
*
*
* optional string target = 1;
* @param value The bytes for target to set.
* @return This builder for chaining.
*/
public Builder setTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
target_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private scalapb.options.Scalapb.EnumOptions options_;
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.EnumOptions, scalapb.options.Scalapb.EnumOptions.Builder, scalapb.options.Scalapb.EnumOptionsOrBuilder> optionsBuilder_;
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
* @return Whether the options field is set.
*/
public boolean hasOptions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
* @return The options.
*/
public scalapb.options.Scalapb.EnumOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? scalapb.options.Scalapb.EnumOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
public Builder setOptions(scalapb.options.Scalapb.EnumOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
} else {
optionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
public Builder setOptions(
scalapb.options.Scalapb.EnumOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
public Builder mergeOptions(scalapb.options.Scalapb.EnumOptions value) {
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
options_ != null &&
options_ != scalapb.options.Scalapb.EnumOptions.getDefaultInstance()) {
getOptionsBuilder().mergeFrom(value);
} else {
options_ = value;
}
} else {
optionsBuilder_.mergeFrom(value);
}
if (options_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
public Builder clearOptions() {
bitField0_ = (bitField0_ & ~0x00000002);
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
public scalapb.options.Scalapb.EnumOptions.Builder getOptionsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
public scalapb.options.Scalapb.EnumOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
scalapb.options.Scalapb.EnumOptions.getDefaultInstance() : options_;
}
}
/**
*
* Options to apply to the enum. If there are any options defined on the target enum
* they take precedence over the options.
*
*
* optional .scalapb.EnumOptions options = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.EnumOptions, scalapb.options.Scalapb.EnumOptions.Builder, scalapb.options.Scalapb.EnumOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.EnumOptions, scalapb.options.Scalapb.EnumOptions.Builder, scalapb.options.Scalapb.EnumOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
// @@protoc_insertion_point(builder_scope:scalapb.ScalaPbOptions.AuxEnumOptions)
}
// @@protoc_insertion_point(class_scope:scalapb.ScalaPbOptions.AuxEnumOptions)
private static final scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions();
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuxEnumOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.AuxEnumOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AuxEnumValueOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.ScalaPbOptions.AuxEnumValueOptions)
com.google.protobuf.MessageOrBuilder {
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
boolean hasTarget();
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return The target.
*/
java.lang.String getTarget();
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
com.google.protobuf.ByteString
getTargetBytes();
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
* @return Whether the options field is set.
*/
boolean hasOptions();
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
* @return The options.
*/
scalapb.options.Scalapb.EnumValueOptions getOptions();
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
scalapb.options.Scalapb.EnumValueOptionsOrBuilder getOptionsOrBuilder();
}
/**
*
* AuxEnumValueOptions enables you to set enum value level options through package-scoped
* options. This is useful when you can't add a dependency on scalapb.proto from the proto
* file that defines the enum.
*
*
* Protobuf type {@code scalapb.ScalaPbOptions.AuxEnumValueOptions}
*/
public static final class AuxEnumValueOptions extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:scalapb.ScalaPbOptions.AuxEnumValueOptions)
AuxEnumValueOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
AuxEnumValueOptions.class.getName());
}
// Use AuxEnumValueOptions.newBuilder() to construct.
private AuxEnumValueOptions(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private AuxEnumValueOptions() {
target_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.class, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder.class);
}
private int bitField0_;
public static final int TARGET_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object target_ = "";
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
@java.lang.Override
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return The target.
*/
@java.lang.Override
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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()) {
target_ = s;
}
return s;
}
}
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONS_FIELD_NUMBER = 2;
private scalapb.options.Scalapb.EnumValueOptions options_;
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
* @return Whether the options field is set.
*/
@java.lang.Override
public boolean hasOptions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
* @return The options.
*/
@java.lang.Override
public scalapb.options.Scalapb.EnumValueOptions getOptions() {
return options_ == null ? scalapb.options.Scalapb.EnumValueOptions.getDefaultInstance() : options_;
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
@java.lang.Override
public scalapb.options.Scalapb.EnumValueOptionsOrBuilder getOptionsOrBuilder() {
return options_ == null ? scalapb.options.Scalapb.EnumValueOptions.getDefaultInstance() : options_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOptions()) {
if (!getOptions().isInitialized()) {
memoizedIsInitialized = 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.GeneratedMessage.writeString(output, 1, target_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getOptions());
}
getUnknownFields().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.GeneratedMessage.computeStringSize(1, target_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOptions());
}
size += getUnknownFields().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.AuxEnumValueOptions)) {
return super.equals(obj);
}
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions other = (scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions) obj;
if (hasTarget() != other.hasTarget()) return false;
if (hasTarget()) {
if (!getTarget()
.equals(other.getTarget())) return false;
}
if (hasOptions() != other.hasOptions()) return false;
if (hasOptions()) {
if (!getOptions()
.equals(other.getOptions())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasTarget()) {
hash = (37 * hash) + TARGET_FIELD_NUMBER;
hash = (53 * hash) + getTarget().hashCode();
}
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions 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.AuxEnumValueOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions 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.AuxEnumValueOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.AuxEnumValueOptions 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* AuxEnumValueOptions enables you to set enum value level options through package-scoped
* options. This is useful when you can't add a dependency on scalapb.proto from the proto
* file that defines the enum.
*
*
* Protobuf type {@code scalapb.ScalaPbOptions.AuxEnumValueOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:scalapb.ScalaPbOptions.AuxEnumValueOptions)
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.class, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder.class);
}
// Construct using scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getOptionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
target_ = "";
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions getDefaultInstanceForType() {
return scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions build() {
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions buildPartial() {
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions result = new scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.target_ = target_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.options_ = optionsBuilder_ == null
? options_
: optionsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions) {
return mergeFrom((scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions other) {
if (other == scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.getDefaultInstance()) return this;
if (other.hasTarget()) {
target_ = other.target_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasOptions()) {
if (!getOptions().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
target_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getOptionsFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object target_ = "";
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return Whether the target field is set.
*/
public boolean hasTarget() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return The target.
*/
public java.lang.String getTarget() {
java.lang.Object ref = target_;
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()) {
target_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return The bytes for target.
*/
public com.google.protobuf.ByteString
getTargetBytes() {
java.lang.Object ref = target_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
target_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @param value The target to set.
* @return This builder for chaining.
*/
public Builder setTarget(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
target_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @return This builder for chaining.
*/
public Builder clearTarget() {
target_ = getDefaultInstance().getTarget();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The fully-qualified name of the enum value in the proto name space. Set to `*` to apply
* to all enum values in scope.
*
*
* optional string target = 1;
* @param value The bytes for target to set.
* @return This builder for chaining.
*/
public Builder setTargetBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
target_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private scalapb.options.Scalapb.EnumValueOptions options_;
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.EnumValueOptions, scalapb.options.Scalapb.EnumValueOptions.Builder, scalapb.options.Scalapb.EnumValueOptionsOrBuilder> optionsBuilder_;
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
* @return Whether the options field is set.
*/
public boolean hasOptions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
* @return The options.
*/
public scalapb.options.Scalapb.EnumValueOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? scalapb.options.Scalapb.EnumValueOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
public Builder setOptions(scalapb.options.Scalapb.EnumValueOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
} else {
optionsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
public Builder setOptions(
scalapb.options.Scalapb.EnumValueOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
public Builder mergeOptions(scalapb.options.Scalapb.EnumValueOptions value) {
if (optionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
options_ != null &&
options_ != scalapb.options.Scalapb.EnumValueOptions.getDefaultInstance()) {
getOptionsBuilder().mergeFrom(value);
} else {
options_ = value;
}
} else {
optionsBuilder_.mergeFrom(value);
}
if (options_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
public Builder clearOptions() {
bitField0_ = (bitField0_ & ~0x00000002);
options_ = null;
if (optionsBuilder_ != null) {
optionsBuilder_.dispose();
optionsBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
public scalapb.options.Scalapb.EnumValueOptions.Builder getOptionsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
public scalapb.options.Scalapb.EnumValueOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
scalapb.options.Scalapb.EnumValueOptions.getDefaultInstance() : options_;
}
}
/**
*
* Options to apply to the enum value. If there are any options defined on
* the target enum value they take precedence over the options.
*
*
* optional .scalapb.EnumValueOptions options = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.EnumValueOptions, scalapb.options.Scalapb.EnumValueOptions.Builder, scalapb.options.Scalapb.EnumValueOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.EnumValueOptions, scalapb.options.Scalapb.EnumValueOptions.Builder, scalapb.options.Scalapb.EnumValueOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
// @@protoc_insertion_point(builder_scope:scalapb.ScalaPbOptions.AuxEnumValueOptions)
}
// @@protoc_insertion_point(class_scope:scalapb.ScalaPbOptions.AuxEnumValueOptions)
private static final scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions();
}
public static scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuxEnumValueOptions parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.AuxEnumValueOptions getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int PACKAGE_NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object packageName_ = "";
/**
*
* If set then it overrides the java_package and package.
*
*
* optional string package_name = 1;
* @return Whether the packageName field is set.
*/
@java.lang.Override
public boolean hasPackageName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If set then it overrides the java_package and package.
*
*
* optional string package_name = 1;
* @return The packageName.
*/
@java.lang.Override
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;
* @return The bytes for packageName.
*/
@java.lang.Override
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_ = false;
/**
*
* 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;
* @return Whether the flatPackage field is set.
*/
@java.lang.Override
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;
* @return The flatPackage.
*/
@java.lang.Override
public boolean getFlatPackage() {
return flatPackage_;
}
public static final int IMPORT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList import_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Adds the following imports at the top of the file (this is meant
* to provide implicit TypeMappers)
*
*
* repeated string import = 3;
* @return A list containing the import.
*/
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;
* @return The count of import.
*/
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;
* @param index The index of the element to return.
* @return The import at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the import at the given index.
*/
public com.google.protobuf.ByteString
getImportBytes(int index) {
return import_.getByteString(index);
}
public static final int PREAMBLE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preamble_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Text to add to the generated scala file. This can be used only
* when single_file is true.
*
*
* repeated string preamble = 4;
* @return A list containing the preamble.
*/
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;
* @return The count of preamble.
*/
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;
* @param index The index of the element to return.
* @return The preamble at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preamble at the given index.
*/
public com.google.protobuf.ByteString
getPreambleBytes(int index) {
return preamble_.getByteString(index);
}
public static final int SINGLE_FILE_FIELD_NUMBER = 5;
private boolean singleFile_ = false;
/**
*
* If true, all messages and enums (but not services) will be written
* to a single Scala file.
*
*
* optional bool single_file = 5;
* @return Whether the singleFile field is set.
*/
@java.lang.Override
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;
* @return The singleFile.
*/
@java.lang.Override
public boolean getSingleFile() {
return singleFile_;
}
public static final int NO_PRIMITIVE_WRAPPERS_FIELD_NUMBER = 7;
private boolean noPrimitiveWrappers_ = false;
/**
*
* By default, wrappers defined at
* https://github.com/protocolbuffers/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;
* @return Whether the noPrimitiveWrappers field is set.
*/
@java.lang.Override
public boolean hasNoPrimitiveWrappers() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* By default, wrappers defined at
* https://github.com/protocolbuffers/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;
* @return The noPrimitiveWrappers.
*/
@java.lang.Override
public boolean getNoPrimitiveWrappers() {
return noPrimitiveWrappers_;
}
public static final int PRIMITIVE_WRAPPERS_FIELD_NUMBER = 6;
private boolean primitiveWrappers_ = false;
/**
*
* 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;
* @return Whether the primitiveWrappers field is set.
*/
@java.lang.Override
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;
* @return The primitiveWrappers.
*/
@java.lang.Override
public boolean getPrimitiveWrappers() {
return primitiveWrappers_;
}
public static final int COLLECTION_TYPE_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
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;
* @return Whether the collectionType field is set.
*/
@java.lang.Override
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;
* @return The collectionType.
*/
@java.lang.Override
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;
* @return The bytes for collectionType.
*/
@java.lang.Override
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_ = true;
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9 [default = true];
* @return Whether the preserveUnknownFields field is set.
*/
@java.lang.Override
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 [default = true];
* @return The preserveUnknownFields.
*/
@java.lang.Override
public boolean getPreserveUnknownFields() {
return preserveUnknownFields_;
}
public static final int OBJECT_NAME_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
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;
* @return Whether the objectName field is set.
*/
@java.lang.Override
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;
* @return The objectName.
*/
@java.lang.Override
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;
* @return The bytes for objectName.
*/
@java.lang.Override
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_ = 0;
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
* @return Whether the scope field is set.
*/
@java.lang.Override public boolean hasScope() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
* @return The scope.
*/
@java.lang.Override public scalapb.options.Scalapb.ScalaPbOptions.OptionsScope getScope() {
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope result = scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.forNumber(scope_);
return result == null ? scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.FILE : result;
}
public static final int LENSES_FIELD_NUMBER = 12;
private boolean lenses_ = true;
/**
*
* If true, lenses will be generated.
*
*
* optional bool lenses = 12 [default = true];
* @return Whether the lenses field is set.
*/
@java.lang.Override
public boolean hasLenses() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* If true, lenses will be generated.
*
*
* optional bool lenses = 12 [default = true];
* @return The lenses.
*/
@java.lang.Override
public boolean getLenses() {
return lenses_;
}
public static final int RETAIN_SOURCE_CODE_INFO_FIELD_NUMBER = 13;
private boolean retainSourceCodeInfo_ = false;
/**
*
* 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;
* @return Whether the retainSourceCodeInfo field is set.
*/
@java.lang.Override
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;
* @return The retainSourceCodeInfo.
*/
@java.lang.Override
public boolean getRetainSourceCodeInfo() {
return retainSourceCodeInfo_;
}
public static final int MAP_TYPE_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
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;
* @return Whether the mapType field is set.
*/
@java.lang.Override
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;
* @return The mapType.
*/
@java.lang.Override
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;
* @return The bytes for mapType.
*/
@java.lang.Override
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_DEFAULT_VALUES_IN_CONSTRUCTOR_FIELD_NUMBER = 15;
private boolean noDefaultValuesInConstructor_ = false;
/**
*
* If true, no default values will be generated in message constructors.
* This setting can be overridden at the message-level and for individual
* fields.
*
*
* optional bool no_default_values_in_constructor = 15;
* @return Whether the noDefaultValuesInConstructor field is set.
*/
@java.lang.Override
public boolean hasNoDefaultValuesInConstructor() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* If true, no default values will be generated in message constructors.
* This setting can be overridden at the message-level and for individual
* fields.
*
*
* optional bool no_default_values_in_constructor = 15;
* @return The noDefaultValuesInConstructor.
*/
@java.lang.Override
public boolean getNoDefaultValuesInConstructor() {
return noDefaultValuesInConstructor_;
}
public static final int ENUM_VALUE_NAMING_FIELD_NUMBER = 16;
private int enumValueNaming_ = 0;
/**
* optional .scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16;
* @return Whether the enumValueNaming field is set.
*/
@java.lang.Override public boolean hasEnumValueNaming() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16;
* @return The enumValueNaming.
*/
@java.lang.Override public scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming getEnumValueNaming() {
scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming result = scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming.forNumber(enumValueNaming_);
return result == null ? scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming.AS_IN_PROTO : result;
}
public static final int ENUM_STRIP_PREFIX_FIELD_NUMBER = 17;
private boolean enumStripPrefix_ = false;
/**
*
* Indicate if prefix (enum name + optional underscore) should be removed in scala code
* Strip is applied before enum value naming changes.
*
*
* optional bool enum_strip_prefix = 17 [default = false];
* @return Whether the enumStripPrefix field is set.
*/
@java.lang.Override
public boolean hasEnumStripPrefix() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* Indicate if prefix (enum name + optional underscore) should be removed in scala code
* Strip is applied before enum value naming changes.
*
*
* optional bool enum_strip_prefix = 17 [default = false];
* @return The enumStripPrefix.
*/
@java.lang.Override
public boolean getEnumStripPrefix() {
return enumStripPrefix_;
}
public static final int BYTES_TYPE_FIELD_NUMBER = 21;
@SuppressWarnings("serial")
private volatile java.lang.Object bytesType_ = "";
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return Whether the bytesType field is set.
*/
@java.lang.Override
public boolean hasBytesType() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return The bytesType.
*/
@java.lang.Override
public java.lang.String getBytesType() {
java.lang.Object ref = bytesType_;
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()) {
bytesType_ = s;
}
return s;
}
}
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return The bytes for bytesType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBytesTypeBytes() {
java.lang.Object ref = bytesType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bytesType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int JAVA_CONVERSIONS_FIELD_NUMBER = 23;
private boolean javaConversions_ = false;
/**
*
* Enable java conversions for this file.
*
*
* optional bool java_conversions = 23;
* @return Whether the javaConversions field is set.
*/
@java.lang.Override
public boolean hasJavaConversions() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* Enable java conversions for this file.
*
*
* optional bool java_conversions = 23;
* @return The javaConversions.
*/
@java.lang.Override
public boolean getJavaConversions() {
return javaConversions_;
}
public static final int AUX_MESSAGE_OPTIONS_FIELD_NUMBER = 18;
@SuppressWarnings("serial")
private java.util.List auxMessageOptions_;
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
@java.lang.Override
public java.util.List getAuxMessageOptionsList() {
return auxMessageOptions_;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
@java.lang.Override
public java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder>
getAuxMessageOptionsOrBuilderList() {
return auxMessageOptions_;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
@java.lang.Override
public int getAuxMessageOptionsCount() {
return auxMessageOptions_.size();
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions getAuxMessageOptions(int index) {
return auxMessageOptions_.get(index);
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder getAuxMessageOptionsOrBuilder(
int index) {
return auxMessageOptions_.get(index);
}
public static final int AUX_FIELD_OPTIONS_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private java.util.List auxFieldOptions_;
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
@java.lang.Override
public java.util.List getAuxFieldOptionsList() {
return auxFieldOptions_;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
@java.lang.Override
public java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder>
getAuxFieldOptionsOrBuilderList() {
return auxFieldOptions_;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
@java.lang.Override
public int getAuxFieldOptionsCount() {
return auxFieldOptions_.size();
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions getAuxFieldOptions(int index) {
return auxFieldOptions_.get(index);
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder getAuxFieldOptionsOrBuilder(
int index) {
return auxFieldOptions_.get(index);
}
public static final int AUX_ENUM_OPTIONS_FIELD_NUMBER = 20;
@SuppressWarnings("serial")
private java.util.List auxEnumOptions_;
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
@java.lang.Override
public java.util.List getAuxEnumOptionsList() {
return auxEnumOptions_;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
@java.lang.Override
public java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder>
getAuxEnumOptionsOrBuilderList() {
return auxEnumOptions_;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
@java.lang.Override
public int getAuxEnumOptionsCount() {
return auxEnumOptions_.size();
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions getAuxEnumOptions(int index) {
return auxEnumOptions_.get(index);
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder getAuxEnumOptionsOrBuilder(
int index) {
return auxEnumOptions_.get(index);
}
public static final int AUX_ENUM_VALUE_OPTIONS_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private java.util.List auxEnumValueOptions_;
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
@java.lang.Override
public java.util.List getAuxEnumValueOptionsList() {
return auxEnumValueOptions_;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
@java.lang.Override
public java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder>
getAuxEnumValueOptionsOrBuilderList() {
return auxEnumValueOptions_;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
@java.lang.Override
public int getAuxEnumValueOptionsCount() {
return auxEnumValueOptions_.size();
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions getAuxEnumValueOptions(int index) {
return auxEnumValueOptions_.get(index);
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder getAuxEnumValueOptionsOrBuilder(
int index) {
return auxEnumValueOptions_.get(index);
}
public static final int PREPROCESSORS_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList preprocessors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @return A list containing the preprocessors.
*/
public com.google.protobuf.ProtocolStringList
getPreprocessorsList() {
return preprocessors_;
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @return The count of preprocessors.
*/
public int getPreprocessorsCount() {
return preprocessors_.size();
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param index The index of the element to return.
* @return The preprocessors at the given index.
*/
public java.lang.String getPreprocessors(int index) {
return preprocessors_.get(index);
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param index The index of the value to return.
* @return The bytes of the preprocessors at the given index.
*/
public com.google.protobuf.ByteString
getPreprocessorsBytes(int index) {
return preprocessors_.getByteString(index);
}
public static final int FIELD_TRANSFORMATIONS_FIELD_NUMBER = 25;
@SuppressWarnings("serial")
private java.util.List fieldTransformations_;
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
@java.lang.Override
public java.util.List getFieldTransformationsList() {
return fieldTransformations_;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
@java.lang.Override
public java.util.List extends scalapb.options.Scalapb.FieldTransformationOrBuilder>
getFieldTransformationsOrBuilderList() {
return fieldTransformations_;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
@java.lang.Override
public int getFieldTransformationsCount() {
return fieldTransformations_.size();
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
@java.lang.Override
public scalapb.options.Scalapb.FieldTransformation getFieldTransformations(int index) {
return fieldTransformations_.get(index);
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
@java.lang.Override
public scalapb.options.Scalapb.FieldTransformationOrBuilder getFieldTransformationsOrBuilder(
int index) {
return fieldTransformations_.get(index);
}
public static final int IGNORE_ALL_TRANSFORMATIONS_FIELD_NUMBER = 26;
private boolean ignoreAllTransformations_ = false;
/**
*
* Ignores all transformations for this file. This is meant to allow specific files to
* opt out from transformations inherited through package-scoped options.
*
*
* optional bool ignore_all_transformations = 26;
* @return Whether the ignoreAllTransformations field is set.
*/
@java.lang.Override
public boolean hasIgnoreAllTransformations() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* Ignores all transformations for this file. This is meant to allow specific files to
* opt out from transformations inherited through package-scoped options.
*
*
* optional bool ignore_all_transformations = 26;
* @return The ignoreAllTransformations.
*/
@java.lang.Override
public boolean getIgnoreAllTransformations() {
return ignoreAllTransformations_;
}
public static final int GETTERS_FIELD_NUMBER = 27;
private boolean getters_ = true;
/**
*
* If true, getters will be generated.
*
*
* optional bool getters = 27 [default = true];
* @return Whether the getters field is set.
*/
@java.lang.Override
public boolean hasGetters() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* If true, getters will be generated.
*
*
* optional bool getters = 27 [default = true];
* @return The getters.
*/
@java.lang.Override
public boolean getGetters() {
return getters_;
}
public static final int SCALA3_SOURCES_FIELD_NUMBER = 28;
private boolean scala3Sources_ = false;
/**
*
* Generate sources that are compatible with Scala 3
*
*
* optional bool scala3_sources = 28;
* @return Whether the scala3Sources field is set.
*/
@java.lang.Override
public boolean hasScala3Sources() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* Generate sources that are compatible with Scala 3
*
*
* optional bool scala3_sources = 28;
* @return The scala3Sources.
*/
@java.lang.Override
public boolean getScala3Sources() {
return scala3Sources_;
}
public static final int PUBLIC_CONSTRUCTOR_PARAMETERS_FIELD_NUMBER = 29;
private boolean publicConstructorParameters_ = false;
/**
*
* Makes constructor parameters public, including defaults and TypeMappers.
*
*
* optional bool public_constructor_parameters = 29;
* @return Whether the publicConstructorParameters field is set.
*/
@java.lang.Override
public boolean hasPublicConstructorParameters() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
* Makes constructor parameters public, including defaults and TypeMappers.
*
*
* optional bool public_constructor_parameters = 29;
* @return The publicConstructorParameters.
*/
@java.lang.Override
public boolean getPublicConstructorParameters() {
return publicConstructorParameters_;
}
public static final int TEST_ONLY_NO_JAVA_CONVERSIONS_FIELD_NUMBER = 999;
private boolean testOnlyNoJavaConversions_ = false;
/**
*
* For use in tests only. Inhibit Java conversions even when when generator parameters
* request for it.
*
*
* optional bool test_only_no_java_conversions = 999;
* @return Whether the testOnlyNoJavaConversions field is set.
*/
@java.lang.Override
public boolean hasTestOnlyNoJavaConversions() {
return ((bitField0_ & 0x00200000) != 0);
}
/**
*
* For use in tests only. Inhibit Java conversions even when when generator parameters
* request for it.
*
*
* optional bool test_only_no_java_conversions = 999;
* @return The testOnlyNoJavaConversions.
*/
@java.lang.Override
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;
for (int i = 0; i < getAuxMessageOptionsCount(); i++) {
if (!getAuxMessageOptions(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getAuxFieldOptionsCount(); i++) {
if (!getAuxFieldOptions(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getAuxEnumOptionsCount(); i++) {
if (!getAuxEnumOptions(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getAuxEnumValueOptionsCount(); i++) {
if (!getAuxEnumValueOptions(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getFieldTransformationsCount(); i++) {
if (!getFieldTransformations(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionSerializer
extensionWriter = newExtensionSerializer();
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, packageName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, flatPackage_);
}
for (int i = 0; i < import_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, import_.getRaw(i));
}
for (int i = 0; i < preamble_.size(); i++) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 8, collectionType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(9, preserveUnknownFields_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.writeString(output, 14, mapType_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeBool(15, noDefaultValuesInConstructor_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeEnum(16, enumValueNaming_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeBool(17, enumStripPrefix_);
}
for (int i = 0; i < auxMessageOptions_.size(); i++) {
output.writeMessage(18, auxMessageOptions_.get(i));
}
for (int i = 0; i < auxFieldOptions_.size(); i++) {
output.writeMessage(19, auxFieldOptions_.get(i));
}
for (int i = 0; i < auxEnumOptions_.size(); i++) {
output.writeMessage(20, auxEnumOptions_.get(i));
}
if (((bitField0_ & 0x00008000) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 21, bytesType_);
}
for (int i = 0; i < auxEnumValueOptions_.size(); i++) {
output.writeMessage(22, auxEnumValueOptions_.get(i));
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeBool(23, javaConversions_);
}
for (int i = 0; i < preprocessors_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 24, preprocessors_.getRaw(i));
}
for (int i = 0; i < fieldTransformations_.size(); i++) {
output.writeMessage(25, fieldTransformations_.get(i));
}
if (((bitField0_ & 0x00020000) != 0)) {
output.writeBool(26, ignoreAllTransformations_);
}
if (((bitField0_ & 0x00040000) != 0)) {
output.writeBool(27, getters_);
}
if (((bitField0_ & 0x00080000) != 0)) {
output.writeBool(28, scala3Sources_);
}
if (((bitField0_ & 0x00100000) != 0)) {
output.writeBool(29, publicConstructorParameters_);
}
if (((bitField0_ & 0x00200000) != 0)) {
output.writeBool(999, testOnlyNoJavaConversions_);
}
extensionWriter.writeUntil(536870912, output);
getUnknownFields().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.GeneratedMessage.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.GeneratedMessage.computeStringSize(8, collectionType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, preserveUnknownFields_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessage.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.GeneratedMessage.computeStringSize(14, mapType_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(15, noDefaultValuesInConstructor_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(16, enumValueNaming_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(17, enumStripPrefix_);
}
for (int i = 0; i < auxMessageOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, auxMessageOptions_.get(i));
}
for (int i = 0; i < auxFieldOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(19, auxFieldOptions_.get(i));
}
for (int i = 0; i < auxEnumOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, auxEnumOptions_.get(i));
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(21, bytesType_);
}
for (int i = 0; i < auxEnumValueOptions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(22, auxEnumValueOptions_.get(i));
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(23, javaConversions_);
}
{
int dataSize = 0;
for (int i = 0; i < preprocessors_.size(); i++) {
dataSize += computeStringSizeNoTag(preprocessors_.getRaw(i));
}
size += dataSize;
size += 2 * getPreprocessorsList().size();
}
for (int i = 0; i < fieldTransformations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, fieldTransformations_.get(i));
}
if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(26, ignoreAllTransformations_);
}
if (((bitField0_ & 0x00040000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(27, getters_);
}
if (((bitField0_ & 0x00080000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(28, scala3Sources_);
}
if (((bitField0_ & 0x00100000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(29, publicConstructorParameters_);
}
if (((bitField0_ & 0x00200000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(999, testOnlyNoJavaConversions_);
}
size += extensionsSerializedSize();
size += getUnknownFields().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 (hasNoDefaultValuesInConstructor() != other.hasNoDefaultValuesInConstructor()) return false;
if (hasNoDefaultValuesInConstructor()) {
if (getNoDefaultValuesInConstructor()
!= other.getNoDefaultValuesInConstructor()) return false;
}
if (hasEnumValueNaming() != other.hasEnumValueNaming()) return false;
if (hasEnumValueNaming()) {
if (enumValueNaming_ != other.enumValueNaming_) return false;
}
if (hasEnumStripPrefix() != other.hasEnumStripPrefix()) return false;
if (hasEnumStripPrefix()) {
if (getEnumStripPrefix()
!= other.getEnumStripPrefix()) return false;
}
if (hasBytesType() != other.hasBytesType()) return false;
if (hasBytesType()) {
if (!getBytesType()
.equals(other.getBytesType())) return false;
}
if (hasJavaConversions() != other.hasJavaConversions()) return false;
if (hasJavaConversions()) {
if (getJavaConversions()
!= other.getJavaConversions()) return false;
}
if (!getAuxMessageOptionsList()
.equals(other.getAuxMessageOptionsList())) return false;
if (!getAuxFieldOptionsList()
.equals(other.getAuxFieldOptionsList())) return false;
if (!getAuxEnumOptionsList()
.equals(other.getAuxEnumOptionsList())) return false;
if (!getAuxEnumValueOptionsList()
.equals(other.getAuxEnumValueOptionsList())) return false;
if (!getPreprocessorsList()
.equals(other.getPreprocessorsList())) return false;
if (!getFieldTransformationsList()
.equals(other.getFieldTransformationsList())) return false;
if (hasIgnoreAllTransformations() != other.hasIgnoreAllTransformations()) return false;
if (hasIgnoreAllTransformations()) {
if (getIgnoreAllTransformations()
!= other.getIgnoreAllTransformations()) return false;
}
if (hasGetters() != other.hasGetters()) return false;
if (hasGetters()) {
if (getGetters()
!= other.getGetters()) return false;
}
if (hasScala3Sources() != other.hasScala3Sources()) return false;
if (hasScala3Sources()) {
if (getScala3Sources()
!= other.getScala3Sources()) return false;
}
if (hasPublicConstructorParameters() != other.hasPublicConstructorParameters()) return false;
if (hasPublicConstructorParameters()) {
if (getPublicConstructorParameters()
!= other.getPublicConstructorParameters()) return false;
}
if (hasTestOnlyNoJavaConversions() != other.hasTestOnlyNoJavaConversions()) return false;
if (hasTestOnlyNoJavaConversions()) {
if (getTestOnlyNoJavaConversions()
!= other.getTestOnlyNoJavaConversions()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
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 (hasNoDefaultValuesInConstructor()) {
hash = (37 * hash) + NO_DEFAULT_VALUES_IN_CONSTRUCTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoDefaultValuesInConstructor());
}
if (hasEnumValueNaming()) {
hash = (37 * hash) + ENUM_VALUE_NAMING_FIELD_NUMBER;
hash = (53 * hash) + enumValueNaming_;
}
if (hasEnumStripPrefix()) {
hash = (37 * hash) + ENUM_STRIP_PREFIX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getEnumStripPrefix());
}
if (hasBytesType()) {
hash = (37 * hash) + BYTES_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getBytesType().hashCode();
}
if (hasJavaConversions()) {
hash = (37 * hash) + JAVA_CONVERSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getJavaConversions());
}
if (getAuxMessageOptionsCount() > 0) {
hash = (37 * hash) + AUX_MESSAGE_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getAuxMessageOptionsList().hashCode();
}
if (getAuxFieldOptionsCount() > 0) {
hash = (37 * hash) + AUX_FIELD_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getAuxFieldOptionsList().hashCode();
}
if (getAuxEnumOptionsCount() > 0) {
hash = (37 * hash) + AUX_ENUM_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getAuxEnumOptionsList().hashCode();
}
if (getAuxEnumValueOptionsCount() > 0) {
hash = (37 * hash) + AUX_ENUM_VALUE_OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getAuxEnumValueOptionsList().hashCode();
}
if (getPreprocessorsCount() > 0) {
hash = (37 * hash) + PREPROCESSORS_FIELD_NUMBER;
hash = (53 * hash) + getPreprocessorsList().hashCode();
}
if (getFieldTransformationsCount() > 0) {
hash = (37 * hash) + FIELD_TRANSFORMATIONS_FIELD_NUMBER;
hash = (53 * hash) + getFieldTransformationsList().hashCode();
}
if (hasIgnoreAllTransformations()) {
hash = (37 * hash) + IGNORE_ALL_TRANSFORMATIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIgnoreAllTransformations());
}
if (hasGetters()) {
hash = (37 * hash) + GETTERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getGetters());
}
if (hasScala3Sources()) {
hash = (37 * hash) + SCALA3_SOURCES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getScala3Sources());
}
if (hasPublicConstructorParameters()) {
hash = (37 * hash) + PUBLIC_CONSTRUCTOR_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPublicConstructorParameters());
}
if (hasTestOnlyNoJavaConversions()) {
hash = (37 * hash) + TEST_ONLY_NO_JAVA_CONVERSIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTestOnlyNoJavaConversions());
}
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.ScalaPbOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code scalapb.ScalaPbOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
scalapb.options.Scalapb.ScalaPbOptions, 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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
packageName_ = "";
flatPackage_ = false;
import_ =
com.google.protobuf.LazyStringArrayList.emptyList();
preamble_ =
com.google.protobuf.LazyStringArrayList.emptyList();
singleFile_ = false;
noPrimitiveWrappers_ = false;
primitiveWrappers_ = false;
collectionType_ = "";
preserveUnknownFields_ = true;
objectName_ = "";
scope_ = 0;
lenses_ = true;
retainSourceCodeInfo_ = false;
mapType_ = "";
noDefaultValuesInConstructor_ = false;
enumValueNaming_ = 0;
enumStripPrefix_ = false;
bytesType_ = "";
javaConversions_ = false;
if (auxMessageOptionsBuilder_ == null) {
auxMessageOptions_ = java.util.Collections.emptyList();
} else {
auxMessageOptions_ = null;
auxMessageOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00080000);
if (auxFieldOptionsBuilder_ == null) {
auxFieldOptions_ = java.util.Collections.emptyList();
} else {
auxFieldOptions_ = null;
auxFieldOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00100000);
if (auxEnumOptionsBuilder_ == null) {
auxEnumOptions_ = java.util.Collections.emptyList();
} else {
auxEnumOptions_ = null;
auxEnumOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00200000);
if (auxEnumValueOptionsBuilder_ == null) {
auxEnumValueOptions_ = java.util.Collections.emptyList();
} else {
auxEnumValueOptions_ = null;
auxEnumValueOptionsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00400000);
preprocessors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
if (fieldTransformationsBuilder_ == null) {
fieldTransformations_ = java.util.Collections.emptyList();
} else {
fieldTransformations_ = null;
fieldTransformationsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x01000000);
ignoreAllTransformations_ = false;
getters_ = true;
scala3Sources_ = false;
publicConstructorParameters_ = false;
testOnlyNoJavaConversions_ = false;
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);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(scalapb.options.Scalapb.ScalaPbOptions result) {
if (auxMessageOptionsBuilder_ == null) {
if (((bitField0_ & 0x00080000) != 0)) {
auxMessageOptions_ = java.util.Collections.unmodifiableList(auxMessageOptions_);
bitField0_ = (bitField0_ & ~0x00080000);
}
result.auxMessageOptions_ = auxMessageOptions_;
} else {
result.auxMessageOptions_ = auxMessageOptionsBuilder_.build();
}
if (auxFieldOptionsBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0)) {
auxFieldOptions_ = java.util.Collections.unmodifiableList(auxFieldOptions_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.auxFieldOptions_ = auxFieldOptions_;
} else {
result.auxFieldOptions_ = auxFieldOptionsBuilder_.build();
}
if (auxEnumOptionsBuilder_ == null) {
if (((bitField0_ & 0x00200000) != 0)) {
auxEnumOptions_ = java.util.Collections.unmodifiableList(auxEnumOptions_);
bitField0_ = (bitField0_ & ~0x00200000);
}
result.auxEnumOptions_ = auxEnumOptions_;
} else {
result.auxEnumOptions_ = auxEnumOptionsBuilder_.build();
}
if (auxEnumValueOptionsBuilder_ == null) {
if (((bitField0_ & 0x00400000) != 0)) {
auxEnumValueOptions_ = java.util.Collections.unmodifiableList(auxEnumValueOptions_);
bitField0_ = (bitField0_ & ~0x00400000);
}
result.auxEnumValueOptions_ = auxEnumValueOptions_;
} else {
result.auxEnumValueOptions_ = auxEnumValueOptionsBuilder_.build();
}
if (fieldTransformationsBuilder_ == null) {
if (((bitField0_ & 0x01000000) != 0)) {
fieldTransformations_ = java.util.Collections.unmodifiableList(fieldTransformations_);
bitField0_ = (bitField0_ & ~0x01000000);
}
result.fieldTransformations_ = fieldTransformations_;
} else {
result.fieldTransformations_ = fieldTransformationsBuilder_.build();
}
}
private void buildPartial0(scalapb.options.Scalapb.ScalaPbOptions result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.packageName_ = packageName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.flatPackage_ = flatPackage_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
import_.makeImmutable();
result.import_ = import_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
preamble_.makeImmutable();
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)) {
result.collectionType_ = collectionType_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.preserveUnknownFields_ = preserveUnknownFields_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.objectName_ = objectName_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.scope_ = scope_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.lenses_ = lenses_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.retainSourceCodeInfo_ = retainSourceCodeInfo_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.mapType_ = mapType_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.noDefaultValuesInConstructor_ = noDefaultValuesInConstructor_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.enumValueNaming_ = enumValueNaming_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.enumStripPrefix_ = enumStripPrefix_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.bytesType_ = bytesType_;
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.javaConversions_ = javaConversions_;
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00800000) != 0)) {
preprocessors_.makeImmutable();
result.preprocessors_ = preprocessors_;
}
if (((from_bitField0_ & 0x02000000) != 0)) {
result.ignoreAllTransformations_ = ignoreAllTransformations_;
to_bitField0_ |= 0x00020000;
}
if (((from_bitField0_ & 0x04000000) != 0)) {
result.getters_ = getters_;
to_bitField0_ |= 0x00040000;
}
if (((from_bitField0_ & 0x08000000) != 0)) {
result.scala3Sources_ = scala3Sources_;
to_bitField0_ |= 0x00080000;
}
if (((from_bitField0_ & 0x10000000) != 0)) {
result.publicConstructorParameters_ = publicConstructorParameters_;
to_bitField0_ |= 0x00100000;
}
if (((from_bitField0_ & 0x20000000) != 0)) {
result.testOnlyNoJavaConversions_ = testOnlyNoJavaConversions_;
to_bitField0_ |= 0x00200000;
}
result.bitField0_ |= to_bitField0_;
}
@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()) {
packageName_ = other.packageName_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasFlatPackage()) {
setFlatPackage(other.getFlatPackage());
}
if (!other.import_.isEmpty()) {
if (import_.isEmpty()) {
import_ = other.import_;
bitField0_ |= 0x00000004;
} else {
ensureImportIsMutable();
import_.addAll(other.import_);
}
onChanged();
}
if (!other.preamble_.isEmpty()) {
if (preamble_.isEmpty()) {
preamble_ = other.preamble_;
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()) {
collectionType_ = other.collectionType_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasPreserveUnknownFields()) {
setPreserveUnknownFields(other.getPreserveUnknownFields());
}
if (other.hasObjectName()) {
objectName_ = other.objectName_;
bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasScope()) {
setScope(other.getScope());
}
if (other.hasLenses()) {
setLenses(other.getLenses());
}
if (other.hasRetainSourceCodeInfo()) {
setRetainSourceCodeInfo(other.getRetainSourceCodeInfo());
}
if (other.hasMapType()) {
mapType_ = other.mapType_;
bitField0_ |= 0x00002000;
onChanged();
}
if (other.hasNoDefaultValuesInConstructor()) {
setNoDefaultValuesInConstructor(other.getNoDefaultValuesInConstructor());
}
if (other.hasEnumValueNaming()) {
setEnumValueNaming(other.getEnumValueNaming());
}
if (other.hasEnumStripPrefix()) {
setEnumStripPrefix(other.getEnumStripPrefix());
}
if (other.hasBytesType()) {
bytesType_ = other.bytesType_;
bitField0_ |= 0x00020000;
onChanged();
}
if (other.hasJavaConversions()) {
setJavaConversions(other.getJavaConversions());
}
if (auxMessageOptionsBuilder_ == null) {
if (!other.auxMessageOptions_.isEmpty()) {
if (auxMessageOptions_.isEmpty()) {
auxMessageOptions_ = other.auxMessageOptions_;
bitField0_ = (bitField0_ & ~0x00080000);
} else {
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.addAll(other.auxMessageOptions_);
}
onChanged();
}
} else {
if (!other.auxMessageOptions_.isEmpty()) {
if (auxMessageOptionsBuilder_.isEmpty()) {
auxMessageOptionsBuilder_.dispose();
auxMessageOptionsBuilder_ = null;
auxMessageOptions_ = other.auxMessageOptions_;
bitField0_ = (bitField0_ & ~0x00080000);
auxMessageOptionsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAuxMessageOptionsFieldBuilder() : null;
} else {
auxMessageOptionsBuilder_.addAllMessages(other.auxMessageOptions_);
}
}
}
if (auxFieldOptionsBuilder_ == null) {
if (!other.auxFieldOptions_.isEmpty()) {
if (auxFieldOptions_.isEmpty()) {
auxFieldOptions_ = other.auxFieldOptions_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.addAll(other.auxFieldOptions_);
}
onChanged();
}
} else {
if (!other.auxFieldOptions_.isEmpty()) {
if (auxFieldOptionsBuilder_.isEmpty()) {
auxFieldOptionsBuilder_.dispose();
auxFieldOptionsBuilder_ = null;
auxFieldOptions_ = other.auxFieldOptions_;
bitField0_ = (bitField0_ & ~0x00100000);
auxFieldOptionsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAuxFieldOptionsFieldBuilder() : null;
} else {
auxFieldOptionsBuilder_.addAllMessages(other.auxFieldOptions_);
}
}
}
if (auxEnumOptionsBuilder_ == null) {
if (!other.auxEnumOptions_.isEmpty()) {
if (auxEnumOptions_.isEmpty()) {
auxEnumOptions_ = other.auxEnumOptions_;
bitField0_ = (bitField0_ & ~0x00200000);
} else {
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.addAll(other.auxEnumOptions_);
}
onChanged();
}
} else {
if (!other.auxEnumOptions_.isEmpty()) {
if (auxEnumOptionsBuilder_.isEmpty()) {
auxEnumOptionsBuilder_.dispose();
auxEnumOptionsBuilder_ = null;
auxEnumOptions_ = other.auxEnumOptions_;
bitField0_ = (bitField0_ & ~0x00200000);
auxEnumOptionsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAuxEnumOptionsFieldBuilder() : null;
} else {
auxEnumOptionsBuilder_.addAllMessages(other.auxEnumOptions_);
}
}
}
if (auxEnumValueOptionsBuilder_ == null) {
if (!other.auxEnumValueOptions_.isEmpty()) {
if (auxEnumValueOptions_.isEmpty()) {
auxEnumValueOptions_ = other.auxEnumValueOptions_;
bitField0_ = (bitField0_ & ~0x00400000);
} else {
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.addAll(other.auxEnumValueOptions_);
}
onChanged();
}
} else {
if (!other.auxEnumValueOptions_.isEmpty()) {
if (auxEnumValueOptionsBuilder_.isEmpty()) {
auxEnumValueOptionsBuilder_.dispose();
auxEnumValueOptionsBuilder_ = null;
auxEnumValueOptions_ = other.auxEnumValueOptions_;
bitField0_ = (bitField0_ & ~0x00400000);
auxEnumValueOptionsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAuxEnumValueOptionsFieldBuilder() : null;
} else {
auxEnumValueOptionsBuilder_.addAllMessages(other.auxEnumValueOptions_);
}
}
}
if (!other.preprocessors_.isEmpty()) {
if (preprocessors_.isEmpty()) {
preprocessors_ = other.preprocessors_;
bitField0_ |= 0x00800000;
} else {
ensurePreprocessorsIsMutable();
preprocessors_.addAll(other.preprocessors_);
}
onChanged();
}
if (fieldTransformationsBuilder_ == null) {
if (!other.fieldTransformations_.isEmpty()) {
if (fieldTransformations_.isEmpty()) {
fieldTransformations_ = other.fieldTransformations_;
bitField0_ = (bitField0_ & ~0x01000000);
} else {
ensureFieldTransformationsIsMutable();
fieldTransformations_.addAll(other.fieldTransformations_);
}
onChanged();
}
} else {
if (!other.fieldTransformations_.isEmpty()) {
if (fieldTransformationsBuilder_.isEmpty()) {
fieldTransformationsBuilder_.dispose();
fieldTransformationsBuilder_ = null;
fieldTransformations_ = other.fieldTransformations_;
bitField0_ = (bitField0_ & ~0x01000000);
fieldTransformationsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getFieldTransformationsFieldBuilder() : null;
} else {
fieldTransformationsBuilder_.addAllMessages(other.fieldTransformations_);
}
}
}
if (other.hasIgnoreAllTransformations()) {
setIgnoreAllTransformations(other.getIgnoreAllTransformations());
}
if (other.hasGetters()) {
setGetters(other.getGetters());
}
if (other.hasScala3Sources()) {
setScala3Sources(other.getScala3Sources());
}
if (other.hasPublicConstructorParameters()) {
setPublicConstructorParameters(other.getPublicConstructorParameters());
}
if (other.hasTestOnlyNoJavaConversions()) {
setTestOnlyNoJavaConversions(other.getTestOnlyNoJavaConversions());
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getAuxMessageOptionsCount(); i++) {
if (!getAuxMessageOptions(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getAuxFieldOptionsCount(); i++) {
if (!getAuxFieldOptions(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getAuxEnumOptionsCount(); i++) {
if (!getAuxEnumOptions(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getAuxEnumValueOptionsCount(); i++) {
if (!getAuxEnumValueOptions(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getFieldTransformationsCount(); i++) {
if (!getFieldTransformations(i).isInitialized()) {
return false;
}
}
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
packageName_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
flatPackage_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureImportIsMutable();
import_.add(bs);
break;
} // case 26
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
ensurePreambleIsMutable();
preamble_.add(bs);
break;
} // case 34
case 40: {
singleFile_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
primitiveWrappers_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 48
case 56: {
noPrimitiveWrappers_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 56
case 66: {
collectionType_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 66
case 72: {
preserveUnknownFields_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
objectName_ = input.readBytes();
bitField0_ |= 0x00000200;
break;
} // case 82
case 88: {
int tmpRaw = input.readEnum();
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope tmpValue =
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(11, tmpRaw);
} else {
scope_ = tmpRaw;
bitField0_ |= 0x00000400;
}
break;
} // case 88
case 96: {
lenses_ = input.readBool();
bitField0_ |= 0x00000800;
break;
} // case 96
case 104: {
retainSourceCodeInfo_ = input.readBool();
bitField0_ |= 0x00001000;
break;
} // case 104
case 114: {
mapType_ = input.readBytes();
bitField0_ |= 0x00002000;
break;
} // case 114
case 120: {
noDefaultValuesInConstructor_ = input.readBool();
bitField0_ |= 0x00004000;
break;
} // case 120
case 128: {
int tmpRaw = input.readEnum();
scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming tmpValue =
scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(16, tmpRaw);
} else {
enumValueNaming_ = tmpRaw;
bitField0_ |= 0x00008000;
}
break;
} // case 128
case 136: {
enumStripPrefix_ = input.readBool();
bitField0_ |= 0x00010000;
break;
} // case 136
case 146: {
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions m =
input.readMessage(
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.parser(),
extensionRegistry);
if (auxMessageOptionsBuilder_ == null) {
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.add(m);
} else {
auxMessageOptionsBuilder_.addMessage(m);
}
break;
} // case 146
case 154: {
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions m =
input.readMessage(
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.parser(),
extensionRegistry);
if (auxFieldOptionsBuilder_ == null) {
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.add(m);
} else {
auxFieldOptionsBuilder_.addMessage(m);
}
break;
} // case 154
case 162: {
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions m =
input.readMessage(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.parser(),
extensionRegistry);
if (auxEnumOptionsBuilder_ == null) {
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.add(m);
} else {
auxEnumOptionsBuilder_.addMessage(m);
}
break;
} // case 162
case 170: {
bytesType_ = input.readBytes();
bitField0_ |= 0x00020000;
break;
} // case 170
case 178: {
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions m =
input.readMessage(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.parser(),
extensionRegistry);
if (auxEnumValueOptionsBuilder_ == null) {
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.add(m);
} else {
auxEnumValueOptionsBuilder_.addMessage(m);
}
break;
} // case 178
case 184: {
javaConversions_ = input.readBool();
bitField0_ |= 0x00040000;
break;
} // case 184
case 194: {
com.google.protobuf.ByteString bs = input.readBytes();
ensurePreprocessorsIsMutable();
preprocessors_.add(bs);
break;
} // case 194
case 202: {
scalapb.options.Scalapb.FieldTransformation m =
input.readMessage(
scalapb.options.Scalapb.FieldTransformation.parser(),
extensionRegistry);
if (fieldTransformationsBuilder_ == null) {
ensureFieldTransformationsIsMutable();
fieldTransformations_.add(m);
} else {
fieldTransformationsBuilder_.addMessage(m);
}
break;
} // case 202
case 208: {
ignoreAllTransformations_ = input.readBool();
bitField0_ |= 0x02000000;
break;
} // case 208
case 216: {
getters_ = input.readBool();
bitField0_ |= 0x04000000;
break;
} // case 216
case 224: {
scala3Sources_ = input.readBool();
bitField0_ |= 0x08000000;
break;
} // case 224
case 232: {
publicConstructorParameters_ = input.readBool();
bitField0_ |= 0x10000000;
break;
} // case 232
case 7992: {
testOnlyNoJavaConversions_ = input.readBool();
bitField0_ |= 0x20000000;
break;
} // case 7992
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
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;
* @return Whether the packageName field is set.
*/
public boolean hasPackageName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If set then it overrides the java_package and package.
*
*
* optional string package_name = 1;
* @return The packageName.
*/
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;
* @return The bytes for packageName.
*/
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;
* @param value The packageName to set.
* @return This builder for chaining.
*/
public Builder setPackageName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
packageName_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* If set then it overrides the java_package and package.
*
*
* optional string package_name = 1;
* @return This builder for chaining.
*/
public Builder clearPackageName() {
packageName_ = getDefaultInstance().getPackageName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* If set then it overrides the java_package and package.
*
*
* optional string package_name = 1;
* @param value The bytes for packageName to set.
* @return This builder for chaining.
*/
public Builder setPackageNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
packageName_ = value;
bitField0_ |= 0x00000001;
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;
* @return Whether the flatPackage field is set.
*/
@java.lang.Override
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;
* @return The flatPackage.
*/
@java.lang.Override
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;
* @param value The flatPackage to set.
* @return This builder for chaining.
*/
public Builder setFlatPackage(boolean value) {
flatPackage_ = value;
bitField0_ |= 0x00000002;
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;
* @return This builder for chaining.
*/
public Builder clearFlatPackage() {
bitField0_ = (bitField0_ & ~0x00000002);
flatPackage_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList import_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureImportIsMutable() {
if (!import_.isModifiable()) {
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;
* @return A list containing the import.
*/
public com.google.protobuf.ProtocolStringList
getImportList() {
import_.makeImmutable();
return import_;
}
/**
*
* Adds the following imports at the top of the file (this is meant
* to provide implicit TypeMappers)
*
*
* repeated string import = 3;
* @return The count of import.
*/
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;
* @param index The index of the element to return.
* @return The import at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the import at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The import to set.
* @return This builder for chaining.
*/
public Builder setImport(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureImportIsMutable();
import_.set(index, value);
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;
* @param value The import to add.
* @return This builder for chaining.
*/
public Builder addImport(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureImportIsMutable();
import_.add(value);
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;
* @param values The import to add.
* @return This builder for chaining.
*/
public Builder addAllImport(
java.lang.Iterable values) {
ensureImportIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, import_);
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;
* @return This builder for chaining.
*/
public Builder clearImport() {
import_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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;
* @param value The bytes of the import to add.
* @return This builder for chaining.
*/
public Builder addImportBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureImportIsMutable();
import_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList preamble_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePreambleIsMutable() {
if (!preamble_.isModifiable()) {
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;
* @return A list containing the preamble.
*/
public com.google.protobuf.ProtocolStringList
getPreambleList() {
preamble_.makeImmutable();
return preamble_;
}
/**
*
* Text to add to the generated scala file. This can be used only
* when single_file is true.
*
*
* repeated string preamble = 4;
* @return The count of preamble.
*/
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;
* @param index The index of the element to return.
* @return The preamble at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the preamble at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The preamble to set.
* @return This builder for chaining.
*/
public Builder setPreamble(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreambleIsMutable();
preamble_.set(index, value);
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;
* @param value The preamble to add.
* @return This builder for chaining.
*/
public Builder addPreamble(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreambleIsMutable();
preamble_.add(value);
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;
* @param values The preamble to add.
* @return This builder for chaining.
*/
public Builder addAllPreamble(
java.lang.Iterable values) {
ensurePreambleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preamble_);
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;
* @return This builder for chaining.
*/
public Builder clearPreamble() {
preamble_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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;
* @param value The bytes of the preamble to add.
* @return This builder for chaining.
*/
public Builder addPreambleBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePreambleIsMutable();
preamble_.add(value);
bitField0_ |= 0x00000008;
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;
* @return Whether the singleFile field is set.
*/
@java.lang.Override
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;
* @return The singleFile.
*/
@java.lang.Override
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;
* @param value The singleFile to set.
* @return This builder for chaining.
*/
public Builder setSingleFile(boolean value) {
singleFile_ = value;
bitField0_ |= 0x00000010;
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;
* @return This builder for chaining.
*/
public Builder clearSingleFile() {
bitField0_ = (bitField0_ & ~0x00000010);
singleFile_ = false;
onChanged();
return this;
}
private boolean noPrimitiveWrappers_ ;
/**
*
* By default, wrappers defined at
* https://github.com/protocolbuffers/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;
* @return Whether the noPrimitiveWrappers field is set.
*/
@java.lang.Override
public boolean hasNoPrimitiveWrappers() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* By default, wrappers defined at
* https://github.com/protocolbuffers/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;
* @return The noPrimitiveWrappers.
*/
@java.lang.Override
public boolean getNoPrimitiveWrappers() {
return noPrimitiveWrappers_;
}
/**
*
* By default, wrappers defined at
* https://github.com/protocolbuffers/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;
* @param value The noPrimitiveWrappers to set.
* @return This builder for chaining.
*/
public Builder setNoPrimitiveWrappers(boolean value) {
noPrimitiveWrappers_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* By default, wrappers defined at
* https://github.com/protocolbuffers/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;
* @return This builder for chaining.
*/
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;
* @return Whether the primitiveWrappers field is set.
*/
@java.lang.Override
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;
* @return The primitiveWrappers.
*/
@java.lang.Override
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;
* @param value The primitiveWrappers to set.
* @return This builder for chaining.
*/
public Builder setPrimitiveWrappers(boolean value) {
primitiveWrappers_ = value;
bitField0_ |= 0x00000040;
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;
* @return This builder for chaining.
*/
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;
* @return Whether the collectionType field is set.
*/
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;
* @return The collectionType.
*/
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;
* @return The bytes for collectionType.
*/
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;
* @param value The collectionType to set.
* @return This builder for chaining.
*/
public Builder setCollectionType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
collectionType_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Scala type to be used for repeated fields. If unspecified,
* `scala.collection.Seq` will be used.
*
*
* optional string collection_type = 8;
* @return This builder for chaining.
*/
public Builder clearCollectionType() {
collectionType_ = getDefaultInstance().getCollectionType();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
*
* Scala type to be used for repeated fields. If unspecified,
* `scala.collection.Seq` will be used.
*
*
* optional string collection_type = 8;
* @param value The bytes for collectionType to set.
* @return This builder for chaining.
*/
public Builder setCollectionTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
collectionType_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private boolean preserveUnknownFields_ = true;
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9 [default = true];
* @return Whether the preserveUnknownFields field is set.
*/
@java.lang.Override
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 [default = true];
* @return The preserveUnknownFields.
*/
@java.lang.Override
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 [default = true];
* @param value The preserveUnknownFields to set.
* @return This builder for chaining.
*/
public Builder setPreserveUnknownFields(boolean value) {
preserveUnknownFields_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* If set to true, all generated messages in this file will preserve unknown
* fields.
*
*
* optional bool preserve_unknown_fields = 9 [default = true];
* @return This builder for chaining.
*/
public Builder clearPreserveUnknownFields() {
bitField0_ = (bitField0_ & ~0x00000100);
preserveUnknownFields_ = true;
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;
* @return Whether the objectName field is set.
*/
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;
* @return The objectName.
*/
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;
* @return The bytes for objectName.
*/
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;
* @param value The objectName to set.
* @return This builder for chaining.
*/
public Builder setObjectName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
objectName_ = value;
bitField0_ |= 0x00000200;
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;
* @return This builder for chaining.
*/
public Builder clearObjectName() {
objectName_ = getDefaultInstance().getObjectName();
bitField0_ = (bitField0_ & ~0x00000200);
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;
* @param value The bytes for objectName to set.
* @return This builder for chaining.
*/
public Builder setObjectNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
objectName_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private int scope_ = 0;
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
* @return Whether the scope field is set.
*/
@java.lang.Override public boolean hasScope() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
* @return The scope.
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.OptionsScope getScope() {
scalapb.options.Scalapb.ScalaPbOptions.OptionsScope result = scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.forNumber(scope_);
return result == null ? scalapb.options.Scalapb.ScalaPbOptions.OptionsScope.FILE : result;
}
/**
*
* Experimental: scope to apply the given options.
*
*
* optional .scalapb.ScalaPbOptions.OptionsScope scope = 11;
* @param value The scope to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearScope() {
bitField0_ = (bitField0_ & ~0x00000400);
scope_ = 0;
onChanged();
return this;
}
private boolean lenses_ = true;
/**
*
* If true, lenses will be generated.
*
*
* optional bool lenses = 12 [default = true];
* @return Whether the lenses field is set.
*/
@java.lang.Override
public boolean hasLenses() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* If true, lenses will be generated.
*
*
* optional bool lenses = 12 [default = true];
* @return The lenses.
*/
@java.lang.Override
public boolean getLenses() {
return lenses_;
}
/**
*
* If true, lenses will be generated.
*
*
* optional bool lenses = 12 [default = true];
* @param value The lenses to set.
* @return This builder for chaining.
*/
public Builder setLenses(boolean value) {
lenses_ = value;
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* If true, lenses will be generated.
*
*
* optional bool lenses = 12 [default = true];
* @return This builder for chaining.
*/
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;
* @return Whether the retainSourceCodeInfo field is set.
*/
@java.lang.Override
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;
* @return The retainSourceCodeInfo.
*/
@java.lang.Override
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;
* @param value The retainSourceCodeInfo to set.
* @return This builder for chaining.
*/
public Builder setRetainSourceCodeInfo(boolean value) {
retainSourceCodeInfo_ = value;
bitField0_ |= 0x00001000;
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;
* @return This builder for chaining.
*/
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;
* @return Whether the mapType field is set.
*/
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;
* @return The mapType.
*/
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;
* @return The bytes for mapType.
*/
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;
* @param value The mapType to set.
* @return This builder for chaining.
*/
public Builder setMapType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
mapType_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
* @return This builder for chaining.
*/
public Builder clearMapType() {
mapType_ = getDefaultInstance().getMapType();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
*
* Scala type to be used for maps. If unspecified,
* `scala.collection.immutable.Map` will be used.
*
*
* optional string map_type = 14;
* @param value The bytes for mapType to set.
* @return This builder for chaining.
*/
public Builder setMapTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
mapType_ = value;
bitField0_ |= 0x00002000;
onChanged();
return this;
}
private boolean noDefaultValuesInConstructor_ ;
/**
*
* If true, no default values will be generated in message constructors.
* This setting can be overridden at the message-level and for individual
* fields.
*
*
* optional bool no_default_values_in_constructor = 15;
* @return Whether the noDefaultValuesInConstructor field is set.
*/
@java.lang.Override
public boolean hasNoDefaultValuesInConstructor() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* If true, no default values will be generated in message constructors.
* This setting can be overridden at the message-level and for individual
* fields.
*
*
* optional bool no_default_values_in_constructor = 15;
* @return The noDefaultValuesInConstructor.
*/
@java.lang.Override
public boolean getNoDefaultValuesInConstructor() {
return noDefaultValuesInConstructor_;
}
/**
*
* If true, no default values will be generated in message constructors.
* This setting can be overridden at the message-level and for individual
* fields.
*
*
* optional bool no_default_values_in_constructor = 15;
* @param value The noDefaultValuesInConstructor to set.
* @return This builder for chaining.
*/
public Builder setNoDefaultValuesInConstructor(boolean value) {
noDefaultValuesInConstructor_ = value;
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
*
* If true, no default values will be generated in message constructors.
* This setting can be overridden at the message-level and for individual
* fields.
*
*
* optional bool no_default_values_in_constructor = 15;
* @return This builder for chaining.
*/
public Builder clearNoDefaultValuesInConstructor() {
bitField0_ = (bitField0_ & ~0x00004000);
noDefaultValuesInConstructor_ = false;
onChanged();
return this;
}
private int enumValueNaming_ = 0;
/**
* optional .scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16;
* @return Whether the enumValueNaming field is set.
*/
@java.lang.Override public boolean hasEnumValueNaming() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional .scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16;
* @return The enumValueNaming.
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming getEnumValueNaming() {
scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming result = scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming.forNumber(enumValueNaming_);
return result == null ? scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming.AS_IN_PROTO : result;
}
/**
* optional .scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16;
* @param value The enumValueNaming to set.
* @return This builder for chaining.
*/
public Builder setEnumValueNaming(scalapb.options.Scalapb.ScalaPbOptions.EnumValueNaming value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
enumValueNaming_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .scalapb.ScalaPbOptions.EnumValueNaming enum_value_naming = 16;
* @return This builder for chaining.
*/
public Builder clearEnumValueNaming() {
bitField0_ = (bitField0_ & ~0x00008000);
enumValueNaming_ = 0;
onChanged();
return this;
}
private boolean enumStripPrefix_ ;
/**
*
* Indicate if prefix (enum name + optional underscore) should be removed in scala code
* Strip is applied before enum value naming changes.
*
*
* optional bool enum_strip_prefix = 17 [default = false];
* @return Whether the enumStripPrefix field is set.
*/
@java.lang.Override
public boolean hasEnumStripPrefix() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* Indicate if prefix (enum name + optional underscore) should be removed in scala code
* Strip is applied before enum value naming changes.
*
*
* optional bool enum_strip_prefix = 17 [default = false];
* @return The enumStripPrefix.
*/
@java.lang.Override
public boolean getEnumStripPrefix() {
return enumStripPrefix_;
}
/**
*
* Indicate if prefix (enum name + optional underscore) should be removed in scala code
* Strip is applied before enum value naming changes.
*
*
* optional bool enum_strip_prefix = 17 [default = false];
* @param value The enumStripPrefix to set.
* @return This builder for chaining.
*/
public Builder setEnumStripPrefix(boolean value) {
enumStripPrefix_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
* Indicate if prefix (enum name + optional underscore) should be removed in scala code
* Strip is applied before enum value naming changes.
*
*
* optional bool enum_strip_prefix = 17 [default = false];
* @return This builder for chaining.
*/
public Builder clearEnumStripPrefix() {
bitField0_ = (bitField0_ & ~0x00010000);
enumStripPrefix_ = false;
onChanged();
return this;
}
private java.lang.Object bytesType_ = "";
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return Whether the bytesType field is set.
*/
public boolean hasBytesType() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return The bytesType.
*/
public java.lang.String getBytesType() {
java.lang.Object ref = bytesType_;
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()) {
bytesType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return The bytes for bytesType.
*/
public com.google.protobuf.ByteString
getBytesTypeBytes() {
java.lang.Object ref = bytesType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bytesType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @param value The bytesType to set.
* @return This builder for chaining.
*/
public Builder setBytesType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
bytesType_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @return This builder for chaining.
*/
public Builder clearBytesType() {
bytesType_ = getDefaultInstance().getBytesType();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
*
* Scala type to use for bytes fields.
*
*
* optional string bytes_type = 21;
* @param value The bytes for bytesType to set.
* @return This builder for chaining.
*/
public Builder setBytesTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
bytesType_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
private boolean javaConversions_ ;
/**
*
* Enable java conversions for this file.
*
*
* optional bool java_conversions = 23;
* @return Whether the javaConversions field is set.
*/
@java.lang.Override
public boolean hasJavaConversions() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* Enable java conversions for this file.
*
*
* optional bool java_conversions = 23;
* @return The javaConversions.
*/
@java.lang.Override
public boolean getJavaConversions() {
return javaConversions_;
}
/**
*
* Enable java conversions for this file.
*
*
* optional bool java_conversions = 23;
* @param value The javaConversions to set.
* @return This builder for chaining.
*/
public Builder setJavaConversions(boolean value) {
javaConversions_ = value;
bitField0_ |= 0x00040000;
onChanged();
return this;
}
/**
*
* Enable java conversions for this file.
*
*
* optional bool java_conversions = 23;
* @return This builder for chaining.
*/
public Builder clearJavaConversions() {
bitField0_ = (bitField0_ & ~0x00040000);
javaConversions_ = false;
onChanged();
return this;
}
private java.util.List auxMessageOptions_ =
java.util.Collections.emptyList();
private void ensureAuxMessageOptionsIsMutable() {
if (!((bitField0_ & 0x00080000) != 0)) {
auxMessageOptions_ = new java.util.ArrayList(auxMessageOptions_);
bitField0_ |= 0x00080000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder> auxMessageOptionsBuilder_;
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public java.util.List getAuxMessageOptionsList() {
if (auxMessageOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(auxMessageOptions_);
} else {
return auxMessageOptionsBuilder_.getMessageList();
}
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public int getAuxMessageOptionsCount() {
if (auxMessageOptionsBuilder_ == null) {
return auxMessageOptions_.size();
} else {
return auxMessageOptionsBuilder_.getCount();
}
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions getAuxMessageOptions(int index) {
if (auxMessageOptionsBuilder_ == null) {
return auxMessageOptions_.get(index);
} else {
return auxMessageOptionsBuilder_.getMessage(index);
}
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder setAuxMessageOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions value) {
if (auxMessageOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.set(index, value);
onChanged();
} else {
auxMessageOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder setAuxMessageOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder builderForValue) {
if (auxMessageOptionsBuilder_ == null) {
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.set(index, builderForValue.build());
onChanged();
} else {
auxMessageOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder addAuxMessageOptions(scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions value) {
if (auxMessageOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.add(value);
onChanged();
} else {
auxMessageOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder addAuxMessageOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions value) {
if (auxMessageOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.add(index, value);
onChanged();
} else {
auxMessageOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder addAuxMessageOptions(
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder builderForValue) {
if (auxMessageOptionsBuilder_ == null) {
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.add(builderForValue.build());
onChanged();
} else {
auxMessageOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder addAuxMessageOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder builderForValue) {
if (auxMessageOptionsBuilder_ == null) {
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.add(index, builderForValue.build());
onChanged();
} else {
auxMessageOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder addAllAuxMessageOptions(
java.lang.Iterable extends scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions> values) {
if (auxMessageOptionsBuilder_ == null) {
ensureAuxMessageOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, auxMessageOptions_);
onChanged();
} else {
auxMessageOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder clearAuxMessageOptions() {
if (auxMessageOptionsBuilder_ == null) {
auxMessageOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
} else {
auxMessageOptionsBuilder_.clear();
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public Builder removeAuxMessageOptions(int index) {
if (auxMessageOptionsBuilder_ == null) {
ensureAuxMessageOptionsIsMutable();
auxMessageOptions_.remove(index);
onChanged();
} else {
auxMessageOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder getAuxMessageOptionsBuilder(
int index) {
return getAuxMessageOptionsFieldBuilder().getBuilder(index);
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder getAuxMessageOptionsOrBuilder(
int index) {
if (auxMessageOptionsBuilder_ == null) {
return auxMessageOptions_.get(index); } else {
return auxMessageOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder>
getAuxMessageOptionsOrBuilderList() {
if (auxMessageOptionsBuilder_ != null) {
return auxMessageOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(auxMessageOptions_);
}
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder addAuxMessageOptionsBuilder() {
return getAuxMessageOptionsFieldBuilder().addBuilder(
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.getDefaultInstance());
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder addAuxMessageOptionsBuilder(
int index) {
return getAuxMessageOptionsFieldBuilder().addBuilder(
index, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.getDefaultInstance());
}
/**
*
* List of message options to apply to some messages.
*
*
* repeated .scalapb.ScalaPbOptions.AuxMessageOptions aux_message_options = 18;
*/
public java.util.List
getAuxMessageOptionsBuilderList() {
return getAuxMessageOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder>
getAuxMessageOptionsFieldBuilder() {
if (auxMessageOptionsBuilder_ == null) {
auxMessageOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxMessageOptionsOrBuilder>(
auxMessageOptions_,
((bitField0_ & 0x00080000) != 0),
getParentForChildren(),
isClean());
auxMessageOptions_ = null;
}
return auxMessageOptionsBuilder_;
}
private java.util.List auxFieldOptions_ =
java.util.Collections.emptyList();
private void ensureAuxFieldOptionsIsMutable() {
if (!((bitField0_ & 0x00100000) != 0)) {
auxFieldOptions_ = new java.util.ArrayList(auxFieldOptions_);
bitField0_ |= 0x00100000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder> auxFieldOptionsBuilder_;
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public java.util.List getAuxFieldOptionsList() {
if (auxFieldOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(auxFieldOptions_);
} else {
return auxFieldOptionsBuilder_.getMessageList();
}
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public int getAuxFieldOptionsCount() {
if (auxFieldOptionsBuilder_ == null) {
return auxFieldOptions_.size();
} else {
return auxFieldOptionsBuilder_.getCount();
}
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions getAuxFieldOptions(int index) {
if (auxFieldOptionsBuilder_ == null) {
return auxFieldOptions_.get(index);
} else {
return auxFieldOptionsBuilder_.getMessage(index);
}
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder setAuxFieldOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions value) {
if (auxFieldOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.set(index, value);
onChanged();
} else {
auxFieldOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder setAuxFieldOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder builderForValue) {
if (auxFieldOptionsBuilder_ == null) {
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.set(index, builderForValue.build());
onChanged();
} else {
auxFieldOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder addAuxFieldOptions(scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions value) {
if (auxFieldOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.add(value);
onChanged();
} else {
auxFieldOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder addAuxFieldOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions value) {
if (auxFieldOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.add(index, value);
onChanged();
} else {
auxFieldOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder addAuxFieldOptions(
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder builderForValue) {
if (auxFieldOptionsBuilder_ == null) {
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.add(builderForValue.build());
onChanged();
} else {
auxFieldOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder addAuxFieldOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder builderForValue) {
if (auxFieldOptionsBuilder_ == null) {
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.add(index, builderForValue.build());
onChanged();
} else {
auxFieldOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder addAllAuxFieldOptions(
java.lang.Iterable extends scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions> values) {
if (auxFieldOptionsBuilder_ == null) {
ensureAuxFieldOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, auxFieldOptions_);
onChanged();
} else {
auxFieldOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder clearAuxFieldOptions() {
if (auxFieldOptionsBuilder_ == null) {
auxFieldOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
} else {
auxFieldOptionsBuilder_.clear();
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public Builder removeAuxFieldOptions(int index) {
if (auxFieldOptionsBuilder_ == null) {
ensureAuxFieldOptionsIsMutable();
auxFieldOptions_.remove(index);
onChanged();
} else {
auxFieldOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder getAuxFieldOptionsBuilder(
int index) {
return getAuxFieldOptionsFieldBuilder().getBuilder(index);
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder getAuxFieldOptionsOrBuilder(
int index) {
if (auxFieldOptionsBuilder_ == null) {
return auxFieldOptions_.get(index); } else {
return auxFieldOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder>
getAuxFieldOptionsOrBuilderList() {
if (auxFieldOptionsBuilder_ != null) {
return auxFieldOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(auxFieldOptions_);
}
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder addAuxFieldOptionsBuilder() {
return getAuxFieldOptionsFieldBuilder().addBuilder(
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.getDefaultInstance());
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder addAuxFieldOptionsBuilder(
int index) {
return getAuxFieldOptionsFieldBuilder().addBuilder(
index, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.getDefaultInstance());
}
/**
*
* List of message options to apply to some fields.
*
*
* repeated .scalapb.ScalaPbOptions.AuxFieldOptions aux_field_options = 19;
*/
public java.util.List
getAuxFieldOptionsBuilderList() {
return getAuxFieldOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder>
getAuxFieldOptionsFieldBuilder() {
if (auxFieldOptionsBuilder_ == null) {
auxFieldOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxFieldOptionsOrBuilder>(
auxFieldOptions_,
((bitField0_ & 0x00100000) != 0),
getParentForChildren(),
isClean());
auxFieldOptions_ = null;
}
return auxFieldOptionsBuilder_;
}
private java.util.List auxEnumOptions_ =
java.util.Collections.emptyList();
private void ensureAuxEnumOptionsIsMutable() {
if (!((bitField0_ & 0x00200000) != 0)) {
auxEnumOptions_ = new java.util.ArrayList(auxEnumOptions_);
bitField0_ |= 0x00200000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder> auxEnumOptionsBuilder_;
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public java.util.List getAuxEnumOptionsList() {
if (auxEnumOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(auxEnumOptions_);
} else {
return auxEnumOptionsBuilder_.getMessageList();
}
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public int getAuxEnumOptionsCount() {
if (auxEnumOptionsBuilder_ == null) {
return auxEnumOptions_.size();
} else {
return auxEnumOptionsBuilder_.getCount();
}
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions getAuxEnumOptions(int index) {
if (auxEnumOptionsBuilder_ == null) {
return auxEnumOptions_.get(index);
} else {
return auxEnumOptionsBuilder_.getMessage(index);
}
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder setAuxEnumOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions value) {
if (auxEnumOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.set(index, value);
onChanged();
} else {
auxEnumOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder setAuxEnumOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder builderForValue) {
if (auxEnumOptionsBuilder_ == null) {
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.set(index, builderForValue.build());
onChanged();
} else {
auxEnumOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder addAuxEnumOptions(scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions value) {
if (auxEnumOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.add(value);
onChanged();
} else {
auxEnumOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder addAuxEnumOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions value) {
if (auxEnumOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.add(index, value);
onChanged();
} else {
auxEnumOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder addAuxEnumOptions(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder builderForValue) {
if (auxEnumOptionsBuilder_ == null) {
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.add(builderForValue.build());
onChanged();
} else {
auxEnumOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder addAuxEnumOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder builderForValue) {
if (auxEnumOptionsBuilder_ == null) {
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.add(index, builderForValue.build());
onChanged();
} else {
auxEnumOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder addAllAuxEnumOptions(
java.lang.Iterable extends scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions> values) {
if (auxEnumOptionsBuilder_ == null) {
ensureAuxEnumOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, auxEnumOptions_);
onChanged();
} else {
auxEnumOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder clearAuxEnumOptions() {
if (auxEnumOptionsBuilder_ == null) {
auxEnumOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00200000);
onChanged();
} else {
auxEnumOptionsBuilder_.clear();
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public Builder removeAuxEnumOptions(int index) {
if (auxEnumOptionsBuilder_ == null) {
ensureAuxEnumOptionsIsMutable();
auxEnumOptions_.remove(index);
onChanged();
} else {
auxEnumOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder getAuxEnumOptionsBuilder(
int index) {
return getAuxEnumOptionsFieldBuilder().getBuilder(index);
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder getAuxEnumOptionsOrBuilder(
int index) {
if (auxEnumOptionsBuilder_ == null) {
return auxEnumOptions_.get(index); } else {
return auxEnumOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder>
getAuxEnumOptionsOrBuilderList() {
if (auxEnumOptionsBuilder_ != null) {
return auxEnumOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(auxEnumOptions_);
}
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder addAuxEnumOptionsBuilder() {
return getAuxEnumOptionsFieldBuilder().addBuilder(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.getDefaultInstance());
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder addAuxEnumOptionsBuilder(
int index) {
return getAuxEnumOptionsFieldBuilder().addBuilder(
index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.getDefaultInstance());
}
/**
*
* List of message options to apply to some enums.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumOptions aux_enum_options = 20;
*/
public java.util.List
getAuxEnumOptionsBuilderList() {
return getAuxEnumOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder>
getAuxEnumOptionsFieldBuilder() {
if (auxEnumOptionsBuilder_ == null) {
auxEnumOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumOptionsOrBuilder>(
auxEnumOptions_,
((bitField0_ & 0x00200000) != 0),
getParentForChildren(),
isClean());
auxEnumOptions_ = null;
}
return auxEnumOptionsBuilder_;
}
private java.util.List auxEnumValueOptions_ =
java.util.Collections.emptyList();
private void ensureAuxEnumValueOptionsIsMutable() {
if (!((bitField0_ & 0x00400000) != 0)) {
auxEnumValueOptions_ = new java.util.ArrayList(auxEnumValueOptions_);
bitField0_ |= 0x00400000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder> auxEnumValueOptionsBuilder_;
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public java.util.List getAuxEnumValueOptionsList() {
if (auxEnumValueOptionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(auxEnumValueOptions_);
} else {
return auxEnumValueOptionsBuilder_.getMessageList();
}
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public int getAuxEnumValueOptionsCount() {
if (auxEnumValueOptionsBuilder_ == null) {
return auxEnumValueOptions_.size();
} else {
return auxEnumValueOptionsBuilder_.getCount();
}
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions getAuxEnumValueOptions(int index) {
if (auxEnumValueOptionsBuilder_ == null) {
return auxEnumValueOptions_.get(index);
} else {
return auxEnumValueOptionsBuilder_.getMessage(index);
}
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder setAuxEnumValueOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions value) {
if (auxEnumValueOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.set(index, value);
onChanged();
} else {
auxEnumValueOptionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder setAuxEnumValueOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder builderForValue) {
if (auxEnumValueOptionsBuilder_ == null) {
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.set(index, builderForValue.build());
onChanged();
} else {
auxEnumValueOptionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder addAuxEnumValueOptions(scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions value) {
if (auxEnumValueOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.add(value);
onChanged();
} else {
auxEnumValueOptionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder addAuxEnumValueOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions value) {
if (auxEnumValueOptionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.add(index, value);
onChanged();
} else {
auxEnumValueOptionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder addAuxEnumValueOptions(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder builderForValue) {
if (auxEnumValueOptionsBuilder_ == null) {
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.add(builderForValue.build());
onChanged();
} else {
auxEnumValueOptionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder addAuxEnumValueOptions(
int index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder builderForValue) {
if (auxEnumValueOptionsBuilder_ == null) {
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.add(index, builderForValue.build());
onChanged();
} else {
auxEnumValueOptionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder addAllAuxEnumValueOptions(
java.lang.Iterable extends scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions> values) {
if (auxEnumValueOptionsBuilder_ == null) {
ensureAuxEnumValueOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, auxEnumValueOptions_);
onChanged();
} else {
auxEnumValueOptionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder clearAuxEnumValueOptions() {
if (auxEnumValueOptionsBuilder_ == null) {
auxEnumValueOptions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00400000);
onChanged();
} else {
auxEnumValueOptionsBuilder_.clear();
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public Builder removeAuxEnumValueOptions(int index) {
if (auxEnumValueOptionsBuilder_ == null) {
ensureAuxEnumValueOptionsIsMutable();
auxEnumValueOptions_.remove(index);
onChanged();
} else {
auxEnumValueOptionsBuilder_.remove(index);
}
return this;
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder getAuxEnumValueOptionsBuilder(
int index) {
return getAuxEnumValueOptionsFieldBuilder().getBuilder(index);
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder getAuxEnumValueOptionsOrBuilder(
int index) {
if (auxEnumValueOptionsBuilder_ == null) {
return auxEnumValueOptions_.get(index); } else {
return auxEnumValueOptionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public java.util.List extends scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder>
getAuxEnumValueOptionsOrBuilderList() {
if (auxEnumValueOptionsBuilder_ != null) {
return auxEnumValueOptionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(auxEnumValueOptions_);
}
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder addAuxEnumValueOptionsBuilder() {
return getAuxEnumValueOptionsFieldBuilder().addBuilder(
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.getDefaultInstance());
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder addAuxEnumValueOptionsBuilder(
int index) {
return getAuxEnumValueOptionsFieldBuilder().addBuilder(
index, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.getDefaultInstance());
}
/**
*
* List of enum value options to apply to some enum values.
*
*
* repeated .scalapb.ScalaPbOptions.AuxEnumValueOptions aux_enum_value_options = 22;
*/
public java.util.List
getAuxEnumValueOptionsBuilderList() {
return getAuxEnumValueOptionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder>
getAuxEnumValueOptionsFieldBuilder() {
if (auxEnumValueOptionsBuilder_ == null) {
auxEnumValueOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptions.Builder, scalapb.options.Scalapb.ScalaPbOptions.AuxEnumValueOptionsOrBuilder>(
auxEnumValueOptions_,
((bitField0_ & 0x00400000) != 0),
getParentForChildren(),
isClean());
auxEnumValueOptions_ = null;
}
return auxEnumValueOptionsBuilder_;
}
private com.google.protobuf.LazyStringArrayList preprocessors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensurePreprocessorsIsMutable() {
if (!preprocessors_.isModifiable()) {
preprocessors_ = new com.google.protobuf.LazyStringArrayList(preprocessors_);
}
bitField0_ |= 0x00800000;
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @return A list containing the preprocessors.
*/
public com.google.protobuf.ProtocolStringList
getPreprocessorsList() {
preprocessors_.makeImmutable();
return preprocessors_;
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @return The count of preprocessors.
*/
public int getPreprocessorsCount() {
return preprocessors_.size();
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param index The index of the element to return.
* @return The preprocessors at the given index.
*/
public java.lang.String getPreprocessors(int index) {
return preprocessors_.get(index);
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param index The index of the value to return.
* @return The bytes of the preprocessors at the given index.
*/
public com.google.protobuf.ByteString
getPreprocessorsBytes(int index) {
return preprocessors_.getByteString(index);
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param index The index to set the value at.
* @param value The preprocessors to set.
* @return This builder for chaining.
*/
public Builder setPreprocessors(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreprocessorsIsMutable();
preprocessors_.set(index, value);
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param value The preprocessors to add.
* @return This builder for chaining.
*/
public Builder addPreprocessors(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensurePreprocessorsIsMutable();
preprocessors_.add(value);
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param values The preprocessors to add.
* @return This builder for chaining.
*/
public Builder addAllPreprocessors(
java.lang.Iterable values) {
ensurePreprocessorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, preprocessors_);
bitField0_ |= 0x00800000;
onChanged();
return this;
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @return This builder for chaining.
*/
public Builder clearPreprocessors() {
preprocessors_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00800000);;
onChanged();
return this;
}
/**
*
* List of preprocessors to apply.
*
*
* repeated string preprocessors = 24;
* @param value The bytes of the preprocessors to add.
* @return This builder for chaining.
*/
public Builder addPreprocessorsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensurePreprocessorsIsMutable();
preprocessors_.add(value);
bitField0_ |= 0x00800000;
onChanged();
return this;
}
private java.util.List fieldTransformations_ =
java.util.Collections.emptyList();
private void ensureFieldTransformationsIsMutable() {
if (!((bitField0_ & 0x01000000) != 0)) {
fieldTransformations_ = new java.util.ArrayList(fieldTransformations_);
bitField0_ |= 0x01000000;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.FieldTransformation, scalapb.options.Scalapb.FieldTransformation.Builder, scalapb.options.Scalapb.FieldTransformationOrBuilder> fieldTransformationsBuilder_;
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public java.util.List getFieldTransformationsList() {
if (fieldTransformationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fieldTransformations_);
} else {
return fieldTransformationsBuilder_.getMessageList();
}
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public int getFieldTransformationsCount() {
if (fieldTransformationsBuilder_ == null) {
return fieldTransformations_.size();
} else {
return fieldTransformationsBuilder_.getCount();
}
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public scalapb.options.Scalapb.FieldTransformation getFieldTransformations(int index) {
if (fieldTransformationsBuilder_ == null) {
return fieldTransformations_.get(index);
} else {
return fieldTransformationsBuilder_.getMessage(index);
}
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder setFieldTransformations(
int index, scalapb.options.Scalapb.FieldTransformation value) {
if (fieldTransformationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTransformationsIsMutable();
fieldTransformations_.set(index, value);
onChanged();
} else {
fieldTransformationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder setFieldTransformations(
int index, scalapb.options.Scalapb.FieldTransformation.Builder builderForValue) {
if (fieldTransformationsBuilder_ == null) {
ensureFieldTransformationsIsMutable();
fieldTransformations_.set(index, builderForValue.build());
onChanged();
} else {
fieldTransformationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder addFieldTransformations(scalapb.options.Scalapb.FieldTransformation value) {
if (fieldTransformationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTransformationsIsMutable();
fieldTransformations_.add(value);
onChanged();
} else {
fieldTransformationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder addFieldTransformations(
int index, scalapb.options.Scalapb.FieldTransformation value) {
if (fieldTransformationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldTransformationsIsMutable();
fieldTransformations_.add(index, value);
onChanged();
} else {
fieldTransformationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder addFieldTransformations(
scalapb.options.Scalapb.FieldTransformation.Builder builderForValue) {
if (fieldTransformationsBuilder_ == null) {
ensureFieldTransformationsIsMutable();
fieldTransformations_.add(builderForValue.build());
onChanged();
} else {
fieldTransformationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder addFieldTransformations(
int index, scalapb.options.Scalapb.FieldTransformation.Builder builderForValue) {
if (fieldTransformationsBuilder_ == null) {
ensureFieldTransformationsIsMutable();
fieldTransformations_.add(index, builderForValue.build());
onChanged();
} else {
fieldTransformationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder addAllFieldTransformations(
java.lang.Iterable extends scalapb.options.Scalapb.FieldTransformation> values) {
if (fieldTransformationsBuilder_ == null) {
ensureFieldTransformationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fieldTransformations_);
onChanged();
} else {
fieldTransformationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder clearFieldTransformations() {
if (fieldTransformationsBuilder_ == null) {
fieldTransformations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x01000000);
onChanged();
} else {
fieldTransformationsBuilder_.clear();
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public Builder removeFieldTransformations(int index) {
if (fieldTransformationsBuilder_ == null) {
ensureFieldTransformationsIsMutable();
fieldTransformations_.remove(index);
onChanged();
} else {
fieldTransformationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public scalapb.options.Scalapb.FieldTransformation.Builder getFieldTransformationsBuilder(
int index) {
return getFieldTransformationsFieldBuilder().getBuilder(index);
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public scalapb.options.Scalapb.FieldTransformationOrBuilder getFieldTransformationsOrBuilder(
int index) {
if (fieldTransformationsBuilder_ == null) {
return fieldTransformations_.get(index); } else {
return fieldTransformationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public java.util.List extends scalapb.options.Scalapb.FieldTransformationOrBuilder>
getFieldTransformationsOrBuilderList() {
if (fieldTransformationsBuilder_ != null) {
return fieldTransformationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fieldTransformations_);
}
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public scalapb.options.Scalapb.FieldTransformation.Builder addFieldTransformationsBuilder() {
return getFieldTransformationsFieldBuilder().addBuilder(
scalapb.options.Scalapb.FieldTransformation.getDefaultInstance());
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public scalapb.options.Scalapb.FieldTransformation.Builder addFieldTransformationsBuilder(
int index) {
return getFieldTransformationsFieldBuilder().addBuilder(
index, scalapb.options.Scalapb.FieldTransformation.getDefaultInstance());
}
/**
* repeated .scalapb.FieldTransformation field_transformations = 25;
*/
public java.util.List
getFieldTransformationsBuilderList() {
return getFieldTransformationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.FieldTransformation, scalapb.options.Scalapb.FieldTransformation.Builder, scalapb.options.Scalapb.FieldTransformationOrBuilder>
getFieldTransformationsFieldBuilder() {
if (fieldTransformationsBuilder_ == null) {
fieldTransformationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
scalapb.options.Scalapb.FieldTransformation, scalapb.options.Scalapb.FieldTransformation.Builder, scalapb.options.Scalapb.FieldTransformationOrBuilder>(
fieldTransformations_,
((bitField0_ & 0x01000000) != 0),
getParentForChildren(),
isClean());
fieldTransformations_ = null;
}
return fieldTransformationsBuilder_;
}
private boolean ignoreAllTransformations_ ;
/**
*
* Ignores all transformations for this file. This is meant to allow specific files to
* opt out from transformations inherited through package-scoped options.
*
*
* optional bool ignore_all_transformations = 26;
* @return Whether the ignoreAllTransformations field is set.
*/
@java.lang.Override
public boolean hasIgnoreAllTransformations() {
return ((bitField0_ & 0x02000000) != 0);
}
/**
*
* Ignores all transformations for this file. This is meant to allow specific files to
* opt out from transformations inherited through package-scoped options.
*
*
* optional bool ignore_all_transformations = 26;
* @return The ignoreAllTransformations.
*/
@java.lang.Override
public boolean getIgnoreAllTransformations() {
return ignoreAllTransformations_;
}
/**
*
* Ignores all transformations for this file. This is meant to allow specific files to
* opt out from transformations inherited through package-scoped options.
*
*
* optional bool ignore_all_transformations = 26;
* @param value The ignoreAllTransformations to set.
* @return This builder for chaining.
*/
public Builder setIgnoreAllTransformations(boolean value) {
ignoreAllTransformations_ = value;
bitField0_ |= 0x02000000;
onChanged();
return this;
}
/**
*
* Ignores all transformations for this file. This is meant to allow specific files to
* opt out from transformations inherited through package-scoped options.
*
*
* optional bool ignore_all_transformations = 26;
* @return This builder for chaining.
*/
public Builder clearIgnoreAllTransformations() {
bitField0_ = (bitField0_ & ~0x02000000);
ignoreAllTransformations_ = false;
onChanged();
return this;
}
private boolean getters_ = true;
/**
*
* If true, getters will be generated.
*
*
* optional bool getters = 27 [default = true];
* @return Whether the getters field is set.
*/
@java.lang.Override
public boolean hasGetters() {
return ((bitField0_ & 0x04000000) != 0);
}
/**
*
* If true, getters will be generated.
*
*
* optional bool getters = 27 [default = true];
* @return The getters.
*/
@java.lang.Override
public boolean getGetters() {
return getters_;
}
/**
*
* If true, getters will be generated.
*
*
* optional bool getters = 27 [default = true];
* @param value The getters to set.
* @return This builder for chaining.
*/
public Builder setGetters(boolean value) {
getters_ = value;
bitField0_ |= 0x04000000;
onChanged();
return this;
}
/**
*
* If true, getters will be generated.
*
*
* optional bool getters = 27 [default = true];
* @return This builder for chaining.
*/
public Builder clearGetters() {
bitField0_ = (bitField0_ & ~0x04000000);
getters_ = true;
onChanged();
return this;
}
private boolean scala3Sources_ ;
/**
*
* Generate sources that are compatible with Scala 3
*
*
* optional bool scala3_sources = 28;
* @return Whether the scala3Sources field is set.
*/
@java.lang.Override
public boolean hasScala3Sources() {
return ((bitField0_ & 0x08000000) != 0);
}
/**
*
* Generate sources that are compatible with Scala 3
*
*
* optional bool scala3_sources = 28;
* @return The scala3Sources.
*/
@java.lang.Override
public boolean getScala3Sources() {
return scala3Sources_;
}
/**
*
* Generate sources that are compatible with Scala 3
*
*
* optional bool scala3_sources = 28;
* @param value The scala3Sources to set.
* @return This builder for chaining.
*/
public Builder setScala3Sources(boolean value) {
scala3Sources_ = value;
bitField0_ |= 0x08000000;
onChanged();
return this;
}
/**
*
* Generate sources that are compatible with Scala 3
*
*
* optional bool scala3_sources = 28;
* @return This builder for chaining.
*/
public Builder clearScala3Sources() {
bitField0_ = (bitField0_ & ~0x08000000);
scala3Sources_ = false;
onChanged();
return this;
}
private boolean publicConstructorParameters_ ;
/**
*
* Makes constructor parameters public, including defaults and TypeMappers.
*
*
* optional bool public_constructor_parameters = 29;
* @return Whether the publicConstructorParameters field is set.
*/
@java.lang.Override
public boolean hasPublicConstructorParameters() {
return ((bitField0_ & 0x10000000) != 0);
}
/**
*
* Makes constructor parameters public, including defaults and TypeMappers.
*
*
* optional bool public_constructor_parameters = 29;
* @return The publicConstructorParameters.
*/
@java.lang.Override
public boolean getPublicConstructorParameters() {
return publicConstructorParameters_;
}
/**
*
* Makes constructor parameters public, including defaults and TypeMappers.
*
*
* optional bool public_constructor_parameters = 29;
* @param value The publicConstructorParameters to set.
* @return This builder for chaining.
*/
public Builder setPublicConstructorParameters(boolean value) {
publicConstructorParameters_ = value;
bitField0_ |= 0x10000000;
onChanged();
return this;
}
/**
*
* Makes constructor parameters public, including defaults and TypeMappers.
*
*
* optional bool public_constructor_parameters = 29;
* @return This builder for chaining.
*/
public Builder clearPublicConstructorParameters() {
bitField0_ = (bitField0_ & ~0x10000000);
publicConstructorParameters_ = false;
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 = 999;
* @return Whether the testOnlyNoJavaConversions field is set.
*/
@java.lang.Override
public boolean hasTestOnlyNoJavaConversions() {
return ((bitField0_ & 0x20000000) != 0);
}
/**
*
* For use in tests only. Inhibit Java conversions even when when generator parameters
* request for it.
*
*
* optional bool test_only_no_java_conversions = 999;
* @return The testOnlyNoJavaConversions.
*/
@java.lang.Override
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 = 999;
* @param value The testOnlyNoJavaConversions to set.
* @return This builder for chaining.
*/
public Builder setTestOnlyNoJavaConversions(boolean value) {
testOnlyNoJavaConversions_ = value;
bitField0_ |= 0x20000000;
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 = 999;
* @return This builder for chaining.
*/
public Builder clearTestOnlyNoJavaConversions() {
bitField0_ = (bitField0_ & ~0x20000000);
testOnlyNoJavaConversions_ = false;
onChanged();
return this;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
java.util.List
getExtendsList();
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
int getExtendsCount();
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
java.lang.String getExtends(int index);
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
com.google.protobuf.ByteString
getExtendsBytes(int index);
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return A list containing the companionExtends.
*/
java.util.List
getCompanionExtendsList();
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return The count of companionExtends.
*/
int getCompanionExtendsCount();
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param index The index of the element to return.
* @return The companionExtends at the given index.
*/
java.lang.String getCompanionExtends(int index);
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param index The index of the value to return.
* @return The bytes of the companionExtends at the given index.
*/
com.google.protobuf.ByteString
getCompanionExtendsBytes(int index);
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @return A list containing the annotations.
*/
java.util.List
getAnnotationsList();
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @return The count of annotations.
*/
int getAnnotationsCount();
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
java.lang.String getAnnotations(int index);
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
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;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* All instances of this message will be converted to this type. An implicit TypeMapper
* must be present.
*
*
* optional string type = 4;
* @return The type.
*/
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;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @return A list containing the companionAnnotations.
*/
java.util.List
getCompanionAnnotationsList();
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @return The count of companionAnnotations.
*/
int getCompanionAnnotationsCount();
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @param index The index of the element to return.
* @return The companionAnnotations at the given index.
*/
java.lang.String getCompanionAnnotations(int index);
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @param index The index of the value to return.
* @return The bytes of the companionAnnotations at the given index.
*/
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;
* @return A list containing the sealedOneofExtends.
*/
java.util.List
getSealedOneofExtendsList();
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
* @return The count of sealedOneofExtends.
*/
int getSealedOneofExtendsCount();
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
* @param index The index of the element to return.
* @return The sealedOneofExtends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofExtends at the given index.
*/
com.google.protobuf.ByteString
getSealedOneofExtendsBytes(int index);
/**
*
* If true, when this message is used as an optional field, do not wrap it in an `Option`.
* This is equivalent of setting `(field).no_box` to true on each field with the message type.
*
*
* optional bool no_box = 7;
* @return Whether the noBox field is set.
*/
boolean hasNoBox();
/**
*
* If true, when this message is used as an optional field, do not wrap it in an `Option`.
* This is equivalent of setting `(field).no_box` to true on each field with the message type.
*
*
* optional bool no_box = 7;
* @return The noBox.
*/
boolean getNoBox();
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @return A list containing the unknownFieldsAnnotations.
*/
java.util.List
getUnknownFieldsAnnotationsList();
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @return The count of unknownFieldsAnnotations.
*/
int getUnknownFieldsAnnotationsCount();
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param index The index of the element to return.
* @return The unknownFieldsAnnotations at the given index.
*/
java.lang.String getUnknownFieldsAnnotations(int index);
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param index The index of the value to return.
* @return The bytes of the unknownFieldsAnnotations at the given index.
*/
com.google.protobuf.ByteString
getUnknownFieldsAnnotationsBytes(int index);
/**
*
* If true, no default values will be generated in message constructors.
* If set (to true or false), the message-level setting overrides the
* file-level value, and can be overridden by the field-level setting.
*
*
* optional bool no_default_values_in_constructor = 9;
* @return Whether the noDefaultValuesInConstructor field is set.
*/
boolean hasNoDefaultValuesInConstructor();
/**
*
* If true, no default values will be generated in message constructors.
* If set (to true or false), the message-level setting overrides the
* file-level value, and can be overridden by the field-level setting.
*
*
* optional bool no_default_values_in_constructor = 9;
* @return The noDefaultValuesInConstructor.
*/
boolean getNoDefaultValuesInConstructor();
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @return A list containing the sealedOneofCompanionExtends.
*/
java.util.List
getSealedOneofCompanionExtendsList();
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @return The count of sealedOneofCompanionExtends.
*/
int getSealedOneofCompanionExtendsCount();
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param index The index of the element to return.
* @return The sealedOneofCompanionExtends at the given index.
*/
java.lang.String getSealedOneofCompanionExtends(int index);
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofCompanionExtends at the given index.
*/
com.google.protobuf.ByteString
getSealedOneofCompanionExtendsBytes(int index);
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @return A list containing the derives.
*/
java.util.List
getDerivesList();
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @return The count of derives.
*/
int getDerivesCount();
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param index The index of the element to return.
* @return The derives at the given index.
*/
java.lang.String getDerives(int index);
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param index The index of the value to return.
* @return The bytes of the derives at the given index.
*/
com.google.protobuf.ByteString
getDerivesBytes(int index);
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @return A list containing the sealedOneofDerives.
*/
java.util.List
getSealedOneofDerivesList();
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @return The count of sealedOneofDerives.
*/
int getSealedOneofDerivesCount();
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param index The index of the element to return.
* @return The sealedOneofDerives at the given index.
*/
java.lang.String getSealedOneofDerives(int index);
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofDerives at the given index.
*/
com.google.protobuf.ByteString
getSealedOneofDerivesBytes(int index);
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @return A list containing the sealedOneofEmptyExtends.
*/
java.util.List
getSealedOneofEmptyExtendsList();
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @return The count of sealedOneofEmptyExtends.
*/
int getSealedOneofEmptyExtendsCount();
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param index The index of the element to return.
* @return The sealedOneofEmptyExtends at the given index.
*/
java.lang.String getSealedOneofEmptyExtends(int index);
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofEmptyExtends at the given index.
*/
com.google.protobuf.ByteString
getSealedOneofEmptyExtendsBytes(int index);
}
/**
* Protobuf type {@code scalapb.MessageOptions}
*/
public static final class MessageOptions extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
MessageOptions> implements
// @@protoc_insertion_point(message_implements:scalapb.MessageOptions)
MessageOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
MessageOptions.class.getName());
}
// Use MessageOptions.newBuilder() to construct.
private MessageOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
}
private MessageOptions() {
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
type_ = "";
companionAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sealedOneofExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
unknownFieldsAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sealedOneofCompanionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
derives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sealedOneofDerives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sealedOneofEmptyExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
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.GeneratedMessage.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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
return extends_;
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
public com.google.protobuf.ByteString
getExtendsBytes(int index) {
return extends_.getByteString(index);
}
public static final int COMPANION_EXTENDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return A list containing the companionExtends.
*/
public com.google.protobuf.ProtocolStringList
getCompanionExtendsList() {
return companionExtends_;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return The count of companionExtends.
*/
public int getCompanionExtendsCount() {
return companionExtends_.size();
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param index The index of the element to return.
* @return The companionExtends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the companionExtends at the given index.
*/
public com.google.protobuf.ByteString
getCompanionExtendsBytes(int index) {
return companionExtends_.getByteString(index);
}
public static final int ANNOTATIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @return A list containing the annotations.
*/
public com.google.protobuf.ProtocolStringList
getAnnotationsList() {
return annotations_;
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @return The count of annotations.
*/
public int getAnnotationsCount() {
return annotations_.size();
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
public java.lang.String getAnnotations(int index) {
return annotations_.get(index);
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
public com.google.protobuf.ByteString
getAnnotationsBytes(int index) {
return annotations_.getByteString(index);
}
public static final int TYPE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
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;
* @return Whether the type field is set.
*/
@java.lang.Override
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;
* @return The type.
*/
@java.lang.Override
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;
* @return The bytes for type.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList companionAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @return A list containing the companionAnnotations.
*/
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;
* @return The count of companionAnnotations.
*/
public int getCompanionAnnotationsCount() {
return companionAnnotations_.size();
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @param index The index of the element to return.
* @return The companionAnnotations at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the companionAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getCompanionAnnotationsBytes(int index) {
return companionAnnotations_.getByteString(index);
}
public static final int SEALED_ONEOF_EXTENDS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList sealedOneofExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
* @return A list containing the sealedOneofExtends.
*/
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;
* @return The count of sealedOneofExtends.
*/
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;
* @param index The index of the element to return.
* @return The sealedOneofExtends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofExtends at the given index.
*/
public com.google.protobuf.ByteString
getSealedOneofExtendsBytes(int index) {
return sealedOneofExtends_.getByteString(index);
}
public static final int NO_BOX_FIELD_NUMBER = 7;
private boolean noBox_ = false;
/**
*
* If true, when this message is used as an optional field, do not wrap it in an `Option`.
* This is equivalent of setting `(field).no_box` to true on each field with the message type.
*
*
* optional bool no_box = 7;
* @return Whether the noBox field is set.
*/
@java.lang.Override
public boolean hasNoBox() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* If true, when this message is used as an optional field, do not wrap it in an `Option`.
* This is equivalent of setting `(field).no_box` to true on each field with the message type.
*
*
* optional bool no_box = 7;
* @return The noBox.
*/
@java.lang.Override
public boolean getNoBox() {
return noBox_;
}
public static final int UNKNOWN_FIELDS_ANNOTATIONS_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList unknownFieldsAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @return A list containing the unknownFieldsAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getUnknownFieldsAnnotationsList() {
return unknownFieldsAnnotations_;
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @return The count of unknownFieldsAnnotations.
*/
public int getUnknownFieldsAnnotationsCount() {
return unknownFieldsAnnotations_.size();
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param index The index of the element to return.
* @return The unknownFieldsAnnotations at the given index.
*/
public java.lang.String getUnknownFieldsAnnotations(int index) {
return unknownFieldsAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param index The index of the value to return.
* @return The bytes of the unknownFieldsAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getUnknownFieldsAnnotationsBytes(int index) {
return unknownFieldsAnnotations_.getByteString(index);
}
public static final int NO_DEFAULT_VALUES_IN_CONSTRUCTOR_FIELD_NUMBER = 9;
private boolean noDefaultValuesInConstructor_ = false;
/**
*
* If true, no default values will be generated in message constructors.
* If set (to true or false), the message-level setting overrides the
* file-level value, and can be overridden by the field-level setting.
*
*
* optional bool no_default_values_in_constructor = 9;
* @return Whether the noDefaultValuesInConstructor field is set.
*/
@java.lang.Override
public boolean hasNoDefaultValuesInConstructor() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* If true, no default values will be generated in message constructors.
* If set (to true or false), the message-level setting overrides the
* file-level value, and can be overridden by the field-level setting.
*
*
* optional bool no_default_values_in_constructor = 9;
* @return The noDefaultValuesInConstructor.
*/
@java.lang.Override
public boolean getNoDefaultValuesInConstructor() {
return noDefaultValuesInConstructor_;
}
public static final int SEALED_ONEOF_COMPANION_EXTENDS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList sealedOneofCompanionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @return A list containing the sealedOneofCompanionExtends.
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofCompanionExtendsList() {
return sealedOneofCompanionExtends_;
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @return The count of sealedOneofCompanionExtends.
*/
public int getSealedOneofCompanionExtendsCount() {
return sealedOneofCompanionExtends_.size();
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param index The index of the element to return.
* @return The sealedOneofCompanionExtends at the given index.
*/
public java.lang.String getSealedOneofCompanionExtends(int index) {
return sealedOneofCompanionExtends_.get(index);
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofCompanionExtends at the given index.
*/
public com.google.protobuf.ByteString
getSealedOneofCompanionExtendsBytes(int index) {
return sealedOneofCompanionExtends_.getByteString(index);
}
public static final int DERIVES_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList derives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @return A list containing the derives.
*/
public com.google.protobuf.ProtocolStringList
getDerivesList() {
return derives_;
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @return The count of derives.
*/
public int getDerivesCount() {
return derives_.size();
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param index The index of the element to return.
* @return The derives at the given index.
*/
public java.lang.String getDerives(int index) {
return derives_.get(index);
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param index The index of the value to return.
* @return The bytes of the derives at the given index.
*/
public com.google.protobuf.ByteString
getDerivesBytes(int index) {
return derives_.getByteString(index);
}
public static final int SEALED_ONEOF_DERIVES_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList sealedOneofDerives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @return A list containing the sealedOneofDerives.
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofDerivesList() {
return sealedOneofDerives_;
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @return The count of sealedOneofDerives.
*/
public int getSealedOneofDerivesCount() {
return sealedOneofDerives_.size();
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param index The index of the element to return.
* @return The sealedOneofDerives at the given index.
*/
public java.lang.String getSealedOneofDerives(int index) {
return sealedOneofDerives_.get(index);
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofDerives at the given index.
*/
public com.google.protobuf.ByteString
getSealedOneofDerivesBytes(int index) {
return sealedOneofDerives_.getByteString(index);
}
public static final int SEALED_ONEOF_EMPTY_EXTENDS_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList sealedOneofEmptyExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @return A list containing the sealedOneofEmptyExtends.
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofEmptyExtendsList() {
return sealedOneofEmptyExtends_;
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @return The count of sealedOneofEmptyExtends.
*/
public int getSealedOneofEmptyExtendsCount() {
return sealedOneofEmptyExtends_.size();
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param index The index of the element to return.
* @return The sealedOneofEmptyExtends at the given index.
*/
public java.lang.String getSealedOneofEmptyExtends(int index) {
return sealedOneofEmptyExtends_.get(index);
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofEmptyExtends at the given index.
*/
public com.google.protobuf.ByteString
getSealedOneofEmptyExtendsBytes(int index) {
return sealedOneofEmptyExtends_.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;
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionSerializer
extensionWriter = newExtensionSerializer();
for (int i = 0; i < extends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, extends_.getRaw(i));
}
for (int i = 0; i < companionExtends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, companionExtends_.getRaw(i));
}
for (int i = 0; i < annotations_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, annotations_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, type_);
}
for (int i = 0; i < companionAnnotations_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, companionAnnotations_.getRaw(i));
}
for (int i = 0; i < sealedOneofExtends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, sealedOneofExtends_.getRaw(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(7, noBox_);
}
for (int i = 0; i < unknownFieldsAnnotations_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 8, unknownFieldsAnnotations_.getRaw(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(9, noDefaultValuesInConstructor_);
}
for (int i = 0; i < sealedOneofCompanionExtends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 10, sealedOneofCompanionExtends_.getRaw(i));
}
for (int i = 0; i < derives_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 11, derives_.getRaw(i));
}
for (int i = 0; i < sealedOneofDerives_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 12, sealedOneofDerives_.getRaw(i));
}
for (int i = 0; i < sealedOneofEmptyExtends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 13, sealedOneofEmptyExtends_.getRaw(i));
}
extensionWriter.writeUntil(536870912, output);
getUnknownFields().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.GeneratedMessage.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();
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, noBox_);
}
{
int dataSize = 0;
for (int i = 0; i < unknownFieldsAnnotations_.size(); i++) {
dataSize += computeStringSizeNoTag(unknownFieldsAnnotations_.getRaw(i));
}
size += dataSize;
size += 1 * getUnknownFieldsAnnotationsList().size();
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, noDefaultValuesInConstructor_);
}
{
int dataSize = 0;
for (int i = 0; i < sealedOneofCompanionExtends_.size(); i++) {
dataSize += computeStringSizeNoTag(sealedOneofCompanionExtends_.getRaw(i));
}
size += dataSize;
size += 1 * getSealedOneofCompanionExtendsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < derives_.size(); i++) {
dataSize += computeStringSizeNoTag(derives_.getRaw(i));
}
size += dataSize;
size += 1 * getDerivesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < sealedOneofDerives_.size(); i++) {
dataSize += computeStringSizeNoTag(sealedOneofDerives_.getRaw(i));
}
size += dataSize;
size += 1 * getSealedOneofDerivesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < sealedOneofEmptyExtends_.size(); i++) {
dataSize += computeStringSizeNoTag(sealedOneofEmptyExtends_.getRaw(i));
}
size += dataSize;
size += 1 * getSealedOneofEmptyExtendsList().size();
}
size += extensionsSerializedSize();
size += getUnknownFields().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 (hasNoBox() != other.hasNoBox()) return false;
if (hasNoBox()) {
if (getNoBox()
!= other.getNoBox()) return false;
}
if (!getUnknownFieldsAnnotationsList()
.equals(other.getUnknownFieldsAnnotationsList())) return false;
if (hasNoDefaultValuesInConstructor() != other.hasNoDefaultValuesInConstructor()) return false;
if (hasNoDefaultValuesInConstructor()) {
if (getNoDefaultValuesInConstructor()
!= other.getNoDefaultValuesInConstructor()) return false;
}
if (!getSealedOneofCompanionExtendsList()
.equals(other.getSealedOneofCompanionExtendsList())) return false;
if (!getDerivesList()
.equals(other.getDerivesList())) return false;
if (!getSealedOneofDerivesList()
.equals(other.getSealedOneofDerivesList())) return false;
if (!getSealedOneofEmptyExtendsList()
.equals(other.getSealedOneofEmptyExtendsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
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();
}
if (hasNoBox()) {
hash = (37 * hash) + NO_BOX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoBox());
}
if (getUnknownFieldsAnnotationsCount() > 0) {
hash = (37 * hash) + UNKNOWN_FIELDS_ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getUnknownFieldsAnnotationsList().hashCode();
}
if (hasNoDefaultValuesInConstructor()) {
hash = (37 * hash) + NO_DEFAULT_VALUES_IN_CONSTRUCTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoDefaultValuesInConstructor());
}
if (getSealedOneofCompanionExtendsCount() > 0) {
hash = (37 * hash) + SEALED_ONEOF_COMPANION_EXTENDS_FIELD_NUMBER;
hash = (53 * hash) + getSealedOneofCompanionExtendsList().hashCode();
}
if (getDerivesCount() > 0) {
hash = (37 * hash) + DERIVES_FIELD_NUMBER;
hash = (53 * hash) + getDerivesList().hashCode();
}
if (getSealedOneofDerivesCount() > 0) {
hash = (37 * hash) + SEALED_ONEOF_DERIVES_FIELD_NUMBER;
hash = (53 * hash) + getSealedOneofDerivesList().hashCode();
}
if (getSealedOneofEmptyExtendsCount() > 0) {
hash = (37 * hash) + SEALED_ONEOF_EMPTY_EXTENDS_FIELD_NUMBER;
hash = (53 * hash) + getSealedOneofEmptyExtendsList().hashCode();
}
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.MessageOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.MessageOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code scalapb.MessageOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
scalapb.options.Scalapb.MessageOptions, 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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
type_ = "";
companionAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sealedOneofExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
noBox_ = false;
unknownFieldsAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
noDefaultValuesInConstructor_ = false;
sealedOneofCompanionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
derives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sealedOneofDerives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
sealedOneofEmptyExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.MessageOptions result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
extends_.makeImmutable();
result.extends_ = extends_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
companionExtends_.makeImmutable();
result.companionExtends_ = companionExtends_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
annotations_.makeImmutable();
result.annotations_ = annotations_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000008) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
companionAnnotations_.makeImmutable();
result.companionAnnotations_ = companionAnnotations_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
sealedOneofExtends_.makeImmutable();
result.sealedOneofExtends_ = sealedOneofExtends_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.noBox_ = noBox_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
unknownFieldsAnnotations_.makeImmutable();
result.unknownFieldsAnnotations_ = unknownFieldsAnnotations_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.noDefaultValuesInConstructor_ = noDefaultValuesInConstructor_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
sealedOneofCompanionExtends_.makeImmutable();
result.sealedOneofCompanionExtends_ = sealedOneofCompanionExtends_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
derives_.makeImmutable();
result.derives_ = derives_;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
sealedOneofDerives_.makeImmutable();
result.sealedOneofDerives_ = sealedOneofDerives_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
sealedOneofEmptyExtends_.makeImmutable();
result.sealedOneofEmptyExtends_ = sealedOneofEmptyExtends_;
}
result.bitField0_ |= to_bitField0_;
}
@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_ |= 0x00000001;
} else {
ensureExtendsIsMutable();
extends_.addAll(other.extends_);
}
onChanged();
}
if (!other.companionExtends_.isEmpty()) {
if (companionExtends_.isEmpty()) {
companionExtends_ = other.companionExtends_;
bitField0_ |= 0x00000002;
} else {
ensureCompanionExtendsIsMutable();
companionExtends_.addAll(other.companionExtends_);
}
onChanged();
}
if (!other.annotations_.isEmpty()) {
if (annotations_.isEmpty()) {
annotations_ = other.annotations_;
bitField0_ |= 0x00000004;
} else {
ensureAnnotationsIsMutable();
annotations_.addAll(other.annotations_);
}
onChanged();
}
if (other.hasType()) {
type_ = other.type_;
bitField0_ |= 0x00000008;
onChanged();
}
if (!other.companionAnnotations_.isEmpty()) {
if (companionAnnotations_.isEmpty()) {
companionAnnotations_ = other.companionAnnotations_;
bitField0_ |= 0x00000010;
} else {
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.addAll(other.companionAnnotations_);
}
onChanged();
}
if (!other.sealedOneofExtends_.isEmpty()) {
if (sealedOneofExtends_.isEmpty()) {
sealedOneofExtends_ = other.sealedOneofExtends_;
bitField0_ |= 0x00000020;
} else {
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.addAll(other.sealedOneofExtends_);
}
onChanged();
}
if (other.hasNoBox()) {
setNoBox(other.getNoBox());
}
if (!other.unknownFieldsAnnotations_.isEmpty()) {
if (unknownFieldsAnnotations_.isEmpty()) {
unknownFieldsAnnotations_ = other.unknownFieldsAnnotations_;
bitField0_ |= 0x00000080;
} else {
ensureUnknownFieldsAnnotationsIsMutable();
unknownFieldsAnnotations_.addAll(other.unknownFieldsAnnotations_);
}
onChanged();
}
if (other.hasNoDefaultValuesInConstructor()) {
setNoDefaultValuesInConstructor(other.getNoDefaultValuesInConstructor());
}
if (!other.sealedOneofCompanionExtends_.isEmpty()) {
if (sealedOneofCompanionExtends_.isEmpty()) {
sealedOneofCompanionExtends_ = other.sealedOneofCompanionExtends_;
bitField0_ |= 0x00000200;
} else {
ensureSealedOneofCompanionExtendsIsMutable();
sealedOneofCompanionExtends_.addAll(other.sealedOneofCompanionExtends_);
}
onChanged();
}
if (!other.derives_.isEmpty()) {
if (derives_.isEmpty()) {
derives_ = other.derives_;
bitField0_ |= 0x00000400;
} else {
ensureDerivesIsMutable();
derives_.addAll(other.derives_);
}
onChanged();
}
if (!other.sealedOneofDerives_.isEmpty()) {
if (sealedOneofDerives_.isEmpty()) {
sealedOneofDerives_ = other.sealedOneofDerives_;
bitField0_ |= 0x00000800;
} else {
ensureSealedOneofDerivesIsMutable();
sealedOneofDerives_.addAll(other.sealedOneofDerives_);
}
onChanged();
}
if (!other.sealedOneofEmptyExtends_.isEmpty()) {
if (sealedOneofEmptyExtends_.isEmpty()) {
sealedOneofEmptyExtends_ = other.sealedOneofEmptyExtends_;
bitField0_ |= 0x00001000;
} else {
ensureSealedOneofEmptyExtendsIsMutable();
sealedOneofEmptyExtends_.addAll(other.sealedOneofEmptyExtends_);
}
onChanged();
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureExtendsIsMutable();
extends_.add(bs);
break;
} // case 10
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureCompanionExtendsIsMutable();
companionExtends_.add(bs);
break;
} // case 18
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureAnnotationsIsMutable();
annotations_.add(bs);
break;
} // case 26
case 34: {
type_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.add(bs);
break;
} // case 42
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.add(bs);
break;
} // case 50
case 56: {
noBox_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureUnknownFieldsAnnotationsIsMutable();
unknownFieldsAnnotations_.add(bs);
break;
} // case 66
case 72: {
noDefaultValuesInConstructor_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureSealedOneofCompanionExtendsIsMutable();
sealedOneofCompanionExtends_.add(bs);
break;
} // case 82
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureDerivesIsMutable();
derives_.add(bs);
break;
} // case 90
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureSealedOneofDerivesIsMutable();
sealedOneofDerives_.add(bs);
break;
} // case 98
case 106: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureSealedOneofEmptyExtendsIsMutable();
sealedOneofEmptyExtends_.add(bs);
break;
} // case 106
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExtendsIsMutable() {
if (!extends_.isModifiable()) {
extends_ = new com.google.protobuf.LazyStringArrayList(extends_);
}
bitField0_ |= 0x00000001;
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
extends_.makeImmutable();
return extends_;
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The extends to set.
* @return This builder for chaining.
*/
public Builder setExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @param value The extends to add.
* @return This builder for chaining.
*/
public Builder addExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @param values The extends to add.
* @return This builder for chaining.
*/
public Builder addAllExtends(
java.lang.Iterable values) {
ensureExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extends_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @return This builder for chaining.
*/
public Builder clearExtends() {
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the case class.
*
*
* repeated string extends = 1;
* @param value The bytes of the extends to add.
* @return This builder for chaining.
*/
public Builder addExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCompanionExtendsIsMutable() {
if (!companionExtends_.isModifiable()) {
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;
* @return A list containing the companionExtends.
*/
public com.google.protobuf.ProtocolStringList
getCompanionExtendsList() {
companionExtends_.makeImmutable();
return companionExtends_;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return The count of companionExtends.
*/
public int getCompanionExtendsCount() {
return companionExtends_.size();
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param index The index of the element to return.
* @return The companionExtends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the companionExtends at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The companionExtends to set.
* @return This builder for chaining.
*/
public Builder setCompanionExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionExtendsIsMutable();
companionExtends_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param value The companionExtends to add.
* @return This builder for chaining.
*/
public Builder addCompanionExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionExtendsIsMutable();
companionExtends_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param values The companionExtends to add.
* @return This builder for chaining.
*/
public Builder addAllCompanionExtends(
java.lang.Iterable values) {
ensureCompanionExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, companionExtends_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return This builder for chaining.
*/
public Builder clearCompanionExtends() {
companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param value The bytes of the companionExtends to add.
* @return This builder for chaining.
*/
public Builder addCompanionExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionExtendsIsMutable();
companionExtends_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAnnotationsIsMutable() {
if (!annotations_.isModifiable()) {
annotations_ = new com.google.protobuf.LazyStringArrayList(annotations_);
}
bitField0_ |= 0x00000004;
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @return A list containing the annotations.
*/
public com.google.protobuf.ProtocolStringList
getAnnotationsList() {
annotations_.makeImmutable();
return annotations_;
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @return The count of annotations.
*/
public int getAnnotationsCount() {
return annotations_.size();
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
public java.lang.String getAnnotations(int index) {
return annotations_.get(index);
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The annotations to set.
* @return This builder for chaining.
*/
public Builder setAnnotations(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param value The annotations to add.
* @return This builder for chaining.
*/
public Builder addAnnotations(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param values The annotations to add.
* @return This builder for chaining.
*/
public Builder addAllAnnotations(
java.lang.Iterable values) {
ensureAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, annotations_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @return This builder for chaining.
*/
public Builder clearAnnotations() {
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated case class.
*
*
* repeated string annotations = 3;
* @param value The bytes of the annotations to add.
* @return This builder for chaining.
*/
public Builder addAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.add(value);
bitField0_ |= 0x00000004;
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;
* @return Whether the type field is set.
*/
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;
* @return The type.
*/
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;
* @return The bytes for type.
*/
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;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* All instances of this message will be converted to this type. An implicit TypeMapper
* must be present.
*
*
* optional string type = 4;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* All instances of this message will be converted to this type. An implicit TypeMapper
* must be present.
*
*
* optional string type = 4;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList companionAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCompanionAnnotationsIsMutable() {
if (!companionAnnotations_.isModifiable()) {
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;
* @return A list containing the companionAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getCompanionAnnotationsList() {
companionAnnotations_.makeImmutable();
return companionAnnotations_;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @return The count of companionAnnotations.
*/
public int getCompanionAnnotationsCount() {
return companionAnnotations_.size();
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @param index The index of the element to return.
* @return The companionAnnotations at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the companionAnnotations at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The companionAnnotations to set.
* @return This builder for chaining.
*/
public Builder setCompanionAnnotations(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @param value The companionAnnotations to add.
* @return This builder for chaining.
*/
public Builder addCompanionAnnotations(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @param values The companionAnnotations to add.
* @return This builder for chaining.
*/
public Builder addAllCompanionAnnotations(
java.lang.Iterable values) {
ensureCompanionAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, companionAnnotations_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @return This builder for chaining.
*/
public Builder clearCompanionAnnotations() {
companionAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the companion object of the generated class.
*
*
* repeated string companion_annotations = 5;
* @param value The bytes of the companionAnnotations to add.
* @return This builder for chaining.
*/
public Builder addCompanionAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionAnnotationsIsMutable();
companionAnnotations_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList sealedOneofExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSealedOneofExtendsIsMutable() {
if (!sealedOneofExtends_.isModifiable()) {
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;
* @return A list containing the sealedOneofExtends.
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofExtendsList() {
sealedOneofExtends_.makeImmutable();
return sealedOneofExtends_;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
* @return The count of sealedOneofExtends.
*/
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;
* @param index The index of the element to return.
* @return The sealedOneofExtends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofExtends at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The sealedOneofExtends to set.
* @return This builder for chaining.
*/
public Builder setSealedOneofExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
* @param value The sealedOneofExtends to add.
* @return This builder for chaining.
*/
public Builder addSealedOneofExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
* @param values The sealedOneofExtends to add.
* @return This builder for chaining.
*/
public Builder addAllSealedOneofExtends(
java.lang.Iterable values) {
ensureSealedOneofExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sealedOneofExtends_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed_oneof base trait.
*
*
* repeated string sealed_oneof_extends = 6;
* @return This builder for chaining.
*/
public Builder clearSealedOneofExtends() {
sealedOneofExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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;
* @param value The bytes of the sealedOneofExtends to add.
* @return This builder for chaining.
*/
public Builder addSealedOneofExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofExtendsIsMutable();
sealedOneofExtends_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private boolean noBox_ ;
/**
*
* If true, when this message is used as an optional field, do not wrap it in an `Option`.
* This is equivalent of setting `(field).no_box` to true on each field with the message type.
*
*
* optional bool no_box = 7;
* @return Whether the noBox field is set.
*/
@java.lang.Override
public boolean hasNoBox() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* If true, when this message is used as an optional field, do not wrap it in an `Option`.
* This is equivalent of setting `(field).no_box` to true on each field with the message type.
*
*
* optional bool no_box = 7;
* @return The noBox.
*/
@java.lang.Override
public boolean getNoBox() {
return noBox_;
}
/**
*
* If true, when this message is used as an optional field, do not wrap it in an `Option`.
* This is equivalent of setting `(field).no_box` to true on each field with the message type.
*
*
* optional bool no_box = 7;
* @param value The noBox to set.
* @return This builder for chaining.
*/
public Builder setNoBox(boolean value) {
noBox_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* If true, when this message is used as an optional field, do not wrap it in an `Option`.
* This is equivalent of setting `(field).no_box` to true on each field with the message type.
*
*
* optional bool no_box = 7;
* @return This builder for chaining.
*/
public Builder clearNoBox() {
bitField0_ = (bitField0_ & ~0x00000040);
noBox_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList unknownFieldsAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUnknownFieldsAnnotationsIsMutable() {
if (!unknownFieldsAnnotations_.isModifiable()) {
unknownFieldsAnnotations_ = new com.google.protobuf.LazyStringArrayList(unknownFieldsAnnotations_);
}
bitField0_ |= 0x00000080;
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @return A list containing the unknownFieldsAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getUnknownFieldsAnnotationsList() {
unknownFieldsAnnotations_.makeImmutable();
return unknownFieldsAnnotations_;
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @return The count of unknownFieldsAnnotations.
*/
public int getUnknownFieldsAnnotationsCount() {
return unknownFieldsAnnotations_.size();
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param index The index of the element to return.
* @return The unknownFieldsAnnotations at the given index.
*/
public java.lang.String getUnknownFieldsAnnotations(int index) {
return unknownFieldsAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param index The index of the value to return.
* @return The bytes of the unknownFieldsAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getUnknownFieldsAnnotationsBytes(int index) {
return unknownFieldsAnnotations_.getByteString(index);
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param index The index to set the value at.
* @param value The unknownFieldsAnnotations to set.
* @return This builder for chaining.
*/
public Builder setUnknownFieldsAnnotations(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUnknownFieldsAnnotationsIsMutable();
unknownFieldsAnnotations_.set(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param value The unknownFieldsAnnotations to add.
* @return This builder for chaining.
*/
public Builder addUnknownFieldsAnnotations(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUnknownFieldsAnnotationsIsMutable();
unknownFieldsAnnotations_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param values The unknownFieldsAnnotations to add.
* @return This builder for chaining.
*/
public Builder addAllUnknownFieldsAnnotations(
java.lang.Iterable values) {
ensureUnknownFieldsAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unknownFieldsAnnotations_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @return This builder for chaining.
*/
public Builder clearUnknownFieldsAnnotations() {
unknownFieldsAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated `unknownFields` case class field.
*
*
* repeated string unknown_fields_annotations = 8;
* @param value The bytes of the unknownFieldsAnnotations to add.
* @return This builder for chaining.
*/
public Builder addUnknownFieldsAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureUnknownFieldsAnnotationsIsMutable();
unknownFieldsAnnotations_.add(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private boolean noDefaultValuesInConstructor_ ;
/**
*
* If true, no default values will be generated in message constructors.
* If set (to true or false), the message-level setting overrides the
* file-level value, and can be overridden by the field-level setting.
*
*
* optional bool no_default_values_in_constructor = 9;
* @return Whether the noDefaultValuesInConstructor field is set.
*/
@java.lang.Override
public boolean hasNoDefaultValuesInConstructor() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* If true, no default values will be generated in message constructors.
* If set (to true or false), the message-level setting overrides the
* file-level value, and can be overridden by the field-level setting.
*
*
* optional bool no_default_values_in_constructor = 9;
* @return The noDefaultValuesInConstructor.
*/
@java.lang.Override
public boolean getNoDefaultValuesInConstructor() {
return noDefaultValuesInConstructor_;
}
/**
*
* If true, no default values will be generated in message constructors.
* If set (to true or false), the message-level setting overrides the
* file-level value, and can be overridden by the field-level setting.
*
*
* optional bool no_default_values_in_constructor = 9;
* @param value The noDefaultValuesInConstructor to set.
* @return This builder for chaining.
*/
public Builder setNoDefaultValuesInConstructor(boolean value) {
noDefaultValuesInConstructor_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* If true, no default values will be generated in message constructors.
* If set (to true or false), the message-level setting overrides the
* file-level value, and can be overridden by the field-level setting.
*
*
* optional bool no_default_values_in_constructor = 9;
* @return This builder for chaining.
*/
public Builder clearNoDefaultValuesInConstructor() {
bitField0_ = (bitField0_ & ~0x00000100);
noDefaultValuesInConstructor_ = false;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList sealedOneofCompanionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSealedOneofCompanionExtendsIsMutable() {
if (!sealedOneofCompanionExtends_.isModifiable()) {
sealedOneofCompanionExtends_ = new com.google.protobuf.LazyStringArrayList(sealedOneofCompanionExtends_);
}
bitField0_ |= 0x00000200;
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @return A list containing the sealedOneofCompanionExtends.
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofCompanionExtendsList() {
sealedOneofCompanionExtends_.makeImmutable();
return sealedOneofCompanionExtends_;
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @return The count of sealedOneofCompanionExtends.
*/
public int getSealedOneofCompanionExtendsCount() {
return sealedOneofCompanionExtends_.size();
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param index The index of the element to return.
* @return The sealedOneofCompanionExtends at the given index.
*/
public java.lang.String getSealedOneofCompanionExtends(int index) {
return sealedOneofCompanionExtends_.get(index);
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofCompanionExtends at the given index.
*/
public com.google.protobuf.ByteString
getSealedOneofCompanionExtendsBytes(int index) {
return sealedOneofCompanionExtends_.getByteString(index);
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param index The index to set the value at.
* @param value The sealedOneofCompanionExtends to set.
* @return This builder for chaining.
*/
public Builder setSealedOneofCompanionExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofCompanionExtendsIsMutable();
sealedOneofCompanionExtends_.set(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param value The sealedOneofCompanionExtends to add.
* @return This builder for chaining.
*/
public Builder addSealedOneofCompanionExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofCompanionExtendsIsMutable();
sealedOneofCompanionExtends_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param values The sealedOneofCompanionExtends to add.
* @return This builder for chaining.
*/
public Builder addAllSealedOneofCompanionExtends(
java.lang.Iterable values) {
ensureSealedOneofCompanionExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sealedOneofCompanionExtends_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @return This builder for chaining.
*/
public Builder clearSealedOneofCompanionExtends() {
sealedOneofCompanionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to generated sealed oneof base trait's companion object.
*
*
* repeated string sealed_oneof_companion_extends = 10;
* @param value The bytes of the sealedOneofCompanionExtends to add.
* @return This builder for chaining.
*/
public Builder addSealedOneofCompanionExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofCompanionExtendsIsMutable();
sealedOneofCompanionExtends_.add(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList derives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureDerivesIsMutable() {
if (!derives_.isModifiable()) {
derives_ = new com.google.protobuf.LazyStringArrayList(derives_);
}
bitField0_ |= 0x00000400;
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @return A list containing the derives.
*/
public com.google.protobuf.ProtocolStringList
getDerivesList() {
derives_.makeImmutable();
return derives_;
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @return The count of derives.
*/
public int getDerivesCount() {
return derives_.size();
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param index The index of the element to return.
* @return The derives at the given index.
*/
public java.lang.String getDerives(int index) {
return derives_.get(index);
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param index The index of the value to return.
* @return The bytes of the derives at the given index.
*/
public com.google.protobuf.ByteString
getDerivesBytes(int index) {
return derives_.getByteString(index);
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param index The index to set the value at.
* @param value The derives to set.
* @return This builder for chaining.
*/
public Builder setDerives(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDerivesIsMutable();
derives_.set(index, value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param value The derives to add.
* @return This builder for chaining.
*/
public Builder addDerives(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureDerivesIsMutable();
derives_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param values The derives to add.
* @return This builder for chaining.
*/
public Builder addAllDerives(
java.lang.Iterable values) {
ensureDerivesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, derives_);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @return This builder for chaining.
*/
public Builder clearDerives() {
derives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000400);;
onChanged();
return this;
}
/**
*
* Adds a derives clause to the message case class
*
*
* repeated string derives = 11;
* @param value The bytes of the derives to add.
* @return This builder for chaining.
*/
public Builder addDerivesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureDerivesIsMutable();
derives_.add(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList sealedOneofDerives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSealedOneofDerivesIsMutable() {
if (!sealedOneofDerives_.isModifiable()) {
sealedOneofDerives_ = new com.google.protobuf.LazyStringArrayList(sealedOneofDerives_);
}
bitField0_ |= 0x00000800;
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @return A list containing the sealedOneofDerives.
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofDerivesList() {
sealedOneofDerives_.makeImmutable();
return sealedOneofDerives_;
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @return The count of sealedOneofDerives.
*/
public int getSealedOneofDerivesCount() {
return sealedOneofDerives_.size();
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param index The index of the element to return.
* @return The sealedOneofDerives at the given index.
*/
public java.lang.String getSealedOneofDerives(int index) {
return sealedOneofDerives_.get(index);
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofDerives at the given index.
*/
public com.google.protobuf.ByteString
getSealedOneofDerivesBytes(int index) {
return sealedOneofDerives_.getByteString(index);
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param index The index to set the value at.
* @param value The sealedOneofDerives to set.
* @return This builder for chaining.
*/
public Builder setSealedOneofDerives(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofDerivesIsMutable();
sealedOneofDerives_.set(index, value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param value The sealedOneofDerives to add.
* @return This builder for chaining.
*/
public Builder addSealedOneofDerives(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofDerivesIsMutable();
sealedOneofDerives_.add(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param values The sealedOneofDerives to add.
* @return This builder for chaining.
*/
public Builder addAllSealedOneofDerives(
java.lang.Iterable values) {
ensureSealedOneofDerivesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sealedOneofDerives_);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @return This builder for chaining.
*/
public Builder clearSealedOneofDerives() {
sealedOneofDerives_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);;
onChanged();
return this;
}
/**
*
* Additional classes and traits to add to the derives clause of a sealed oneof.
*
*
* repeated string sealed_oneof_derives = 12;
* @param value The bytes of the sealedOneofDerives to add.
* @return This builder for chaining.
*/
public Builder addSealedOneofDerivesBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofDerivesIsMutable();
sealedOneofDerives_.add(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList sealedOneofEmptyExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureSealedOneofEmptyExtendsIsMutable() {
if (!sealedOneofEmptyExtends_.isModifiable()) {
sealedOneofEmptyExtends_ = new com.google.protobuf.LazyStringArrayList(sealedOneofEmptyExtends_);
}
bitField0_ |= 0x00001000;
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @return A list containing the sealedOneofEmptyExtends.
*/
public com.google.protobuf.ProtocolStringList
getSealedOneofEmptyExtendsList() {
sealedOneofEmptyExtends_.makeImmutable();
return sealedOneofEmptyExtends_;
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @return The count of sealedOneofEmptyExtends.
*/
public int getSealedOneofEmptyExtendsCount() {
return sealedOneofEmptyExtends_.size();
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param index The index of the element to return.
* @return The sealedOneofEmptyExtends at the given index.
*/
public java.lang.String getSealedOneofEmptyExtends(int index) {
return sealedOneofEmptyExtends_.get(index);
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param index The index of the value to return.
* @return The bytes of the sealedOneofEmptyExtends at the given index.
*/
public com.google.protobuf.ByteString
getSealedOneofEmptyExtendsBytes(int index) {
return sealedOneofEmptyExtends_.getByteString(index);
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param index The index to set the value at.
* @param value The sealedOneofEmptyExtends to set.
* @return This builder for chaining.
*/
public Builder setSealedOneofEmptyExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofEmptyExtendsIsMutable();
sealedOneofEmptyExtends_.set(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param value The sealedOneofEmptyExtends to add.
* @return This builder for chaining.
*/
public Builder addSealedOneofEmptyExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofEmptyExtendsIsMutable();
sealedOneofEmptyExtends_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param values The sealedOneofEmptyExtends to add.
* @return This builder for chaining.
*/
public Builder addAllSealedOneofEmptyExtends(
java.lang.Iterable values) {
ensureSealedOneofEmptyExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, sealedOneofEmptyExtends_);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @return This builder for chaining.
*/
public Builder clearSealedOneofEmptyExtends() {
sealedOneofEmptyExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);;
onChanged();
return this;
}
/**
*
* Additional traits to mixin for the empty case object of sealed oneofs.
*
*
* repeated string sealed_oneof_empty_extends = 13;
* @param value The bytes of the sealedOneofEmptyExtends to add.
* @return This builder for chaining.
*/
public Builder addSealedOneofEmptyExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureSealedOneofEmptyExtendsIsMutable();
sealedOneofEmptyExtends_.add(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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 CollectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.Collection)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return The type.
*/
java.lang.String getType();
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* Set to true if this collection type is not allowed to be empty, for example
* cats.data.NonEmptyList. When true, ScalaPB will not generate `clearX` for the repeated
* field and not provide a default argument in the constructor.
*
*
* optional bool non_empty = 2;
* @return Whether the nonEmpty field is set.
*/
boolean hasNonEmpty();
/**
*
* Set to true if this collection type is not allowed to be empty, for example
* cats.data.NonEmptyList. When true, ScalaPB will not generate `clearX` for the repeated
* field and not provide a default argument in the constructor.
*
*
* optional bool non_empty = 2;
* @return The nonEmpty.
*/
boolean getNonEmpty();
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return Whether the adapter field is set.
*/
boolean hasAdapter();
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return The adapter.
*/
java.lang.String getAdapter();
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return The bytes for adapter.
*/
com.google.protobuf.ByteString
getAdapterBytes();
}
/**
*
* Represents a custom Collection type in Scala. This allows ScalaPB to integrate with
* collection types that are different enough from the ones in the standard library.
*
*
* Protobuf type {@code scalapb.Collection}
*/
public static final class Collection extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:scalapb.Collection)
CollectionOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
Collection.class.getName());
}
// Use Collection.newBuilder() to construct.
private Collection(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Collection() {
type_ = "";
adapter_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_Collection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_Collection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.Collection.class, scalapb.options.Scalapb.Collection.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return The type.
*/
@java.lang.Override
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;
}
}
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return The bytes for type.
*/
@java.lang.Override
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 NON_EMPTY_FIELD_NUMBER = 2;
private boolean nonEmpty_ = false;
/**
*
* Set to true if this collection type is not allowed to be empty, for example
* cats.data.NonEmptyList. When true, ScalaPB will not generate `clearX` for the repeated
* field and not provide a default argument in the constructor.
*
*
* optional bool non_empty = 2;
* @return Whether the nonEmpty field is set.
*/
@java.lang.Override
public boolean hasNonEmpty() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Set to true if this collection type is not allowed to be empty, for example
* cats.data.NonEmptyList. When true, ScalaPB will not generate `clearX` for the repeated
* field and not provide a default argument in the constructor.
*
*
* optional bool non_empty = 2;
* @return The nonEmpty.
*/
@java.lang.Override
public boolean getNonEmpty() {
return nonEmpty_;
}
public static final int ADAPTER_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object adapter_ = "";
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return Whether the adapter field is set.
*/
@java.lang.Override
public boolean hasAdapter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return The adapter.
*/
@java.lang.Override
public java.lang.String getAdapter() {
java.lang.Object ref = adapter_;
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()) {
adapter_ = s;
}
return s;
}
}
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return The bytes for adapter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdapterBytes() {
java.lang.Object ref = adapter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adapter_ = 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 {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, nonEmpty_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, adapter_);
}
getUnknownFields().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.GeneratedMessage.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, nonEmpty_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, adapter_);
}
size += getUnknownFields().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.Collection)) {
return super.equals(obj);
}
scalapb.options.Scalapb.Collection other = (scalapb.options.Scalapb.Collection) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasNonEmpty() != other.hasNonEmpty()) return false;
if (hasNonEmpty()) {
if (getNonEmpty()
!= other.getNonEmpty()) return false;
}
if (hasAdapter() != other.hasAdapter()) return false;
if (hasAdapter()) {
if (!getAdapter()
.equals(other.getAdapter())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasNonEmpty()) {
hash = (37 * hash) + NON_EMPTY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNonEmpty());
}
if (hasAdapter()) {
hash = (37 * hash) + ADAPTER_FIELD_NUMBER;
hash = (53 * hash) + getAdapter().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.Collection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.Collection 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.Collection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.Collection 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.Collection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.Collection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.Collection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.Collection parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.Collection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.Collection parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.Collection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.Collection parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.Collection 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Represents a custom Collection type in Scala. This allows ScalaPB to integrate with
* collection types that are different enough from the ones in the standard library.
*
*
* Protobuf type {@code scalapb.Collection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:scalapb.Collection)
scalapb.options.Scalapb.CollectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_Collection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_Collection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.Collection.class, scalapb.options.Scalapb.Collection.Builder.class);
}
// Construct using scalapb.options.Scalapb.Collection.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = "";
nonEmpty_ = false;
adapter_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_Collection_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.Collection getDefaultInstanceForType() {
return scalapb.options.Scalapb.Collection.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.Collection build() {
scalapb.options.Scalapb.Collection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.Collection buildPartial() {
scalapb.options.Scalapb.Collection result = new scalapb.options.Scalapb.Collection(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.Collection result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.nonEmpty_ = nonEmpty_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.adapter_ = adapter_;
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.Collection) {
return mergeFrom((scalapb.options.Scalapb.Collection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.Collection other) {
if (other == scalapb.options.Scalapb.Collection.getDefaultInstance()) return this;
if (other.hasType()) {
type_ = other.type_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasNonEmpty()) {
setNonEmpty(other.getNonEmpty());
}
if (other.hasAdapter()) {
adapter_ = other.adapter_;
bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
type_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
nonEmpty_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
adapter_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return Whether the type field is set.
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return The type.
*/
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;
}
}
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return The bytes for type.
*/
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;
}
}
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Type of the collection
*
*
* optional string type = 1;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private boolean nonEmpty_ ;
/**
*
* Set to true if this collection type is not allowed to be empty, for example
* cats.data.NonEmptyList. When true, ScalaPB will not generate `clearX` for the repeated
* field and not provide a default argument in the constructor.
*
*
* optional bool non_empty = 2;
* @return Whether the nonEmpty field is set.
*/
@java.lang.Override
public boolean hasNonEmpty() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Set to true if this collection type is not allowed to be empty, for example
* cats.data.NonEmptyList. When true, ScalaPB will not generate `clearX` for the repeated
* field and not provide a default argument in the constructor.
*
*
* optional bool non_empty = 2;
* @return The nonEmpty.
*/
@java.lang.Override
public boolean getNonEmpty() {
return nonEmpty_;
}
/**
*
* Set to true if this collection type is not allowed to be empty, for example
* cats.data.NonEmptyList. When true, ScalaPB will not generate `clearX` for the repeated
* field and not provide a default argument in the constructor.
*
*
* optional bool non_empty = 2;
* @param value The nonEmpty to set.
* @return This builder for chaining.
*/
public Builder setNonEmpty(boolean value) {
nonEmpty_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Set to true if this collection type is not allowed to be empty, for example
* cats.data.NonEmptyList. When true, ScalaPB will not generate `clearX` for the repeated
* field and not provide a default argument in the constructor.
*
*
* optional bool non_empty = 2;
* @return This builder for chaining.
*/
public Builder clearNonEmpty() {
bitField0_ = (bitField0_ & ~0x00000002);
nonEmpty_ = false;
onChanged();
return this;
}
private java.lang.Object adapter_ = "";
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return Whether the adapter field is set.
*/
public boolean hasAdapter() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return The adapter.
*/
public java.lang.String getAdapter() {
java.lang.Object ref = adapter_;
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()) {
adapter_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return The bytes for adapter.
*/
public com.google.protobuf.ByteString
getAdapterBytes() {
java.lang.Object ref = adapter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adapter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @param value The adapter to set.
* @return This builder for chaining.
*/
public Builder setAdapter(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
adapter_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @return This builder for chaining.
*/
public Builder clearAdapter() {
adapter_ = getDefaultInstance().getAdapter();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* An Adapter is a Scala object available at runtime that provides certain static methods
* that can operate on this collection type.
*
*
* optional string adapter = 3;
* @param value The bytes for adapter to set.
* @return This builder for chaining.
*/
public Builder setAdapterBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
adapter_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:scalapb.Collection)
}
// @@protoc_insertion_point(class_scope:scalapb.Collection)
private static final scalapb.options.Scalapb.Collection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.Collection();
}
public static scalapb.options.Scalapb.Collection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Collection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.Collection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FieldOptionsOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.FieldOptions)
com.google.protobuf.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
* optional string type = 1;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional string type = 1;
* @return The type.
*/
java.lang.String getType();
/**
* optional string type = 1;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
boolean hasScalaName();
/**
* optional string scala_name = 2;
* @return The scalaName.
*/
java.lang.String getScalaName();
/**
* optional string scala_name = 2;
* @return The bytes for scalaName.
*/
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;
* @return Whether the collectionType field is set.
*/
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;
* @return The collectionType.
*/
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;
* @return The bytes for collectionType.
*/
com.google.protobuf.ByteString
getCollectionTypeBytes();
/**
* optional .scalapb.Collection collection = 8;
* @return Whether the collection field is set.
*/
boolean hasCollection();
/**
* optional .scalapb.Collection collection = 8;
* @return The collection.
*/
scalapb.options.Scalapb.Collection getCollection();
/**
* optional .scalapb.Collection collection = 8;
*/
scalapb.options.Scalapb.CollectionOrBuilder getCollectionOrBuilder();
/**
*
* If the field is a map, you can specify custom Scala types for the key
* or value.
*
*
* optional string key_type = 4;
* @return Whether the keyType field is set.
*/
boolean hasKeyType();
/**
*
* If the field is a map, you can specify custom Scala types for the key
* or value.
*
*
* optional string key_type = 4;
* @return The keyType.
*/
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;
* @return The bytes for keyType.
*/
com.google.protobuf.ByteString
getKeyTypeBytes();
/**
* optional string value_type = 5;
* @return Whether the valueType field is set.
*/
boolean hasValueType();
/**
* optional string value_type = 5;
* @return The valueType.
*/
java.lang.String getValueType();
/**
* optional string value_type = 5;
* @return The bytes for valueType.
*/
com.google.protobuf.ByteString
getValueTypeBytes();
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @return A list containing the annotations.
*/
java.util.List
getAnnotationsList();
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @return The count of annotations.
*/
int getAnnotationsCount();
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
java.lang.String getAnnotations(int index);
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
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;
* @return Whether the mapType field is set.
*/
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;
* @return The mapType.
*/
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;
* @return The bytes for mapType.
*/
com.google.protobuf.ByteString
getMapTypeBytes();
/**
*
* If true, no default value will be generated for this field in the message
* constructor. If this field is set, it has the highest precedence and overrides the
* values at the message-level and file-level.
*
*
* optional bool no_default_value_in_constructor = 9;
* @return Whether the noDefaultValueInConstructor field is set.
*/
boolean hasNoDefaultValueInConstructor();
/**
*
* If true, no default value will be generated for this field in the message
* constructor. If this field is set, it has the highest precedence and overrides the
* values at the message-level and file-level.
*
*
* optional bool no_default_value_in_constructor = 9;
* @return The noDefaultValueInConstructor.
*/
boolean getNoDefaultValueInConstructor();
/**
*
* Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
*
*
* optional bool no_box = 30;
* @return Whether the noBox field is set.
*/
boolean hasNoBox();
/**
*
* Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
*
*
* optional bool no_box = 30;
* @return The noBox.
*/
boolean getNoBox();
/**
*
* Like no_box it does not box a value in Option[T], but also fails parsing when a value
* is not provided. This enables to emulate required fields in proto3.
*
*
* optional bool required = 31;
* @return Whether the required field is set.
*/
boolean hasRequired();
/**
*
* Like no_box it does not box a value in Option[T], but also fails parsing when a value
* is not provided. This enables to emulate required fields in proto3.
*
*
* optional bool required = 31;
* @return The required.
*/
boolean getRequired();
}
/**
* Protobuf type {@code scalapb.FieldOptions}
*/
public static final class FieldOptions extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
FieldOptions> implements
// @@protoc_insertion_point(message_implements:scalapb.FieldOptions)
FieldOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
FieldOptions.class.getName());
}
// Use FieldOptions.newBuilder() to construct.
private FieldOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
}
private FieldOptions() {
type_ = "";
scalaName_ = "";
collectionType_ = "";
keyType_ = "";
valueType_ = "";
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
mapType_ = "";
}
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.GeneratedMessage.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;
@SuppressWarnings("serial")
private volatile java.lang.Object type_ = "";
/**
* optional string type = 1;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string type = 1;
* @return The type.
*/
@java.lang.Override
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;
* @return The bytes for type.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private volatile java.lang.Object scalaName_ = "";
/**
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
@java.lang.Override
public boolean hasScalaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string scala_name = 2;
* @return The scalaName.
*/
@java.lang.Override
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;
* @return The bytes for scalaName.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
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;
* @return Whether the collectionType field is set.
*/
@java.lang.Override
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;
* @return The collectionType.
*/
@java.lang.Override
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;
* @return The bytes for collectionType.
*/
@java.lang.Override
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 COLLECTION_FIELD_NUMBER = 8;
private scalapb.options.Scalapb.Collection collection_;
/**
* optional .scalapb.Collection collection = 8;
* @return Whether the collection field is set.
*/
@java.lang.Override
public boolean hasCollection() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .scalapb.Collection collection = 8;
* @return The collection.
*/
@java.lang.Override
public scalapb.options.Scalapb.Collection getCollection() {
return collection_ == null ? scalapb.options.Scalapb.Collection.getDefaultInstance() : collection_;
}
/**
* optional .scalapb.Collection collection = 8;
*/
@java.lang.Override
public scalapb.options.Scalapb.CollectionOrBuilder getCollectionOrBuilder() {
return collection_ == null ? scalapb.options.Scalapb.Collection.getDefaultInstance() : collection_;
}
public static final int KEY_TYPE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
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;
* @return Whether the keyType field is set.
*/
@java.lang.Override
public boolean hasKeyType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* If the field is a map, you can specify custom Scala types for the key
* or value.
*
*
* optional string key_type = 4;
* @return The keyType.
*/
@java.lang.Override
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;
* @return The bytes for keyType.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private volatile java.lang.Object valueType_ = "";
/**
* optional string value_type = 5;
* @return Whether the valueType field is set.
*/
@java.lang.Override
public boolean hasValueType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string value_type = 5;
* @return The valueType.
*/
@java.lang.Override
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;
* @return The bytes for valueType.
*/
@java.lang.Override
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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @return A list containing the annotations.
*/
public com.google.protobuf.ProtocolStringList
getAnnotationsList() {
return annotations_;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @return The count of annotations.
*/
public int getAnnotationsCount() {
return annotations_.size();
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
public java.lang.String getAnnotations(int index) {
return annotations_.get(index);
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
public com.google.protobuf.ByteString
getAnnotationsBytes(int index) {
return annotations_.getByteString(index);
}
public static final int MAP_TYPE_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
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;
* @return Whether the mapType field is set.
*/
@java.lang.Override
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;
* @return The mapType.
*/
@java.lang.Override
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;
* @return The bytes for mapType.
*/
@java.lang.Override
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_DEFAULT_VALUE_IN_CONSTRUCTOR_FIELD_NUMBER = 9;
private boolean noDefaultValueInConstructor_ = false;
/**
*
* If true, no default value will be generated for this field in the message
* constructor. If this field is set, it has the highest precedence and overrides the
* values at the message-level and file-level.
*
*
* optional bool no_default_value_in_constructor = 9;
* @return Whether the noDefaultValueInConstructor field is set.
*/
@java.lang.Override
public boolean hasNoDefaultValueInConstructor() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* If true, no default value will be generated for this field in the message
* constructor. If this field is set, it has the highest precedence and overrides the
* values at the message-level and file-level.
*
*
* optional bool no_default_value_in_constructor = 9;
* @return The noDefaultValueInConstructor.
*/
@java.lang.Override
public boolean getNoDefaultValueInConstructor() {
return noDefaultValueInConstructor_;
}
public static final int NO_BOX_FIELD_NUMBER = 30;
private boolean noBox_ = false;
/**
*
* Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
*
*
* optional bool no_box = 30;
* @return Whether the noBox field is set.
*/
@java.lang.Override
public boolean hasNoBox() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
*
*
* optional bool no_box = 30;
* @return The noBox.
*/
@java.lang.Override
public boolean getNoBox() {
return noBox_;
}
public static final int REQUIRED_FIELD_NUMBER = 31;
private boolean required_ = false;
/**
*
* Like no_box it does not box a value in Option[T], but also fails parsing when a value
* is not provided. This enables to emulate required fields in proto3.
*
*
* optional bool required = 31;
* @return Whether the required field is set.
*/
@java.lang.Override
public boolean hasRequired() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Like no_box it does not box a value in Option[T], but also fails parsing when a value
* is not provided. This enables to emulate required fields in proto3.
*
*
* optional bool required = 31;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionSerializer
extensionWriter = newExtensionSerializer();
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, scalaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, collectionType_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, keyType_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, valueType_);
}
for (int i = 0; i < annotations_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, annotations_.getRaw(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 7, mapType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(8, getCollection());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(9, noDefaultValueInConstructor_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(30, noBox_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(31, required_);
}
extensionWriter.writeUntil(536870912, output);
getUnknownFields().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.GeneratedMessage.computeStringSize(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scalaName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, collectionType_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(4, keyType_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessage.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_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(7, mapType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getCollection());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, noDefaultValueInConstructor_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(30, noBox_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(31, required_);
}
size += extensionsSerializedSize();
size += getUnknownFields().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 (hasCollection() != other.hasCollection()) return false;
if (hasCollection()) {
if (!getCollection()
.equals(other.getCollection())) 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 (hasNoDefaultValueInConstructor() != other.hasNoDefaultValueInConstructor()) return false;
if (hasNoDefaultValueInConstructor()) {
if (getNoDefaultValueInConstructor()
!= other.getNoDefaultValueInConstructor()) return false;
}
if (hasNoBox() != other.hasNoBox()) return false;
if (hasNoBox()) {
if (getNoBox()
!= other.getNoBox()) return false;
}
if (hasRequired() != other.hasRequired()) return false;
if (hasRequired()) {
if (getRequired()
!= other.getRequired()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
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 (hasCollection()) {
hash = (37 * hash) + COLLECTION_FIELD_NUMBER;
hash = (53 * hash) + getCollection().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 (hasNoDefaultValueInConstructor()) {
hash = (37 * hash) + NO_DEFAULT_VALUE_IN_CONSTRUCTOR_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoDefaultValueInConstructor());
}
if (hasNoBox()) {
hash = (37 * hash) + NO_BOX_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNoBox());
}
if (hasRequired()) {
hash = (37 * hash) + REQUIRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequired());
}
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.FieldOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.FieldOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code scalapb.FieldOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
scalapb.options.Scalapb.FieldOptions, 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.GeneratedMessage.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.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getCollectionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
type_ = "";
scalaName_ = "";
collectionType_ = "";
collection_ = null;
if (collectionBuilder_ != null) {
collectionBuilder_.dispose();
collectionBuilder_ = null;
}
keyType_ = "";
valueType_ = "";
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
mapType_ = "";
noDefaultValueInConstructor_ = false;
noBox_ = false;
required_ = false;
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.FieldOptions result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scalaName_ = scalaName_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.collectionType_ = collectionType_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.collection_ = collectionBuilder_ == null
? collection_
: collectionBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.keyType_ = keyType_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.valueType_ = valueType_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
annotations_.makeImmutable();
result.annotations_ = annotations_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.mapType_ = mapType_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.noDefaultValueInConstructor_ = noDefaultValueInConstructor_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.noBox_ = noBox_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.required_ = required_;
to_bitField0_ |= 0x00000200;
}
result.bitField0_ |= to_bitField0_;
}
@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()) {
type_ = other.type_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasScalaName()) {
scalaName_ = other.scalaName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasCollectionType()) {
collectionType_ = other.collectionType_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCollection()) {
mergeCollection(other.getCollection());
}
if (other.hasKeyType()) {
keyType_ = other.keyType_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasValueType()) {
valueType_ = other.valueType_;
bitField0_ |= 0x00000020;
onChanged();
}
if (!other.annotations_.isEmpty()) {
if (annotations_.isEmpty()) {
annotations_ = other.annotations_;
bitField0_ |= 0x00000040;
} else {
ensureAnnotationsIsMutable();
annotations_.addAll(other.annotations_);
}
onChanged();
}
if (other.hasMapType()) {
mapType_ = other.mapType_;
bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasNoDefaultValueInConstructor()) {
setNoDefaultValueInConstructor(other.getNoDefaultValueInConstructor());
}
if (other.hasNoBox()) {
setNoBox(other.getNoBox());
}
if (other.hasRequired()) {
setRequired(other.getRequired());
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
type_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
scalaName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
collectionType_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
keyType_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 34
case 42: {
valueType_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 42
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureAnnotationsIsMutable();
annotations_.add(bs);
break;
} // case 50
case 58: {
mapType_ = input.readBytes();
bitField0_ |= 0x00000080;
break;
} // case 58
case 66: {
input.readMessage(
getCollectionFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 66
case 72: {
noDefaultValueInConstructor_ = input.readBool();
bitField0_ |= 0x00000100;
break;
} // case 72
case 240: {
noBox_ = input.readBool();
bitField0_ |= 0x00000200;
break;
} // case 240
case 248: {
required_ = input.readBool();
bitField0_ |= 0x00000400;
break;
} // case 248
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object type_ = "";
/**
* optional string type = 1;
* @return Whether the type field is set.
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string type = 1;
* @return The type.
*/
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;
* @return The bytes for type.
*/
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;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string type = 1;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string type = 1;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object scalaName_ = "";
/**
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
public boolean hasScalaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string scala_name = 2;
* @return The scalaName.
*/
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;
* @return The bytes for scalaName.
*/
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;
* @param value The scalaName to set.
* @return This builder for chaining.
*/
public Builder setScalaName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scalaName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string scala_name = 2;
* @return This builder for chaining.
*/
public Builder clearScalaName() {
scalaName_ = getDefaultInstance().getScalaName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string scala_name = 2;
* @param value The bytes for scalaName to set.
* @return This builder for chaining.
*/
public Builder setScalaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
scalaName_ = value;
bitField0_ |= 0x00000002;
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;
* @return Whether the collectionType field is set.
*/
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;
* @return The collectionType.
*/
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;
* @return The bytes for collectionType.
*/
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;
* @param value The collectionType to set.
* @return This builder for chaining.
*/
public Builder setCollectionType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
collectionType_ = value;
bitField0_ |= 0x00000004;
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;
* @return This builder for chaining.
*/
public Builder clearCollectionType() {
collectionType_ = getDefaultInstance().getCollectionType();
bitField0_ = (bitField0_ & ~0x00000004);
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;
* @param value The bytes for collectionType to set.
* @return This builder for chaining.
*/
public Builder setCollectionTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
collectionType_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private scalapb.options.Scalapb.Collection collection_;
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.Collection, scalapb.options.Scalapb.Collection.Builder, scalapb.options.Scalapb.CollectionOrBuilder> collectionBuilder_;
/**
* optional .scalapb.Collection collection = 8;
* @return Whether the collection field is set.
*/
public boolean hasCollection() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .scalapb.Collection collection = 8;
* @return The collection.
*/
public scalapb.options.Scalapb.Collection getCollection() {
if (collectionBuilder_ == null) {
return collection_ == null ? scalapb.options.Scalapb.Collection.getDefaultInstance() : collection_;
} else {
return collectionBuilder_.getMessage();
}
}
/**
* optional .scalapb.Collection collection = 8;
*/
public Builder setCollection(scalapb.options.Scalapb.Collection value) {
if (collectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collection_ = value;
} else {
collectionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .scalapb.Collection collection = 8;
*/
public Builder setCollection(
scalapb.options.Scalapb.Collection.Builder builderForValue) {
if (collectionBuilder_ == null) {
collection_ = builderForValue.build();
} else {
collectionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional .scalapb.Collection collection = 8;
*/
public Builder mergeCollection(scalapb.options.Scalapb.Collection value) {
if (collectionBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
collection_ != null &&
collection_ != scalapb.options.Scalapb.Collection.getDefaultInstance()) {
getCollectionBuilder().mergeFrom(value);
} else {
collection_ = value;
}
} else {
collectionBuilder_.mergeFrom(value);
}
if (collection_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* optional .scalapb.Collection collection = 8;
*/
public Builder clearCollection() {
bitField0_ = (bitField0_ & ~0x00000008);
collection_ = null;
if (collectionBuilder_ != null) {
collectionBuilder_.dispose();
collectionBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .scalapb.Collection collection = 8;
*/
public scalapb.options.Scalapb.Collection.Builder getCollectionBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getCollectionFieldBuilder().getBuilder();
}
/**
* optional .scalapb.Collection collection = 8;
*/
public scalapb.options.Scalapb.CollectionOrBuilder getCollectionOrBuilder() {
if (collectionBuilder_ != null) {
return collectionBuilder_.getMessageOrBuilder();
} else {
return collection_ == null ?
scalapb.options.Scalapb.Collection.getDefaultInstance() : collection_;
}
}
/**
* optional .scalapb.Collection collection = 8;
*/
private com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.Collection, scalapb.options.Scalapb.Collection.Builder, scalapb.options.Scalapb.CollectionOrBuilder>
getCollectionFieldBuilder() {
if (collectionBuilder_ == null) {
collectionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
scalapb.options.Scalapb.Collection, scalapb.options.Scalapb.Collection.Builder, scalapb.options.Scalapb.CollectionOrBuilder>(
getCollection(),
getParentForChildren(),
isClean());
collection_ = null;
}
return collectionBuilder_;
}
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;
* @return Whether the keyType field is set.
*/
public boolean hasKeyType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* If the field is a map, you can specify custom Scala types for the key
* or value.
*
*
* optional string key_type = 4;
* @return The keyType.
*/
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;
* @return The bytes for keyType.
*/
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;
* @param value The keyType to set.
* @return This builder for chaining.
*/
public Builder setKeyType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
keyType_ = value;
bitField0_ |= 0x00000010;
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;
* @return This builder for chaining.
*/
public Builder clearKeyType() {
keyType_ = getDefaultInstance().getKeyType();
bitField0_ = (bitField0_ & ~0x00000010);
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;
* @param value The bytes for keyType to set.
* @return This builder for chaining.
*/
public Builder setKeyTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
keyType_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object valueType_ = "";
/**
* optional string value_type = 5;
* @return Whether the valueType field is set.
*/
public boolean hasValueType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string value_type = 5;
* @return The valueType.
*/
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;
* @return The bytes for valueType.
*/
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;
* @param value The valueType to set.
* @return This builder for chaining.
*/
public Builder setValueType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
valueType_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional string value_type = 5;
* @return This builder for chaining.
*/
public Builder clearValueType() {
valueType_ = getDefaultInstance().getValueType();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* optional string value_type = 5;
* @param value The bytes for valueType to set.
* @return This builder for chaining.
*/
public Builder setValueTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
valueType_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAnnotationsIsMutable() {
if (!annotations_.isModifiable()) {
annotations_ = new com.google.protobuf.LazyStringArrayList(annotations_);
}
bitField0_ |= 0x00000040;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @return A list containing the annotations.
*/
public com.google.protobuf.ProtocolStringList
getAnnotationsList() {
annotations_.makeImmutable();
return annotations_;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @return The count of annotations.
*/
public int getAnnotationsCount() {
return annotations_.size();
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
public java.lang.String getAnnotations(int index) {
return annotations_.get(index);
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
public com.google.protobuf.ByteString
getAnnotationsBytes(int index) {
return annotations_.getByteString(index);
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param index The index to set the value at.
* @param value The annotations to set.
* @return This builder for chaining.
*/
public Builder setAnnotations(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.set(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param value The annotations to add.
* @return This builder for chaining.
*/
public Builder addAnnotations(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.add(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param values The annotations to add.
* @return This builder for chaining.
*/
public Builder addAllAnnotations(
java.lang.Iterable values) {
ensureAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, annotations_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @return This builder for chaining.
*/
public Builder clearAnnotations() {
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the field.
*
*
* repeated string annotations = 6;
* @param value The bytes of the annotations to add.
* @return This builder for chaining.
*/
public Builder addAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.add(value);
bitField0_ |= 0x00000040;
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;
* @return Whether the mapType field is set.
*/
public boolean hasMapType() {
return ((bitField0_ & 0x00000080) != 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;
* @return The mapType.
*/
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;
* @return The bytes for mapType.
*/
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;
* @param value The mapType to set.
* @return This builder for chaining.
*/
public Builder setMapType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
mapType_ = value;
bitField0_ |= 0x00000080;
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;
* @return This builder for chaining.
*/
public Builder clearMapType() {
mapType_ = getDefaultInstance().getMapType();
bitField0_ = (bitField0_ & ~0x00000080);
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;
* @param value The bytes for mapType to set.
* @return This builder for chaining.
*/
public Builder setMapTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
mapType_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
private boolean noDefaultValueInConstructor_ ;
/**
*
* If true, no default value will be generated for this field in the message
* constructor. If this field is set, it has the highest precedence and overrides the
* values at the message-level and file-level.
*
*
* optional bool no_default_value_in_constructor = 9;
* @return Whether the noDefaultValueInConstructor field is set.
*/
@java.lang.Override
public boolean hasNoDefaultValueInConstructor() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* If true, no default value will be generated for this field in the message
* constructor. If this field is set, it has the highest precedence and overrides the
* values at the message-level and file-level.
*
*
* optional bool no_default_value_in_constructor = 9;
* @return The noDefaultValueInConstructor.
*/
@java.lang.Override
public boolean getNoDefaultValueInConstructor() {
return noDefaultValueInConstructor_;
}
/**
*
* If true, no default value will be generated for this field in the message
* constructor. If this field is set, it has the highest precedence and overrides the
* values at the message-level and file-level.
*
*
* optional bool no_default_value_in_constructor = 9;
* @param value The noDefaultValueInConstructor to set.
* @return This builder for chaining.
*/
public Builder setNoDefaultValueInConstructor(boolean value) {
noDefaultValueInConstructor_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* If true, no default value will be generated for this field in the message
* constructor. If this field is set, it has the highest precedence and overrides the
* values at the message-level and file-level.
*
*
* optional bool no_default_value_in_constructor = 9;
* @return This builder for chaining.
*/
public Builder clearNoDefaultValueInConstructor() {
bitField0_ = (bitField0_ & ~0x00000100);
noDefaultValueInConstructor_ = false;
onChanged();
return this;
}
private boolean noBox_ ;
/**
*
* Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
*
*
* optional bool no_box = 30;
* @return Whether the noBox field is set.
*/
@java.lang.Override
public boolean hasNoBox() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
*
*
* optional bool no_box = 30;
* @return The noBox.
*/
@java.lang.Override
public boolean getNoBox() {
return noBox_;
}
/**
*
* Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
*
*
* optional bool no_box = 30;
* @param value The noBox to set.
* @return This builder for chaining.
*/
public Builder setNoBox(boolean value) {
noBox_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
* Do not box this value in Option[T]. If set, this overrides MessageOptions.no_box
*
*
* optional bool no_box = 30;
* @return This builder for chaining.
*/
public Builder clearNoBox() {
bitField0_ = (bitField0_ & ~0x00000200);
noBox_ = false;
onChanged();
return this;
}
private boolean required_ ;
/**
*
* Like no_box it does not box a value in Option[T], but also fails parsing when a value
* is not provided. This enables to emulate required fields in proto3.
*
*
* optional bool required = 31;
* @return Whether the required field is set.
*/
@java.lang.Override
public boolean hasRequired() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Like no_box it does not box a value in Option[T], but also fails parsing when a value
* is not provided. This enables to emulate required fields in proto3.
*
*
* optional bool required = 31;
* @return The required.
*/
@java.lang.Override
public boolean getRequired() {
return required_;
}
/**
*
* Like no_box it does not box a value in Option[T], but also fails parsing when a value
* is not provided. This enables to emulate required fields in proto3.
*
*
* optional bool required = 31;
* @param value The required to set.
* @return This builder for chaining.
*/
public Builder setRequired(boolean value) {
required_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
* Like no_box it does not box a value in Option[T], but also fails parsing when a value
* is not provided. This enables to emulate required fields in proto3.
*
*
* optional bool required = 31;
* @return This builder for chaining.
*/
public Builder clearRequired() {
bitField0_ = (bitField0_ & ~0x00000400);
required_ = false;
onChanged();
return this;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
java.util.List
getExtendsList();
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
int getExtendsCount();
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
java.lang.String getExtends(int index);
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
com.google.protobuf.ByteString
getExtendsBytes(int index);
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return A list containing the companionExtends.
*/
java.util.List
getCompanionExtendsList();
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return The count of companionExtends.
*/
int getCompanionExtendsCount();
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param index The index of the element to return.
* @return The companionExtends at the given index.
*/
java.lang.String getCompanionExtends(int index);
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param index The index of the value to return.
* @return The bytes of the companionExtends at the given index.
*/
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;
* @return Whether the type field is set.
*/
boolean hasType();
/**
*
* All instances of this enum will be converted to this type. An implicit TypeMapper
* must be present.
*
*
* optional string type = 3;
* @return The type.
*/
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;
* @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @return A list containing the baseAnnotations.
*/
java.util.List
getBaseAnnotationsList();
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @return The count of baseAnnotations.
*/
int getBaseAnnotationsCount();
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param index The index of the element to return.
* @return The baseAnnotations at the given index.
*/
java.lang.String getBaseAnnotations(int index);
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param index The index of the value to return.
* @return The bytes of the baseAnnotations at the given index.
*/
com.google.protobuf.ByteString
getBaseAnnotationsBytes(int index);
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @return A list containing the recognizedAnnotations.
*/
java.util.List
getRecognizedAnnotationsList();
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @return The count of recognizedAnnotations.
*/
int getRecognizedAnnotationsCount();
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param index The index of the element to return.
* @return The recognizedAnnotations at the given index.
*/
java.lang.String getRecognizedAnnotations(int index);
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param index The index of the value to return.
* @return The bytes of the recognizedAnnotations at the given index.
*/
com.google.protobuf.ByteString
getRecognizedAnnotationsBytes(int index);
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @return A list containing the unrecognizedAnnotations.
*/
java.util.List
getUnrecognizedAnnotationsList();
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @return The count of unrecognizedAnnotations.
*/
int getUnrecognizedAnnotationsCount();
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param index The index of the element to return.
* @return The unrecognizedAnnotations at the given index.
*/
java.lang.String getUnrecognizedAnnotations(int index);
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param index The index of the value to return.
* @return The bytes of the unrecognizedAnnotations at the given index.
*/
com.google.protobuf.ByteString
getUnrecognizedAnnotationsBytes(int index);
}
/**
* Protobuf type {@code scalapb.EnumOptions}
*/
public static final class EnumOptions extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
EnumOptions> implements
// @@protoc_insertion_point(message_implements:scalapb.EnumOptions)
EnumOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
EnumOptions.class.getName());
}
// Use EnumOptions.newBuilder() to construct.
private EnumOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
}
private EnumOptions() {
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
type_ = "";
baseAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
recognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
unrecognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
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.GeneratedMessage.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;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
return extends_;
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
public com.google.protobuf.ByteString
getExtendsBytes(int index) {
return extends_.getByteString(index);
}
public static final int COMPANION_EXTENDS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return A list containing the companionExtends.
*/
public com.google.protobuf.ProtocolStringList
getCompanionExtendsList() {
return companionExtends_;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return The count of companionExtends.
*/
public int getCompanionExtendsCount() {
return companionExtends_.size();
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param index The index of the element to return.
* @return The companionExtends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the companionExtends at the given index.
*/
public com.google.protobuf.ByteString
getCompanionExtendsBytes(int index) {
return companionExtends_.getByteString(index);
}
public static final int TYPE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
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;
* @return Whether the type field is set.
*/
@java.lang.Override
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;
* @return The type.
*/
@java.lang.Override
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;
* @return The bytes for type.
*/
@java.lang.Override
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 BASE_ANNOTATIONS_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList baseAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @return A list containing the baseAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getBaseAnnotationsList() {
return baseAnnotations_;
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @return The count of baseAnnotations.
*/
public int getBaseAnnotationsCount() {
return baseAnnotations_.size();
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param index The index of the element to return.
* @return The baseAnnotations at the given index.
*/
public java.lang.String getBaseAnnotations(int index) {
return baseAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param index The index of the value to return.
* @return The bytes of the baseAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getBaseAnnotationsBytes(int index) {
return baseAnnotations_.getByteString(index);
}
public static final int RECOGNIZED_ANNOTATIONS_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList recognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @return A list containing the recognizedAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getRecognizedAnnotationsList() {
return recognizedAnnotations_;
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @return The count of recognizedAnnotations.
*/
public int getRecognizedAnnotationsCount() {
return recognizedAnnotations_.size();
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param index The index of the element to return.
* @return The recognizedAnnotations at the given index.
*/
public java.lang.String getRecognizedAnnotations(int index) {
return recognizedAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param index The index of the value to return.
* @return The bytes of the recognizedAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getRecognizedAnnotationsBytes(int index) {
return recognizedAnnotations_.getByteString(index);
}
public static final int UNRECOGNIZED_ANNOTATIONS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList unrecognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @return A list containing the unrecognizedAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getUnrecognizedAnnotationsList() {
return unrecognizedAnnotations_;
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @return The count of unrecognizedAnnotations.
*/
public int getUnrecognizedAnnotationsCount() {
return unrecognizedAnnotations_.size();
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param index The index of the element to return.
* @return The unrecognizedAnnotations at the given index.
*/
public java.lang.String getUnrecognizedAnnotations(int index) {
return unrecognizedAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param index The index of the value to return.
* @return The bytes of the unrecognizedAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getUnrecognizedAnnotationsBytes(int index) {
return unrecognizedAnnotations_.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;
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionSerializer
extensionWriter = newExtensionSerializer();
for (int i = 0; i < extends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, extends_.getRaw(i));
}
for (int i = 0; i < companionExtends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, companionExtends_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, type_);
}
for (int i = 0; i < baseAnnotations_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 4, baseAnnotations_.getRaw(i));
}
for (int i = 0; i < recognizedAnnotations_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 5, recognizedAnnotations_.getRaw(i));
}
for (int i = 0; i < unrecognizedAnnotations_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 6, unrecognizedAnnotations_.getRaw(i));
}
extensionWriter.writeUntil(536870912, output);
getUnknownFields().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.GeneratedMessage.computeStringSize(3, type_);
}
{
int dataSize = 0;
for (int i = 0; i < baseAnnotations_.size(); i++) {
dataSize += computeStringSizeNoTag(baseAnnotations_.getRaw(i));
}
size += dataSize;
size += 1 * getBaseAnnotationsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < recognizedAnnotations_.size(); i++) {
dataSize += computeStringSizeNoTag(recognizedAnnotations_.getRaw(i));
}
size += dataSize;
size += 1 * getRecognizedAnnotationsList().size();
}
{
int dataSize = 0;
for (int i = 0; i < unrecognizedAnnotations_.size(); i++) {
dataSize += computeStringSizeNoTag(unrecognizedAnnotations_.getRaw(i));
}
size += dataSize;
size += 1 * getUnrecognizedAnnotationsList().size();
}
size += extensionsSerializedSize();
size += getUnknownFields().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 (!getBaseAnnotationsList()
.equals(other.getBaseAnnotationsList())) return false;
if (!getRecognizedAnnotationsList()
.equals(other.getRecognizedAnnotationsList())) return false;
if (!getUnrecognizedAnnotationsList()
.equals(other.getUnrecognizedAnnotationsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
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();
}
if (getBaseAnnotationsCount() > 0) {
hash = (37 * hash) + BASE_ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getBaseAnnotationsList().hashCode();
}
if (getRecognizedAnnotationsCount() > 0) {
hash = (37 * hash) + RECOGNIZED_ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getRecognizedAnnotationsList().hashCode();
}
if (getUnrecognizedAnnotationsCount() > 0) {
hash = (37 * hash) + UNRECOGNIZED_ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getUnrecognizedAnnotationsList().hashCode();
}
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.EnumOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.EnumOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code scalapb.EnumOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
scalapb.options.Scalapb.EnumOptions, 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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
type_ = "";
baseAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
recognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
unrecognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.EnumOptions result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
extends_.makeImmutable();
result.extends_ = extends_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
companionExtends_.makeImmutable();
result.companionExtends_ = companionExtends_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
baseAnnotations_.makeImmutable();
result.baseAnnotations_ = baseAnnotations_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
recognizedAnnotations_.makeImmutable();
result.recognizedAnnotations_ = recognizedAnnotations_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
unrecognizedAnnotations_.makeImmutable();
result.unrecognizedAnnotations_ = unrecognizedAnnotations_;
}
result.bitField0_ |= to_bitField0_;
}
@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_ |= 0x00000001;
} else {
ensureExtendsIsMutable();
extends_.addAll(other.extends_);
}
onChanged();
}
if (!other.companionExtends_.isEmpty()) {
if (companionExtends_.isEmpty()) {
companionExtends_ = other.companionExtends_;
bitField0_ |= 0x00000002;
} else {
ensureCompanionExtendsIsMutable();
companionExtends_.addAll(other.companionExtends_);
}
onChanged();
}
if (other.hasType()) {
type_ = other.type_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.baseAnnotations_.isEmpty()) {
if (baseAnnotations_.isEmpty()) {
baseAnnotations_ = other.baseAnnotations_;
bitField0_ |= 0x00000008;
} else {
ensureBaseAnnotationsIsMutable();
baseAnnotations_.addAll(other.baseAnnotations_);
}
onChanged();
}
if (!other.recognizedAnnotations_.isEmpty()) {
if (recognizedAnnotations_.isEmpty()) {
recognizedAnnotations_ = other.recognizedAnnotations_;
bitField0_ |= 0x00000010;
} else {
ensureRecognizedAnnotationsIsMutable();
recognizedAnnotations_.addAll(other.recognizedAnnotations_);
}
onChanged();
}
if (!other.unrecognizedAnnotations_.isEmpty()) {
if (unrecognizedAnnotations_.isEmpty()) {
unrecognizedAnnotations_ = other.unrecognizedAnnotations_;
bitField0_ |= 0x00000020;
} else {
ensureUnrecognizedAnnotationsIsMutable();
unrecognizedAnnotations_.addAll(other.unrecognizedAnnotations_);
}
onChanged();
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureExtendsIsMutable();
extends_.add(bs);
break;
} // case 10
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureCompanionExtendsIsMutable();
companionExtends_.add(bs);
break;
} // case 18
case 26: {
type_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureBaseAnnotationsIsMutable();
baseAnnotations_.add(bs);
break;
} // case 34
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureRecognizedAnnotationsIsMutable();
recognizedAnnotations_.add(bs);
break;
} // case 42
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureUnrecognizedAnnotationsIsMutable();
unrecognizedAnnotations_.add(bs);
break;
} // case 50
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExtendsIsMutable() {
if (!extends_.isModifiable()) {
extends_ = new com.google.protobuf.LazyStringArrayList(extends_);
}
bitField0_ |= 0x00000001;
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
extends_.makeImmutable();
return extends_;
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The extends to set.
* @return This builder for chaining.
*/
public Builder setExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @param value The extends to add.
* @return This builder for chaining.
*/
public Builder addExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @param values The extends to add.
* @return This builder for chaining.
*/
public Builder addAllExtends(
java.lang.Iterable values) {
ensureExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extends_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @return This builder for chaining.
*/
public Builder clearExtends() {
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the base trait
*
*
* repeated string extends = 1;
* @param value The bytes of the extends to add.
* @return This builder for chaining.
*/
public Builder addExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCompanionExtendsIsMutable() {
if (!companionExtends_.isModifiable()) {
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;
* @return A list containing the companionExtends.
*/
public com.google.protobuf.ProtocolStringList
getCompanionExtendsList() {
companionExtends_.makeImmutable();
return companionExtends_;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return The count of companionExtends.
*/
public int getCompanionExtendsCount() {
return companionExtends_.size();
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param index The index of the element to return.
* @return The companionExtends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the companionExtends at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The companionExtends to set.
* @return This builder for chaining.
*/
public Builder setCompanionExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionExtendsIsMutable();
companionExtends_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param value The companionExtends to add.
* @return This builder for chaining.
*/
public Builder addCompanionExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionExtendsIsMutable();
companionExtends_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param values The companionExtends to add.
* @return This builder for chaining.
*/
public Builder addAllCompanionExtends(
java.lang.Iterable values) {
ensureCompanionExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, companionExtends_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @return This builder for chaining.
*/
public Builder clearCompanionExtends() {
companionExtends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to the companion object.
*
*
* repeated string companion_extends = 2;
* @param value The bytes of the companionExtends to add.
* @return This builder for chaining.
*/
public Builder addCompanionExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureCompanionExtendsIsMutable();
companionExtends_.add(value);
bitField0_ |= 0x00000002;
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;
* @return Whether the type field is set.
*/
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;
* @return The type.
*/
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;
* @return The bytes for type.
*/
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;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* All instances of this enum will be converted to this type. An implicit TypeMapper
* must be present.
*
*
* optional string type = 3;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* All instances of this enum will be converted to this type. An implicit TypeMapper
* must be present.
*
*
* optional string type = 3;
* @param value The bytes for type to set.
* @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
type_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList baseAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureBaseAnnotationsIsMutable() {
if (!baseAnnotations_.isModifiable()) {
baseAnnotations_ = new com.google.protobuf.LazyStringArrayList(baseAnnotations_);
}
bitField0_ |= 0x00000008;
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @return A list containing the baseAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getBaseAnnotationsList() {
baseAnnotations_.makeImmutable();
return baseAnnotations_;
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @return The count of baseAnnotations.
*/
public int getBaseAnnotationsCount() {
return baseAnnotations_.size();
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param index The index of the element to return.
* @return The baseAnnotations at the given index.
*/
public java.lang.String getBaseAnnotations(int index) {
return baseAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param index The index of the value to return.
* @return The bytes of the baseAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getBaseAnnotationsBytes(int index) {
return baseAnnotations_.getByteString(index);
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param index The index to set the value at.
* @param value The baseAnnotations to set.
* @return This builder for chaining.
*/
public Builder setBaseAnnotations(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureBaseAnnotationsIsMutable();
baseAnnotations_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param value The baseAnnotations to add.
* @return This builder for chaining.
*/
public Builder addBaseAnnotations(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureBaseAnnotationsIsMutable();
baseAnnotations_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param values The baseAnnotations to add.
* @return This builder for chaining.
*/
public Builder addAllBaseAnnotations(
java.lang.Iterable values) {
ensureBaseAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, baseAnnotations_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @return This builder for chaining.
*/
public Builder clearBaseAnnotations() {
baseAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated enum's base class.
*
*
* repeated string base_annotations = 4;
* @param value The bytes of the baseAnnotations to add.
* @return This builder for chaining.
*/
public Builder addBaseAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureBaseAnnotationsIsMutable();
baseAnnotations_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList recognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRecognizedAnnotationsIsMutable() {
if (!recognizedAnnotations_.isModifiable()) {
recognizedAnnotations_ = new com.google.protobuf.LazyStringArrayList(recognizedAnnotations_);
}
bitField0_ |= 0x00000010;
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @return A list containing the recognizedAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getRecognizedAnnotationsList() {
recognizedAnnotations_.makeImmutable();
return recognizedAnnotations_;
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @return The count of recognizedAnnotations.
*/
public int getRecognizedAnnotationsCount() {
return recognizedAnnotations_.size();
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param index The index of the element to return.
* @return The recognizedAnnotations at the given index.
*/
public java.lang.String getRecognizedAnnotations(int index) {
return recognizedAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param index The index of the value to return.
* @return The bytes of the recognizedAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getRecognizedAnnotationsBytes(int index) {
return recognizedAnnotations_.getByteString(index);
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param index The index to set the value at.
* @param value The recognizedAnnotations to set.
* @return This builder for chaining.
*/
public Builder setRecognizedAnnotations(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRecognizedAnnotationsIsMutable();
recognizedAnnotations_.set(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param value The recognizedAnnotations to add.
* @return This builder for chaining.
*/
public Builder addRecognizedAnnotations(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRecognizedAnnotationsIsMutable();
recognizedAnnotations_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param values The recognizedAnnotations to add.
* @return This builder for chaining.
*/
public Builder addAllRecognizedAnnotations(
java.lang.Iterable values) {
ensureRecognizedAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recognizedAnnotations_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @return This builder for chaining.
*/
public Builder clearRecognizedAnnotations() {
recognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated trait.
*
*
* repeated string recognized_annotations = 5;
* @param value The bytes of the recognizedAnnotations to add.
* @return This builder for chaining.
*/
public Builder addRecognizedAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRecognizedAnnotationsIsMutable();
recognizedAnnotations_.add(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList unrecognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUnrecognizedAnnotationsIsMutable() {
if (!unrecognizedAnnotations_.isModifiable()) {
unrecognizedAnnotations_ = new com.google.protobuf.LazyStringArrayList(unrecognizedAnnotations_);
}
bitField0_ |= 0x00000020;
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @return A list containing the unrecognizedAnnotations.
*/
public com.google.protobuf.ProtocolStringList
getUnrecognizedAnnotationsList() {
unrecognizedAnnotations_.makeImmutable();
return unrecognizedAnnotations_;
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @return The count of unrecognizedAnnotations.
*/
public int getUnrecognizedAnnotationsCount() {
return unrecognizedAnnotations_.size();
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param index The index of the element to return.
* @return The unrecognizedAnnotations at the given index.
*/
public java.lang.String getUnrecognizedAnnotations(int index) {
return unrecognizedAnnotations_.get(index);
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param index The index of the value to return.
* @return The bytes of the unrecognizedAnnotations at the given index.
*/
public com.google.protobuf.ByteString
getUnrecognizedAnnotationsBytes(int index) {
return unrecognizedAnnotations_.getByteString(index);
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param index The index to set the value at.
* @param value The unrecognizedAnnotations to set.
* @return This builder for chaining.
*/
public Builder setUnrecognizedAnnotations(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUnrecognizedAnnotationsIsMutable();
unrecognizedAnnotations_.set(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param value The unrecognizedAnnotations to add.
* @return This builder for chaining.
*/
public Builder addUnrecognizedAnnotations(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureUnrecognizedAnnotationsIsMutable();
unrecognizedAnnotations_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param values The unrecognizedAnnotations to add.
* @return This builder for chaining.
*/
public Builder addAllUnrecognizedAnnotations(
java.lang.Iterable values) {
ensureUnrecognizedAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unrecognizedAnnotations_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @return This builder for chaining.
*/
public Builder clearUnrecognizedAnnotations() {
unrecognizedAnnotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated Unrecognized case class.
*
*
* repeated string unrecognized_annotations = 6;
* @param value The bytes of the unrecognizedAnnotations to add.
* @return This builder for chaining.
*/
public Builder addUnrecognizedAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureUnrecognizedAnnotationsIsMutable();
unrecognizedAnnotations_.add(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
java.util.List
getExtendsList();
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
int getExtendsCount();
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
java.lang.String getExtends(int index);
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
com.google.protobuf.ByteString
getExtendsBytes(int index);
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
boolean hasScalaName();
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return The scalaName.
*/
java.lang.String getScalaName();
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return The bytes for scalaName.
*/
com.google.protobuf.ByteString
getScalaNameBytes();
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @return A list containing the annotations.
*/
java.util.List
getAnnotationsList();
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @return The count of annotations.
*/
int getAnnotationsCount();
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
java.lang.String getAnnotations(int index);
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
com.google.protobuf.ByteString
getAnnotationsBytes(int index);
}
/**
* Protobuf type {@code scalapb.EnumValueOptions}
*/
public static final class EnumValueOptions extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
EnumValueOptions> implements
// @@protoc_insertion_point(message_implements:scalapb.EnumValueOptions)
EnumValueOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
EnumValueOptions.class.getName());
}
// Use EnumValueOptions.newBuilder() to construct.
private EnumValueOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
}
private EnumValueOptions() {
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
scalaName_ = "";
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
}
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.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_EnumValueOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.EnumValueOptions.class, scalapb.options.Scalapb.EnumValueOptions.Builder.class);
}
private int bitField0_;
public static final int EXTENDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
return extends_;
}
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
public com.google.protobuf.ByteString
getExtendsBytes(int index) {
return extends_.getByteString(index);
}
public static final int SCALA_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object scalaName_ = "";
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
@java.lang.Override
public boolean hasScalaName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return The scalaName.
*/
@java.lang.Override
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;
}
}
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return The bytes for scalaName.
*/
@java.lang.Override
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 ANNOTATIONS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @return A list containing the annotations.
*/
public com.google.protobuf.ProtocolStringList
getAnnotationsList() {
return annotations_;
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @return The count of annotations.
*/
public int getAnnotationsCount() {
return annotations_.size();
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
public java.lang.String getAnnotations(int index) {
return annotations_.get(index);
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
public com.google.protobuf.ByteString
getAnnotationsBytes(int index) {
return annotations_.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;
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionSerializer
extensionWriter = newExtensionSerializer();
for (int i = 0; i < extends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, extends_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, scalaName_);
}
for (int i = 0; i < annotations_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, annotations_.getRaw(i));
}
extensionWriter.writeUntil(536870912, output);
getUnknownFields().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();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scalaName_);
}
{
int dataSize = 0;
for (int i = 0; i < annotations_.size(); i++) {
dataSize += computeStringSizeNoTag(annotations_.getRaw(i));
}
size += dataSize;
size += 1 * getAnnotationsList().size();
}
size += extensionsSerializedSize();
size += getUnknownFields().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 (hasScalaName() != other.hasScalaName()) return false;
if (hasScalaName()) {
if (!getScalaName()
.equals(other.getScalaName())) return false;
}
if (!getAnnotationsList()
.equals(other.getAnnotationsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
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 (hasScalaName()) {
hash = (37 * hash) + SCALA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getScalaName().hashCode();
}
if (getAnnotationsCount() > 0) {
hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + getAnnotationsList().hashCode();
}
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.EnumValueOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.EnumValueOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code scalapb.EnumValueOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
scalapb.options.Scalapb.EnumValueOptions, 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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
scalaName_ = "";
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.EnumValueOptions result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
extends_.makeImmutable();
result.extends_ = extends_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scalaName_ = scalaName_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
annotations_.makeImmutable();
result.annotations_ = annotations_;
}
result.bitField0_ |= to_bitField0_;
}
@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_ |= 0x00000001;
} else {
ensureExtendsIsMutable();
extends_.addAll(other.extends_);
}
onChanged();
}
if (other.hasScalaName()) {
scalaName_ = other.scalaName_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.annotations_.isEmpty()) {
if (annotations_.isEmpty()) {
annotations_ = other.annotations_;
bitField0_ |= 0x00000004;
} else {
ensureAnnotationsIsMutable();
annotations_.addAll(other.annotations_);
}
onChanged();
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureExtendsIsMutable();
extends_.add(bs);
break;
} // case 10
case 18: {
scalaName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
ensureAnnotationsIsMutable();
annotations_.add(bs);
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExtendsIsMutable() {
if (!extends_.isModifiable()) {
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;
* @return A list containing the extends.
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
extends_.makeImmutable();
return extends_;
}
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
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;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
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;
* @param index The index to set the value at.
* @param value The extends to set.
* @return This builder for chaining.
*/
public Builder setExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @param value The extends to add.
* @return This builder for chaining.
*/
public Builder addExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @param values The extends to add.
* @return This builder for chaining.
*/
public Builder addAllExtends(
java.lang.Iterable values) {
ensureExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extends_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @return This builder for chaining.
*/
public Builder clearExtends() {
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* Additional classes and traits to mix in to an individual enum value.
*
*
* repeated string extends = 1;
* @param value The bytes of the extends to add.
* @return This builder for chaining.
*/
public Builder addExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object scalaName_ = "";
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
public boolean hasScalaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return The scalaName.
*/
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;
}
}
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return The bytes for scalaName.
*/
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;
}
}
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @param value The scalaName to set.
* @return This builder for chaining.
*/
public Builder setScalaName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scalaName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @return This builder for chaining.
*/
public Builder clearScalaName() {
scalaName_ = getDefaultInstance().getScalaName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Name in Scala to use for this enum value.
*
*
* optional string scala_name = 2;
* @param value The bytes for scalaName to set.
* @return This builder for chaining.
*/
public Builder setScalaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
scalaName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAnnotationsIsMutable() {
if (!annotations_.isModifiable()) {
annotations_ = new com.google.protobuf.LazyStringArrayList(annotations_);
}
bitField0_ |= 0x00000004;
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @return A list containing the annotations.
*/
public com.google.protobuf.ProtocolStringList
getAnnotationsList() {
annotations_.makeImmutable();
return annotations_;
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @return The count of annotations.
*/
public int getAnnotationsCount() {
return annotations_.size();
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param index The index of the element to return.
* @return The annotations at the given index.
*/
public java.lang.String getAnnotations(int index) {
return annotations_.get(index);
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param index The index of the value to return.
* @return The bytes of the annotations at the given index.
*/
public com.google.protobuf.ByteString
getAnnotationsBytes(int index) {
return annotations_.getByteString(index);
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param index The index to set the value at.
* @param value The annotations to set.
* @return This builder for chaining.
*/
public Builder setAnnotations(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param value The annotations to add.
* @return This builder for chaining.
*/
public Builder addAnnotations(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param values The annotations to add.
* @return This builder for chaining.
*/
public Builder addAllAnnotations(
java.lang.Iterable values) {
ensureAnnotationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, annotations_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @return This builder for chaining.
*/
public Builder clearAnnotations() {
annotations_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);;
onChanged();
return this;
}
/**
*
* Custom annotations to add to the generated case object for this enum value.
*
*
* repeated string annotations = 3;
* @param value The bytes of the annotations to add.
* @return This builder for chaining.
*/
public Builder addAnnotationsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureAnnotationsIsMutable();
annotations_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.GeneratedMessage.
ExtendableMessageOrBuilder {
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
java.util.List
getExtendsList();
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
int getExtendsCount();
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
java.lang.String getExtends(int index);
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
com.google.protobuf.ByteString
getExtendsBytes(int index);
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
boolean hasScalaName();
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return The scalaName.
*/
java.lang.String getScalaName();
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return The bytes for scalaName.
*/
com.google.protobuf.ByteString
getScalaNameBytes();
}
/**
* Protobuf type {@code scalapb.OneofOptions}
*/
public static final class OneofOptions extends
com.google.protobuf.GeneratedMessage.ExtendableMessage<
OneofOptions> implements
// @@protoc_insertion_point(message_implements:scalapb.OneofOptions)
OneofOptionsOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
OneofOptions.class.getName());
}
// Use OneofOptions.newBuilder() to construct.
private OneofOptions(com.google.protobuf.GeneratedMessage.ExtendableBuilder builder) {
super(builder);
}
private OneofOptions() {
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
scalaName_ = "";
}
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.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_OneofOptions_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.OneofOptions.class, scalapb.options.Scalapb.OneofOptions.Builder.class);
}
private int bitField0_;
public static final int EXTENDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
return extends_;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
public java.lang.String getExtends(int index) {
return extends_.get(index);
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
public com.google.protobuf.ByteString
getExtendsBytes(int index) {
return extends_.getByteString(index);
}
public static final int SCALA_NAME_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object scalaName_ = "";
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
@java.lang.Override
public boolean hasScalaName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return The scalaName.
*/
@java.lang.Override
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;
}
}
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return The bytes for scalaName.
*/
@java.lang.Override
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;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!extensionsAreInitialized()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.ExtendableMessage.ExtensionSerializer
extensionWriter = newExtensionSerializer();
for (int i = 0; i < extends_.size(); i++) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, extends_.getRaw(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, scalaName_);
}
extensionWriter.writeUntil(536870912, output);
getUnknownFields().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();
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scalaName_);
}
size += extensionsSerializedSize();
size += getUnknownFields().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 (hasScalaName() != other.hasScalaName()) return false;
if (hasScalaName()) {
if (!getScalaName()
.equals(other.getScalaName())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
if (!getExtensionFields().equals(other.getExtensionFields()))
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 (hasScalaName()) {
hash = (37 * hash) + SCALA_NAME_FIELD_NUMBER;
hash = (53 * hash) + getScalaName().hashCode();
}
hash = hashFields(hash, getExtensionFields());
hash = (29 * hash) + getUnknownFields().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.GeneratedMessage
.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.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.OneofOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.OneofOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.GeneratedMessage
.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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code scalapb.OneofOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.ExtendableBuilder<
scalapb.options.Scalapb.OneofOptions, 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.GeneratedMessage.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() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
scalaName_ = "";
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.OneofOptions result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
extends_.makeImmutable();
result.extends_ = extends_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scalaName_ = scalaName_;
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@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_ |= 0x00000001;
} else {
ensureExtendsIsMutable();
extends_.addAll(other.extends_);
}
onChanged();
}
if (other.hasScalaName()) {
scalaName_ = other.scalaName_;
bitField0_ |= 0x00000002;
onChanged();
}
this.mergeExtensionFields(other);
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!extensionsAreInitialized()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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();
ensureExtendsIsMutable();
extends_.add(bs);
break;
} // case 10
case 18: {
scalaName_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureExtendsIsMutable() {
if (!extends_.isModifiable()) {
extends_ = new com.google.protobuf.LazyStringArrayList(extends_);
}
bitField0_ |= 0x00000001;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @return A list containing the extends.
*/
public com.google.protobuf.ProtocolStringList
getExtendsList() {
extends_.makeImmutable();
return extends_;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @return The count of extends.
*/
public int getExtendsCount() {
return extends_.size();
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param index The index of the element to return.
* @return The extends at the given index.
*/
public java.lang.String getExtends(int index) {
return extends_.get(index);
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param index The index of the value to return.
* @return The bytes of the extends at the given index.
*/
public com.google.protobuf.ByteString
getExtendsBytes(int index) {
return extends_.getByteString(index);
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param index The index to set the value at.
* @param value The extends to set.
* @return This builder for chaining.
*/
public Builder setExtends(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param value The extends to add.
* @return This builder for chaining.
*/
public Builder addExtends(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param values The extends to add.
* @return This builder for chaining.
*/
public Builder addAllExtends(
java.lang.Iterable values) {
ensureExtendsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extends_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @return This builder for chaining.
*/
public Builder clearExtends() {
extends_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
*
* Additional traits to mix in to a oneof.
*
*
* repeated string extends = 1;
* @param value The bytes of the extends to add.
* @return This builder for chaining.
*/
public Builder addExtendsBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureExtendsIsMutable();
extends_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object scalaName_ = "";
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return Whether the scalaName field is set.
*/
public boolean hasScalaName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return The scalaName.
*/
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;
}
}
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return The bytes for scalaName.
*/
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;
}
}
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @param value The scalaName to set.
* @return This builder for chaining.
*/
public Builder setScalaName(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scalaName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @return This builder for chaining.
*/
public Builder clearScalaName() {
scalaName_ = getDefaultInstance().getScalaName();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Name in Scala to use for this oneof field.
*
*
* optional string scala_name = 2;
* @param value The bytes for scalaName to set.
* @return This builder for chaining.
*/
public Builder setScalaNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
scalaName_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
// @@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;
}
private 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 {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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 interface FieldTransformationOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.FieldTransformation)
com.google.protobuf.MessageOrBuilder {
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
* @return Whether the when field is set.
*/
boolean hasWhen();
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
* @return The when.
*/
com.google.protobuf.DescriptorProtos.FieldDescriptorProto getWhen();
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getWhenOrBuilder();
/**
* optional .scalapb.MatchType match_type = 2 [default = CONTAINS];
* @return Whether the matchType field is set.
*/
boolean hasMatchType();
/**
* optional .scalapb.MatchType match_type = 2 [default = CONTAINS];
* @return The matchType.
*/
scalapb.options.Scalapb.MatchType getMatchType();
/**
* optional .google.protobuf.FieldOptions set = 3;
* @return Whether the set field is set.
*/
boolean hasSet();
/**
* optional .google.protobuf.FieldOptions set = 3;
* @return The set.
*/
com.google.protobuf.DescriptorProtos.FieldOptions getSet();
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getSetOrBuilder();
}
/**
* Protobuf type {@code scalapb.FieldTransformation}
*/
public static final class FieldTransformation extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:scalapb.FieldTransformation)
FieldTransformationOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
FieldTransformation.class.getName());
}
// Use FieldTransformation.newBuilder() to construct.
private FieldTransformation(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private FieldTransformation() {
matchType_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldTransformation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldTransformation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.FieldTransformation.class, scalapb.options.Scalapb.FieldTransformation.Builder.class);
}
private int bitField0_;
public static final int WHEN_FIELD_NUMBER = 1;
private com.google.protobuf.DescriptorProtos.FieldDescriptorProto when_;
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
* @return Whether the when field is set.
*/
@java.lang.Override
public boolean hasWhen() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
* @return The when.
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getWhen() {
return when_ == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance() : when_;
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getWhenOrBuilder() {
return when_ == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance() : when_;
}
public static final int MATCH_TYPE_FIELD_NUMBER = 2;
private int matchType_ = 0;
/**
* optional .scalapb.MatchType match_type = 2 [default = CONTAINS];
* @return Whether the matchType field is set.
*/
@java.lang.Override public boolean hasMatchType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .scalapb.MatchType match_type = 2 [default = CONTAINS];
* @return The matchType.
*/
@java.lang.Override public scalapb.options.Scalapb.MatchType getMatchType() {
scalapb.options.Scalapb.MatchType result = scalapb.options.Scalapb.MatchType.forNumber(matchType_);
return result == null ? scalapb.options.Scalapb.MatchType.CONTAINS : result;
}
public static final int SET_FIELD_NUMBER = 3;
private com.google.protobuf.DescriptorProtos.FieldOptions set_;
/**
* optional .google.protobuf.FieldOptions set = 3;
* @return Whether the set field is set.
*/
@java.lang.Override
public boolean hasSet() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .google.protobuf.FieldOptions set = 3;
* @return The set.
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FieldOptions getSet() {
return set_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : set_;
}
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
@java.lang.Override
public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getSetOrBuilder() {
return set_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : set_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasWhen()) {
if (!getWhen().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasSet()) {
if (!getSet().isInitialized()) {
memoizedIsInitialized = 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)) {
output.writeMessage(1, getWhen());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, matchType_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getSet());
}
getUnknownFields().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.CodedOutputStream
.computeMessageSize(1, getWhen());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, matchType_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSet());
}
size += getUnknownFields().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.FieldTransformation)) {
return super.equals(obj);
}
scalapb.options.Scalapb.FieldTransformation other = (scalapb.options.Scalapb.FieldTransformation) obj;
if (hasWhen() != other.hasWhen()) return false;
if (hasWhen()) {
if (!getWhen()
.equals(other.getWhen())) return false;
}
if (hasMatchType() != other.hasMatchType()) return false;
if (hasMatchType()) {
if (matchType_ != other.matchType_) return false;
}
if (hasSet() != other.hasSet()) return false;
if (hasSet()) {
if (!getSet()
.equals(other.getSet())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasWhen()) {
hash = (37 * hash) + WHEN_FIELD_NUMBER;
hash = (53 * hash) + getWhen().hashCode();
}
if (hasMatchType()) {
hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER;
hash = (53 * hash) + matchType_;
}
if (hasSet()) {
hash = (37 * hash) + SET_FIELD_NUMBER;
hash = (53 * hash) + getSet().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.FieldTransformation parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.FieldTransformation 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.FieldTransformation parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.FieldTransformation 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.FieldTransformation parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.FieldTransformation parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.FieldTransformation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.FieldTransformation parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.FieldTransformation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.FieldTransformation parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.FieldTransformation parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.FieldTransformation parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.FieldTransformation 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code scalapb.FieldTransformation}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:scalapb.FieldTransformation)
scalapb.options.Scalapb.FieldTransformationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldTransformation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldTransformation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.FieldTransformation.class, scalapb.options.Scalapb.FieldTransformation.Builder.class);
}
// Construct using scalapb.options.Scalapb.FieldTransformation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getWhenFieldBuilder();
getSetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
when_ = null;
if (whenBuilder_ != null) {
whenBuilder_.dispose();
whenBuilder_ = null;
}
matchType_ = 0;
set_ = null;
if (setBuilder_ != null) {
setBuilder_.dispose();
setBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_FieldTransformation_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.FieldTransformation getDefaultInstanceForType() {
return scalapb.options.Scalapb.FieldTransformation.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.FieldTransformation build() {
scalapb.options.Scalapb.FieldTransformation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.FieldTransformation buildPartial() {
scalapb.options.Scalapb.FieldTransformation result = new scalapb.options.Scalapb.FieldTransformation(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.FieldTransformation result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.when_ = whenBuilder_ == null
? when_
: whenBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.matchType_ = matchType_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.set_ = setBuilder_ == null
? set_
: setBuilder_.build();
to_bitField0_ |= 0x00000004;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.FieldTransformation) {
return mergeFrom((scalapb.options.Scalapb.FieldTransformation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.FieldTransformation other) {
if (other == scalapb.options.Scalapb.FieldTransformation.getDefaultInstance()) return this;
if (other.hasWhen()) {
mergeWhen(other.getWhen());
}
if (other.hasMatchType()) {
setMatchType(other.getMatchType());
}
if (other.hasSet()) {
mergeSet(other.getSet());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasWhen()) {
if (!getWhen().isInitialized()) {
return false;
}
}
if (hasSet()) {
if (!getSet().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getWhenFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
int tmpRaw = input.readEnum();
scalapb.options.Scalapb.MatchType tmpValue =
scalapb.options.Scalapb.MatchType.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(2, tmpRaw);
} else {
matchType_ = tmpRaw;
bitField0_ |= 0x00000002;
}
break;
} // case 16
case 26: {
input.readMessage(
getSetFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.DescriptorProtos.FieldDescriptorProto when_;
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder> whenBuilder_;
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
* @return Whether the when field is set.
*/
public boolean hasWhen() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
* @return The when.
*/
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto getWhen() {
if (whenBuilder_ == null) {
return when_ == null ? com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance() : when_;
} else {
return whenBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
public Builder setWhen(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) {
if (whenBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
when_ = value;
} else {
whenBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
public Builder setWhen(
com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
if (whenBuilder_ == null) {
when_ = builderForValue.build();
} else {
whenBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
public Builder mergeWhen(com.google.protobuf.DescriptorProtos.FieldDescriptorProto value) {
if (whenBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
when_ != null &&
when_ != com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance()) {
getWhenBuilder().mergeFrom(value);
} else {
when_ = value;
}
} else {
whenBuilder_.mergeFrom(value);
}
if (when_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
public Builder clearWhen() {
bitField0_ = (bitField0_ & ~0x00000001);
when_ = null;
if (whenBuilder_ != null) {
whenBuilder_.dispose();
whenBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
public com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder getWhenBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getWhenFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
public com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder getWhenOrBuilder() {
if (whenBuilder_ != null) {
return whenBuilder_.getMessageOrBuilder();
} else {
return when_ == null ?
com.google.protobuf.DescriptorProtos.FieldDescriptorProto.getDefaultInstance() : when_;
}
}
/**
* optional .google.protobuf.FieldDescriptorProto when = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>
getWhenFieldBuilder() {
if (whenBuilder_ == null) {
whenBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.DescriptorProtos.FieldDescriptorProto, com.google.protobuf.DescriptorProtos.FieldDescriptorProto.Builder, com.google.protobuf.DescriptorProtos.FieldDescriptorProtoOrBuilder>(
getWhen(),
getParentForChildren(),
isClean());
when_ = null;
}
return whenBuilder_;
}
private int matchType_ = 0;
/**
* optional .scalapb.MatchType match_type = 2 [default = CONTAINS];
* @return Whether the matchType field is set.
*/
@java.lang.Override public boolean hasMatchType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .scalapb.MatchType match_type = 2 [default = CONTAINS];
* @return The matchType.
*/
@java.lang.Override
public scalapb.options.Scalapb.MatchType getMatchType() {
scalapb.options.Scalapb.MatchType result = scalapb.options.Scalapb.MatchType.forNumber(matchType_);
return result == null ? scalapb.options.Scalapb.MatchType.CONTAINS : result;
}
/**
* optional .scalapb.MatchType match_type = 2 [default = CONTAINS];
* @param value The matchType to set.
* @return This builder for chaining.
*/
public Builder setMatchType(scalapb.options.Scalapb.MatchType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
matchType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .scalapb.MatchType match_type = 2 [default = CONTAINS];
* @return This builder for chaining.
*/
public Builder clearMatchType() {
bitField0_ = (bitField0_ & ~0x00000002);
matchType_ = 0;
onChanged();
return this;
}
private com.google.protobuf.DescriptorProtos.FieldOptions set_;
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder> setBuilder_;
/**
* optional .google.protobuf.FieldOptions set = 3;
* @return Whether the set field is set.
*/
public boolean hasSet() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .google.protobuf.FieldOptions set = 3;
* @return The set.
*/
public com.google.protobuf.DescriptorProtos.FieldOptions getSet() {
if (setBuilder_ == null) {
return set_ == null ? com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : set_;
} else {
return setBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
public Builder setSet(com.google.protobuf.DescriptorProtos.FieldOptions value) {
if (setBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
set_ = value;
} else {
setBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
public Builder setSet(
com.google.protobuf.DescriptorProtos.FieldOptions.Builder builderForValue) {
if (setBuilder_ == null) {
set_ = builderForValue.build();
} else {
setBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
public Builder mergeSet(com.google.protobuf.DescriptorProtos.FieldOptions value) {
if (setBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
set_ != null &&
set_ != com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance()) {
getSetBuilder().mergeFrom(value);
} else {
set_ = value;
}
} else {
setBuilder_.mergeFrom(value);
}
if (set_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
public Builder clearSet() {
bitField0_ = (bitField0_ & ~0x00000004);
set_ = null;
if (setBuilder_ != null) {
setBuilder_.dispose();
setBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
public com.google.protobuf.DescriptorProtos.FieldOptions.Builder getSetBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getSetFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
public com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder getSetOrBuilder() {
if (setBuilder_ != null) {
return setBuilder_.getMessageOrBuilder();
} else {
return set_ == null ?
com.google.protobuf.DescriptorProtos.FieldOptions.getDefaultInstance() : set_;
}
}
/**
* optional .google.protobuf.FieldOptions set = 3;
*/
private com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder>
getSetFieldBuilder() {
if (setBuilder_ == null) {
setBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.google.protobuf.DescriptorProtos.FieldOptions, com.google.protobuf.DescriptorProtos.FieldOptions.Builder, com.google.protobuf.DescriptorProtos.FieldOptionsOrBuilder>(
getSet(),
getParentForChildren(),
isClean());
set_ = null;
}
return setBuilder_;
}
// @@protoc_insertion_point(builder_scope:scalapb.FieldTransformation)
}
// @@protoc_insertion_point(class_scope:scalapb.FieldTransformation)
private static final scalapb.options.Scalapb.FieldTransformation DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.FieldTransformation();
}
public static scalapb.options.Scalapb.FieldTransformation getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FieldTransformation parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.FieldTransformation getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PreprocessorOutputOrBuilder extends
// @@protoc_insertion_point(interface_extends:scalapb.PreprocessorOutput)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
int getOptionsByFileCount();
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
boolean containsOptionsByFile(
java.lang.String key);
/**
* Use {@link #getOptionsByFileMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getOptionsByFile();
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
java.util.Map
getOptionsByFileMap();
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
/* nullable */
scalapb.options.Scalapb.ScalaPbOptions getOptionsByFileOrDefault(
java.lang.String key,
/* nullable */
scalapb.options.Scalapb.ScalaPbOptions defaultValue);
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
scalapb.options.Scalapb.ScalaPbOptions getOptionsByFileOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code scalapb.PreprocessorOutput}
*/
public static final class PreprocessorOutput extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:scalapb.PreprocessorOutput)
PreprocessorOutputOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
PreprocessorOutput.class.getName());
}
// Use PreprocessorOutput.newBuilder() to construct.
private PreprocessorOutput(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PreprocessorOutput() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_PreprocessorOutput_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetOptionsByFile();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_PreprocessorOutput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.PreprocessorOutput.class, scalapb.options.Scalapb.PreprocessorOutput.Builder.class);
}
public static final int OPTIONS_BY_FILE_FIELD_NUMBER = 1;
private static final class OptionsByFileDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, scalapb.options.Scalapb.ScalaPbOptions> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
scalapb.options.Scalapb.internal_static_scalapb_PreprocessorOutput_OptionsByFileEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
scalapb.options.Scalapb.ScalaPbOptions.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, scalapb.options.Scalapb.ScalaPbOptions> optionsByFile_;
private com.google.protobuf.MapField
internalGetOptionsByFile() {
if (optionsByFile_ == null) {
return com.google.protobuf.MapField.emptyMapField(
OptionsByFileDefaultEntryHolder.defaultEntry);
}
return optionsByFile_;
}
public int getOptionsByFileCount() {
return internalGetOptionsByFile().getMap().size();
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
@java.lang.Override
public boolean containsOptionsByFile(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetOptionsByFile().getMap().containsKey(key);
}
/**
* Use {@link #getOptionsByFileMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getOptionsByFile() {
return getOptionsByFileMap();
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
@java.lang.Override
public java.util.Map getOptionsByFileMap() {
return internalGetOptionsByFile().getMap();
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
@java.lang.Override
public /* nullable */
scalapb.options.Scalapb.ScalaPbOptions getOptionsByFileOrDefault(
java.lang.String key,
/* nullable */
scalapb.options.Scalapb.ScalaPbOptions defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptionsByFile().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions getOptionsByFileOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetOptionsByFile().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (scalapb.options.Scalapb.ScalaPbOptions item : getOptionsByFileMap().values()) {
if (!item.isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetOptionsByFile(),
OptionsByFileDefaultEntryHolder.defaultEntry,
1);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetOptionsByFile().getMap().entrySet()) {
com.google.protobuf.MapEntry
optionsByFile__ = OptionsByFileDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, optionsByFile__);
}
size += getUnknownFields().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.PreprocessorOutput)) {
return super.equals(obj);
}
scalapb.options.Scalapb.PreprocessorOutput other = (scalapb.options.Scalapb.PreprocessorOutput) obj;
if (!internalGetOptionsByFile().equals(
other.internalGetOptionsByFile())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetOptionsByFile().getMap().isEmpty()) {
hash = (37 * hash) + OPTIONS_BY_FILE_FIELD_NUMBER;
hash = (53 * hash) + internalGetOptionsByFile().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static scalapb.options.Scalapb.PreprocessorOutput parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.PreprocessorOutput 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.PreprocessorOutput parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.PreprocessorOutput 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.PreprocessorOutput parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static scalapb.options.Scalapb.PreprocessorOutput parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static scalapb.options.Scalapb.PreprocessorOutput parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.PreprocessorOutput parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.PreprocessorOutput parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.PreprocessorOutput parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static scalapb.options.Scalapb.PreprocessorOutput parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static scalapb.options.Scalapb.PreprocessorOutput parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.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.PreprocessorOutput 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code scalapb.PreprocessorOutput}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:scalapb.PreprocessorOutput)
scalapb.options.Scalapb.PreprocessorOutputOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return scalapb.options.Scalapb.internal_static_scalapb_PreprocessorOutput_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetOptionsByFile();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetMutableOptionsByFile();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return scalapb.options.Scalapb.internal_static_scalapb_PreprocessorOutput_fieldAccessorTable
.ensureFieldAccessorsInitialized(
scalapb.options.Scalapb.PreprocessorOutput.class, scalapb.options.Scalapb.PreprocessorOutput.Builder.class);
}
// Construct using scalapb.options.Scalapb.PreprocessorOutput.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableOptionsByFile().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return scalapb.options.Scalapb.internal_static_scalapb_PreprocessorOutput_descriptor;
}
@java.lang.Override
public scalapb.options.Scalapb.PreprocessorOutput getDefaultInstanceForType() {
return scalapb.options.Scalapb.PreprocessorOutput.getDefaultInstance();
}
@java.lang.Override
public scalapb.options.Scalapb.PreprocessorOutput build() {
scalapb.options.Scalapb.PreprocessorOutput result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public scalapb.options.Scalapb.PreprocessorOutput buildPartial() {
scalapb.options.Scalapb.PreprocessorOutput result = new scalapb.options.Scalapb.PreprocessorOutput(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(scalapb.options.Scalapb.PreprocessorOutput result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.optionsByFile_ = internalGetOptionsByFile().build(OptionsByFileDefaultEntryHolder.defaultEntry);
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof scalapb.options.Scalapb.PreprocessorOutput) {
return mergeFrom((scalapb.options.Scalapb.PreprocessorOutput)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(scalapb.options.Scalapb.PreprocessorOutput other) {
if (other == scalapb.options.Scalapb.PreprocessorOutput.getDefaultInstance()) return this;
internalGetMutableOptionsByFile().mergeFrom(
other.internalGetOptionsByFile());
bitField0_ |= 0x00000001;
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (scalapb.options.Scalapb.ScalaPbOptions item : getOptionsByFileMap().values()) {
if (!item.isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.MapEntry
optionsByFile__ = input.readMessage(
OptionsByFileDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableOptionsByFile().ensureBuilderMap().put(
optionsByFile__.getKey(), optionsByFile__.getValue());
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private static final class OptionsByFileConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions build(scalapb.options.Scalapb.ScalaPbOptionsOrBuilder val) {
if (val instanceof scalapb.options.Scalapb.ScalaPbOptions) { return (scalapb.options.Scalapb.ScalaPbOptions) val; }
return ((scalapb.options.Scalapb.ScalaPbOptions.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return OptionsByFileDefaultEntryHolder.defaultEntry;
}
};
private static final OptionsByFileConverter optionsByFileConverter = new OptionsByFileConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, scalapb.options.Scalapb.ScalaPbOptionsOrBuilder, scalapb.options.Scalapb.ScalaPbOptions, scalapb.options.Scalapb.ScalaPbOptions.Builder> optionsByFile_;
private com.google.protobuf.MapFieldBuilder
internalGetOptionsByFile() {
if (optionsByFile_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(optionsByFileConverter);
}
return optionsByFile_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableOptionsByFile() {
if (optionsByFile_ == null) {
optionsByFile_ = new com.google.protobuf.MapFieldBuilder<>(optionsByFileConverter);
}
bitField0_ |= 0x00000001;
onChanged();
return optionsByFile_;
}
public int getOptionsByFileCount() {
return internalGetOptionsByFile().ensureBuilderMap().size();
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
@java.lang.Override
public boolean containsOptionsByFile(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetOptionsByFile().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getOptionsByFileMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getOptionsByFile() {
return getOptionsByFileMap();
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
@java.lang.Override
public java.util.Map getOptionsByFileMap() {
return internalGetOptionsByFile().getImmutableMap();
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
@java.lang.Override
public /* nullable */
scalapb.options.Scalapb.ScalaPbOptions getOptionsByFileOrDefault(
java.lang.String key,
/* nullable */
scalapb.options.Scalapb.ScalaPbOptions defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableOptionsByFile().ensureBuilderMap();
return map.containsKey(key) ? optionsByFileConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
@java.lang.Override
public scalapb.options.Scalapb.ScalaPbOptions getOptionsByFileOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableOptionsByFile().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return optionsByFileConverter.build(map.get(key));
}
public Builder clearOptionsByFile() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableOptionsByFile().clear();
return this;
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
public Builder removeOptionsByFile(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableOptionsByFile().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableOptionsByFile() {
bitField0_ |= 0x00000001;
return internalGetMutableOptionsByFile().ensureMessageMap();
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
public Builder putOptionsByFile(
java.lang.String key,
scalapb.options.Scalapb.ScalaPbOptions value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableOptionsByFile().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
public Builder putAllOptionsByFile(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableOptionsByFile().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000001;
return this;
}
/**
* map<string, .scalapb.ScalaPbOptions> options_by_file = 1;
*/
public scalapb.options.Scalapb.ScalaPbOptions.Builder putOptionsByFileBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableOptionsByFile().ensureBuilderMap();
scalapb.options.Scalapb.ScalaPbOptionsOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = scalapb.options.Scalapb.ScalaPbOptions.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof scalapb.options.Scalapb.ScalaPbOptions) {
entry = ((scalapb.options.Scalapb.ScalaPbOptions) entry).toBuilder();
builderMap.put(key, entry);
}
return (scalapb.options.Scalapb.ScalaPbOptions.Builder) entry;
}
// @@protoc_insertion_point(builder_scope:scalapb.PreprocessorOutput)
}
// @@protoc_insertion_point(class_scope:scalapb.PreprocessorOutput)
private static final scalapb.options.Scalapb.PreprocessorOutput DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new scalapb.options.Scalapb.PreprocessorOutput();
}
public static scalapb.options.Scalapb.PreprocessorOutput getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PreprocessorOutput parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.PreprocessorOutput 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.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_ScalaPbOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_MessageOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_MessageOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_Collection_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_Collection_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_FieldOptions_descriptor;
private static final
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_OneofOptions_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_FieldTransformation_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_FieldTransformation_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_PreprocessorOutput_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_PreprocessorOutput_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_scalapb_PreprocessorOutput_OptionsByFileEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_scalapb_PreprocessorOutput_OptionsByFileEntry_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\"\354\013\n\016ScalaPbOp" +
"tions\022\024\n\014package_name\030\001 \001(\t\022\024\n\014flat_pack" +
"age\030\002 \001(\010\022\016\n\006import\030\003 \003(\t\022\020\n\010preamble\030\004 " +
"\003(\t\022\023\n\013single_file\030\005 \001(\010\022\035\n\025no_primitive" +
"_wrappers\030\007 \001(\010\022\032\n\022primitive_wrappers\030\006 " +
"\001(\010\022\027\n\017collection_type\030\010 \001(\t\022%\n\027preserve" +
"_unknown_fields\030\t \001(\010:\004true\022\023\n\013object_na" +
"me\030\n \001(\t\0223\n\005scope\030\013 \001(\0162$.scalapb.ScalaP" +
"bOptions.OptionsScope\022\024\n\006lenses\030\014 \001(\010:\004t" +
"rue\022\037\n\027retain_source_code_info\030\r \001(\010\022\020\n\010" +
"map_type\030\016 \001(\t\022(\n no_default_values_in_c" +
"onstructor\030\017 \001(\010\022B\n\021enum_value_naming\030\020 " +
"\001(\0162\'.scalapb.ScalaPbOptions.EnumValueNa" +
"ming\022 \n\021enum_strip_prefix\030\021 \001(\010:\005false\022\022" +
"\n\nbytes_type\030\025 \001(\t\022\030\n\020java_conversions\030\027" +
" \001(\010\022F\n\023aux_message_options\030\022 \003(\0132).scal" +
"apb.ScalaPbOptions.AuxMessageOptions\022B\n\021" +
"aux_field_options\030\023 \003(\0132\'.scalapb.ScalaP" +
"bOptions.AuxFieldOptions\022@\n\020aux_enum_opt" +
"ions\030\024 \003(\0132&.scalapb.ScalaPbOptions.AuxE" +
"numOptions\022K\n\026aux_enum_value_options\030\026 \003" +
"(\0132+.scalapb.ScalaPbOptions.AuxEnumValue" +
"Options\022\025\n\rpreprocessors\030\030 \003(\t\022;\n\025field_" +
"transformations\030\031 \003(\0132\034.scalapb.FieldTra" +
"nsformation\022\"\n\032ignore_all_transformation" +
"s\030\032 \001(\010\022\025\n\007getters\030\033 \001(\010:\004true\022\026\n\016scala3" +
"_sources\030\034 \001(\010\022%\n\035public_constructor_par" +
"ameters\030\035 \001(\010\022&\n\035test_only_no_java_conve" +
"rsions\030\347\007 \001(\010\032M\n\021AuxMessageOptions\022\016\n\006ta" +
"rget\030\001 \001(\t\022(\n\007options\030\002 \001(\0132\027.scalapb.Me" +
"ssageOptions\032I\n\017AuxFieldOptions\022\016\n\006targe" +
"t\030\001 \001(\t\022&\n\007options\030\002 \001(\0132\025.scalapb.Field" +
"Options\032G\n\016AuxEnumOptions\022\016\n\006target\030\001 \001(" +
"\t\022%\n\007options\030\002 \001(\0132\024.scalapb.EnumOptions" +
"\032Q\n\023AuxEnumValueOptions\022\016\n\006target\030\001 \001(\t\022" +
"*\n\007options\030\002 \001(\0132\031.scalapb.EnumValueOpti" +
"ons\"%\n\014OptionsScope\022\010\n\004FILE\020\000\022\013\n\007PACKAGE" +
"\020\001\"2\n\017EnumValueNaming\022\017\n\013AS_IN_PROTO\020\000\022\016" +
"\n\nCAMEL_CASE\020\001*\t\010\350\007\020\200\200\200\200\002\"\200\003\n\016MessageOpt" +
"ions\022\017\n\007extends\030\001 \003(\t\022\031\n\021companion_exten" +
"ds\030\002 \003(\t\022\023\n\013annotations\030\003 \003(\t\022\014\n\004type\030\004 " +
"\001(\t\022\035\n\025companion_annotations\030\005 \003(\t\022\034\n\024se" +
"aled_oneof_extends\030\006 \003(\t\022\016\n\006no_box\030\007 \001(\010" +
"\022\"\n\032unknown_fields_annotations\030\010 \003(\t\022(\n " +
"no_default_values_in_constructor\030\t \001(\010\022&" +
"\n\036sealed_oneof_companion_extends\030\n \003(\t\022\017" +
"\n\007derives\030\013 \003(\t\022\034\n\024sealed_oneof_derives\030" +
"\014 \003(\t\022\"\n\032sealed_oneof_empty_extends\030\r \003(" +
"\t*\t\010\350\007\020\200\200\200\200\002\">\n\nCollection\022\014\n\004type\030\001 \001(\t" +
"\022\021\n\tnon_empty\030\002 \001(\010\022\017\n\007adapter\030\003 \001(\t\"\225\002\n" +
"\014FieldOptions\022\014\n\004type\030\001 \001(\t\022\022\n\nscala_nam" +
"e\030\002 \001(\t\022\027\n\017collection_type\030\003 \001(\t\022\'\n\ncoll" +
"ection\030\010 \001(\0132\023.scalapb.Collection\022\020\n\010key" +
"_type\030\004 \001(\t\022\022\n\nvalue_type\030\005 \001(\t\022\023\n\013annot" +
"ations\030\006 \003(\t\022\020\n\010map_type\030\007 \001(\t\022\'\n\037no_def" +
"ault_value_in_constructor\030\t \001(\010\022\016\n\006no_bo" +
"x\030\036 \001(\010\022\020\n\010required\030\037 \001(\010*\t\010\350\007\020\200\200\200\200\002\"\256\001\n" +
"\013EnumOptions\022\017\n\007extends\030\001 \003(\t\022\031\n\021compani" +
"on_extends\030\002 \003(\t\022\014\n\004type\030\003 \001(\t\022\030\n\020base_a" +
"nnotations\030\004 \003(\t\022\036\n\026recognized_annotatio" +
"ns\030\005 \003(\t\022 \n\030unrecognized_annotations\030\006 \003" +
"(\t*\t\010\350\007\020\200\200\200\200\002\"W\n\020EnumValueOptions\022\017\n\007ext" +
"ends\030\001 \003(\t\022\022\n\nscala_name\030\002 \001(\t\022\023\n\013annota" +
"tions\030\003 \003(\t*\t\010\350\007\020\200\200\200\200\002\">\n\014OneofOptions\022\017" +
"\n\007extends\030\001 \003(\t\022\022\n\nscala_name\030\002 \001(\t*\t\010\350\007" +
"\020\200\200\200\200\002\"\250\001\n\023FieldTransformation\0223\n\004when\030\001" +
" \001(\0132%.google.protobuf.FieldDescriptorPr" +
"oto\0220\n\nmatch_type\030\002 \001(\0162\022.scalapb.MatchT" +
"ype:\010CONTAINS\022*\n\003set\030\003 \001(\0132\035.google.prot" +
"obuf.FieldOptions\"\254\001\n\022PreprocessorOutput" +
"\022G\n\017options_by_file\030\001 \003(\0132..scalapb.Prep" +
"rocessorOutput.OptionsByFileEntry\032M\n\022Opt" +
"ionsByFileEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 " +
"\001(\0132\027.scalapb.ScalaPbOptions:\0028\001*2\n\tMatc" +
"hType\022\014\n\010CONTAINS\020\000\022\t\n\005EXACT\020\001\022\014\n\010PRESEN" +
"CE\020\002:G\n\007options\022\034.google.protobuf.FileOp" +
"tions\030\374\007 \001(\0132\027.scalapb.ScalaPbOptions:J\n" +
"\007message\022\037.google.protobuf.MessageOption" +
"s\030\374\007 \001(\0132\027.scalapb.MessageOptions:D\n\005fie" +
"ld\022\035.google.protobuf.FieldOptions\030\374\007 \001(\013" +
"2\025.scalapb.FieldOptions:I\n\014enum_options\022" +
"\034.google.protobuf.EnumOptions\030\374\007 \001(\0132\024.s" +
"calapb.EnumOptions:Q\n\nenum_value\022!.googl" +
"e.protobuf.EnumValueOptions\030\374\007 \001(\0132\031.sca" +
"lapb.EnumValueOptions:D\n\005oneof\022\035.google." +
"protobuf.OneofOptions\030\374\007 \001(\0132\025.scalapb.O" +
"neofOptionsBK\n\017scalapb.optionsZ\"scalapb." +
"github.io/protobuf/scalapb\342?\023\n\017scalapb.o" +
"ptions\020\001"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.DescriptorProtos.getDescriptor(),
});
internal_static_scalapb_ScalaPbOptions_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_scalapb_ScalaPbOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_ScalaPbOptions_descriptor,
new java.lang.String[] { "PackageName", "FlatPackage", "Import", "Preamble", "SingleFile", "NoPrimitiveWrappers", "PrimitiveWrappers", "CollectionType", "PreserveUnknownFields", "ObjectName", "Scope", "Lenses", "RetainSourceCodeInfo", "MapType", "NoDefaultValuesInConstructor", "EnumValueNaming", "EnumStripPrefix", "BytesType", "JavaConversions", "AuxMessageOptions", "AuxFieldOptions", "AuxEnumOptions", "AuxEnumValueOptions", "Preprocessors", "FieldTransformations", "IgnoreAllTransformations", "Getters", "Scala3Sources", "PublicConstructorParameters", "TestOnlyNoJavaConversions", });
internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_descriptor =
internal_static_scalapb_ScalaPbOptions_descriptor.getNestedTypes().get(0);
internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_ScalaPbOptions_AuxMessageOptions_descriptor,
new java.lang.String[] { "Target", "Options", });
internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_descriptor =
internal_static_scalapb_ScalaPbOptions_descriptor.getNestedTypes().get(1);
internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_ScalaPbOptions_AuxFieldOptions_descriptor,
new java.lang.String[] { "Target", "Options", });
internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_descriptor =
internal_static_scalapb_ScalaPbOptions_descriptor.getNestedTypes().get(2);
internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_ScalaPbOptions_AuxEnumOptions_descriptor,
new java.lang.String[] { "Target", "Options", });
internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_descriptor =
internal_static_scalapb_ScalaPbOptions_descriptor.getNestedTypes().get(3);
internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_ScalaPbOptions_AuxEnumValueOptions_descriptor,
new java.lang.String[] { "Target", "Options", });
internal_static_scalapb_MessageOptions_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_scalapb_MessageOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_MessageOptions_descriptor,
new java.lang.String[] { "Extends", "CompanionExtends", "Annotations", "Type", "CompanionAnnotations", "SealedOneofExtends", "NoBox", "UnknownFieldsAnnotations", "NoDefaultValuesInConstructor", "SealedOneofCompanionExtends", "Derives", "SealedOneofDerives", "SealedOneofEmptyExtends", });
internal_static_scalapb_Collection_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_scalapb_Collection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_Collection_descriptor,
new java.lang.String[] { "Type", "NonEmpty", "Adapter", });
internal_static_scalapb_FieldOptions_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_scalapb_FieldOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_FieldOptions_descriptor,
new java.lang.String[] { "Type", "ScalaName", "CollectionType", "Collection", "KeyType", "ValueType", "Annotations", "MapType", "NoDefaultValueInConstructor", "NoBox", "Required", });
internal_static_scalapb_EnumOptions_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_scalapb_EnumOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_EnumOptions_descriptor,
new java.lang.String[] { "Extends", "CompanionExtends", "Type", "BaseAnnotations", "RecognizedAnnotations", "UnrecognizedAnnotations", });
internal_static_scalapb_EnumValueOptions_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_scalapb_EnumValueOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_EnumValueOptions_descriptor,
new java.lang.String[] { "Extends", "ScalaName", "Annotations", });
internal_static_scalapb_OneofOptions_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_scalapb_OneofOptions_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_OneofOptions_descriptor,
new java.lang.String[] { "Extends", "ScalaName", });
internal_static_scalapb_FieldTransformation_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_scalapb_FieldTransformation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_FieldTransformation_descriptor,
new java.lang.String[] { "When", "MatchType", "Set", });
internal_static_scalapb_PreprocessorOutput_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_scalapb_PreprocessorOutput_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_PreprocessorOutput_descriptor,
new java.lang.String[] { "OptionsByFile", });
internal_static_scalapb_PreprocessorOutput_OptionsByFileEntry_descriptor =
internal_static_scalapb_PreprocessorOutput_descriptor.getNestedTypes().get(0);
internal_static_scalapb_PreprocessorOutput_OptionsByFileEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_scalapb_PreprocessorOutput_OptionsByFileEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
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));
descriptor.resolveAllFeaturesImmutable();
com.google.protobuf.DescriptorProtos.getDescriptor();
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(scalapb.options.Scalapb.options);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
}
// @@protoc_insertion_point(outer_class_scope)
}