// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Fields1.proto
package com.fictional.test;
public final class Fields1Proto {
private Fields1Proto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code EnumField1}
*/
public enum EnumField1
implements com.google.protobuf.ProtocolMessageEnum {
/**
* <code>ONE = 0;</code>
*/
ONE(0, 0),
/**
* <code>TWO = 1;</code>
*/
TWO(1, 1),
/**
* <code>THREE = 2;</code>
*/
THREE(2, 2),
;
/**
* <code>ONE = 0;</code>
*/
public static final int ONE_VALUE = 0;
/**
* <code>TWO = 1;</code>
*/
public static final int TWO_VALUE = 1;
/**
* <code>THREE = 2;</code>
*/
public static final int THREE_VALUE = 2;
public final int getNumber() { return value; }
public static EnumField1 valueOf(int value) {
switch (value) {
case 0: return ONE;
case 1: return TWO;
case 2: return THREE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<EnumField1>
internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<EnumField1>
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap<EnumField1>() {
public EnumField1 findValueByNumber(int number) {
return EnumField1.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.fictional.test.Fields1Proto.getDescriptor().getEnumTypes().get(0);
}
private static final EnumField1[] VALUES = values();
public static EnumField1 valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private EnumField1(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:EnumField1)
}
public interface ScalarFieldsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ScalarFields)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional bool boolean_field = 1;</code>
*/
boolean hasBooleanField();
/**
* <code>optional bool boolean_field = 1;</code>
*/
boolean getBooleanField();
/**
* <code>optional double double_field = 2;</code>
*/
boolean hasDoubleField();
/**
* <code>optional double double_field = 2;</code>
*/
double getDoubleField();
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
boolean hasFixed32Field();
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
int getFixed32Field();
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
boolean hasFixed64Field();
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
long getFixed64Field();
/**
* <code>optional float float_field = 5;</code>
*/
boolean hasFloatField();
/**
* <code>optional float float_field = 5;</code>
*/
float getFloatField();
/**
* <code>optional int32 int32_field = 6;</code>
*/
boolean hasInt32Field();
/**
* <code>optional int32 int32_field = 6;</code>
*/
int getInt32Field();
/**
* <code>optional int64 int64_field = 7;</code>
*/
boolean hasInt64Field();
/**
* <code>optional int64 int64_field = 7;</code>
*/
long getInt64Field();
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
boolean hasSfixed32Field();
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
int getSfixed32Field();
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
boolean hasSfixed64Field();
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
long getSfixed64Field();
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
boolean hasSint32Field();
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
int getSint32Field();
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
boolean hasSint64Field();
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
long getSint64Field();
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
boolean hasUint32Field();
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
int getUint32Field();
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
boolean hasUint64Field();
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
long getUint64Field();
/**
* <code>optional string string_field = 14;</code>
*/
boolean hasStringField();
/**
* <code>optional string string_field = 14;</code>
*/
java.lang.String getStringField();
/**
* <code>optional string string_field = 14;</code>
*/
com.google.protobuf.ByteString
getStringFieldBytes();
/**
* <code>optional bytes bytes_field = 15;</code>
*/
boolean hasBytesField();
/**
* <code>optional bytes bytes_field = 15;</code>
*/
com.google.protobuf.ByteString getBytesField();
}
/**
* Protobuf type {@code ScalarFields}
*/
public static final class ScalarFields extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ScalarFields)
ScalarFieldsOrBuilder {
// Use ScalarFields.newBuilder() to construct.
private ScalarFields(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ScalarFields(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ScalarFields defaultInstance;
public static ScalarFields getDefaultInstance() {
return defaultInstance;
}
public ScalarFields getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScalarFields(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
booleanField_ = input.readBool();
break;
}
case 17: {
bitField0_ |= 0x00000002;
doubleField_ = input.readDouble();
break;
}
case 29: {
bitField0_ |= 0x00000004;
fixed32Field_ = input.readFixed32();
break;
}
case 33: {
bitField0_ |= 0x00000008;
fixed64Field_ = input.readFixed64();
break;
}
case 45: {
bitField0_ |= 0x00000010;
floatField_ = input.readFloat();
break;
}
case 48: {
bitField0_ |= 0x00000020;
int32Field_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
int64Field_ = input.readInt64();
break;
}
case 69: {
bitField0_ |= 0x00000080;
sfixed32Field_ = input.readSFixed32();
break;
}
case 73: {
bitField0_ |= 0x00000100;
sfixed64Field_ = input.readSFixed64();
break;
}
case 80: {
bitField0_ |= 0x00000200;
sint32Field_ = input.readSInt32();
break;
}
case 88: {
bitField0_ |= 0x00000400;
sint64Field_ = input.readSInt64();
break;
}
case 96: {
bitField0_ |= 0x00000800;
uint32Field_ = input.readUInt32();
break;
}
case 104: {
bitField0_ |= 0x00001000;
uint64Field_ = input.readUInt64();
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
stringField_ = bs;
break;
}
case 122: {
bitField0_ |= 0x00004000;
bytesField_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.Fields1Proto.internal_static_ScalarFields_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.Fields1Proto.internal_static_ScalarFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.Fields1Proto.ScalarFields.class, com.fictional.test.Fields1Proto.ScalarFields.Builder.class);
}
public static com.google.protobuf.Parser<ScalarFields> PARSER =
new com.google.protobuf.AbstractParser<ScalarFields>() {
public ScalarFields parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScalarFields(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ScalarFields> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int BOOLEAN_FIELD_FIELD_NUMBER = 1;
private boolean booleanField_;
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean hasBooleanField() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean getBooleanField() {
return booleanField_;
}
public static final int DOUBLE_FIELD_FIELD_NUMBER = 2;
private double doubleField_;
/**
* <code>optional double double_field = 2;</code>
*/
public boolean hasDoubleField() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional double double_field = 2;</code>
*/
public double getDoubleField() {
return doubleField_;
}
public static final int FIXED32_FIELD_FIELD_NUMBER = 3;
private int fixed32Field_;
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public boolean hasFixed32Field() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public int getFixed32Field() {
return fixed32Field_;
}
public static final int FIXED64_FIELD_FIELD_NUMBER = 4;
private long fixed64Field_;
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public boolean hasFixed64Field() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public long getFixed64Field() {
return fixed64Field_;
}
public static final int FLOAT_FIELD_FIELD_NUMBER = 5;
private float floatField_;
/**
* <code>optional float float_field = 5;</code>
*/
public boolean hasFloatField() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float float_field = 5;</code>
*/
public float getFloatField() {
return floatField_;
}
public static final int INT32_FIELD_FIELD_NUMBER = 6;
private int int32Field_;
/**
* <code>optional int32 int32_field = 6;</code>
*/
public boolean hasInt32Field() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public int getInt32Field() {
return int32Field_;
}
public static final int INT64_FIELD_FIELD_NUMBER = 7;
private long int64Field_;
/**
* <code>optional int64 int64_field = 7;</code>
*/
public boolean hasInt64Field() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public long getInt64Field() {
return int64Field_;
}
public static final int SFIXED32_FIELD_FIELD_NUMBER = 8;
private int sfixed32Field_;
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public boolean hasSfixed32Field() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public int getSfixed32Field() {
return sfixed32Field_;
}
public static final int SFIXED64_FIELD_FIELD_NUMBER = 9;
private long sfixed64Field_;
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public boolean hasSfixed64Field() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public long getSfixed64Field() {
return sfixed64Field_;
}
public static final int SINT32_FIELD_FIELD_NUMBER = 10;
private int sint32Field_;
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public boolean hasSint32Field() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public int getSint32Field() {
return sint32Field_;
}
public static final int SINT64_FIELD_FIELD_NUMBER = 11;
private long sint64Field_;
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public boolean hasSint64Field() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public long getSint64Field() {
return sint64Field_;
}
public static final int UINT32_FIELD_FIELD_NUMBER = 12;
private int uint32Field_;
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public boolean hasUint32Field() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public int getUint32Field() {
return uint32Field_;
}
public static final int UINT64_FIELD_FIELD_NUMBER = 13;
private long uint64Field_;
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public boolean hasUint64Field() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public long getUint64Field() {
return uint64Field_;
}
public static final int STRING_FIELD_FIELD_NUMBER = 14;
private java.lang.Object stringField_;
/**
* <code>optional string string_field = 14;</code>
*/
public boolean hasStringField() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional string string_field = 14;</code>
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
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()) {
stringField_ = s;
}
return s;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYTES_FIELD_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString bytesField_;
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public boolean hasBytesField() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public com.google.protobuf.ByteString getBytesField() {
return bytesField_;
}
private void initFields() {
booleanField_ = false;
doubleField_ = 0D;
fixed32Field_ = 0;
fixed64Field_ = 0L;
floatField_ = 0F;
int32Field_ = 0;
int64Field_ = 0L;
sfixed32Field_ = 0;
sfixed64Field_ = 0L;
sint32Field_ = 0;
sint64Field_ = 0L;
uint32Field_ = 0;
uint64Field_ = 0L;
stringField_ = "";
bytesField_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, booleanField_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, doubleField_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFixed32(3, fixed32Field_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFixed64(4, fixed64Field_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFloat(5, floatField_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, int32Field_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt64(7, int64Field_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeSFixed32(8, sfixed32Field_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeSFixed64(9, sfixed64Field_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeSInt32(10, sint32Field_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeSInt64(11, sint64Field_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeUInt32(12, uint32Field_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeUInt64(13, uint64Field_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeBytes(14, getStringFieldBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeBytes(15, bytesField_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, booleanField_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, doubleField_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(3, fixed32Field_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, fixed64Field_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, floatField_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, int32Field_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, int64Field_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(8, sfixed32Field_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(9, sfixed64Field_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(10, sint32Field_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(11, sint64Field_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, uint32Field_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(13, uint64Field_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(14, getStringFieldBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, bytesField_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.fictional.test.Fields1Proto.ScalarFields parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarFields parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.fictional.test.Fields1Proto.ScalarFields prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ScalarFields}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ScalarFields)
com.fictional.test.Fields1Proto.ScalarFieldsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.Fields1Proto.internal_static_ScalarFields_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.Fields1Proto.internal_static_ScalarFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.Fields1Proto.ScalarFields.class, com.fictional.test.Fields1Proto.ScalarFields.Builder.class);
}
// Construct using com.fictional.test.Fields1Proto.ScalarFields.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
booleanField_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
doubleField_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
fixed32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
fixed64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
floatField_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
int32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
int64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
sfixed32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
sfixed64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
sint32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
sint64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
uint32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
uint64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00001000);
stringField_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
bytesField_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.Fields1Proto.internal_static_ScalarFields_descriptor;
}
public com.fictional.test.Fields1Proto.ScalarFields getDefaultInstanceForType() {
return com.fictional.test.Fields1Proto.ScalarFields.getDefaultInstance();
}
public com.fictional.test.Fields1Proto.ScalarFields build() {
com.fictional.test.Fields1Proto.ScalarFields result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.Fields1Proto.ScalarFields buildPartial() {
com.fictional.test.Fields1Proto.ScalarFields result = new com.fictional.test.Fields1Proto.ScalarFields(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.booleanField_ = booleanField_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.doubleField_ = doubleField_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.fixed32Field_ = fixed32Field_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.fixed64Field_ = fixed64Field_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.floatField_ = floatField_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.int32Field_ = int32Field_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.int64Field_ = int64Field_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.sfixed32Field_ = sfixed32Field_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.sfixed64Field_ = sfixed64Field_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.sint32Field_ = sint32Field_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.sint64Field_ = sint64Field_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.uint32Field_ = uint32Field_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.uint64Field_ = uint64Field_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.stringField_ = stringField_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
result.bytesField_ = bytesField_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.Fields1Proto.ScalarFields) {
return mergeFrom((com.fictional.test.Fields1Proto.ScalarFields)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.Fields1Proto.ScalarFields other) {
if (other == com.fictional.test.Fields1Proto.ScalarFields.getDefaultInstance()) return this;
if (other.hasBooleanField()) {
setBooleanField(other.getBooleanField());
}
if (other.hasDoubleField()) {
setDoubleField(other.getDoubleField());
}
if (other.hasFixed32Field()) {
setFixed32Field(other.getFixed32Field());
}
if (other.hasFixed64Field()) {
setFixed64Field(other.getFixed64Field());
}
if (other.hasFloatField()) {
setFloatField(other.getFloatField());
}
if (other.hasInt32Field()) {
setInt32Field(other.getInt32Field());
}
if (other.hasInt64Field()) {
setInt64Field(other.getInt64Field());
}
if (other.hasSfixed32Field()) {
setSfixed32Field(other.getSfixed32Field());
}
if (other.hasSfixed64Field()) {
setSfixed64Field(other.getSfixed64Field());
}
if (other.hasSint32Field()) {
setSint32Field(other.getSint32Field());
}
if (other.hasSint64Field()) {
setSint64Field(other.getSint64Field());
}
if (other.hasUint32Field()) {
setUint32Field(other.getUint32Field());
}
if (other.hasUint64Field()) {
setUint64Field(other.getUint64Field());
}
if (other.hasStringField()) {
bitField0_ |= 0x00002000;
stringField_ = other.stringField_;
onChanged();
}
if (other.hasBytesField()) {
setBytesField(other.getBytesField());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.Fields1Proto.ScalarFields parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.Fields1Proto.ScalarFields) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean booleanField_ ;
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean hasBooleanField() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean getBooleanField() {
return booleanField_;
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public Builder setBooleanField(boolean value) {
bitField0_ |= 0x00000001;
booleanField_ = value;
onChanged();
return this;
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public Builder clearBooleanField() {
bitField0_ = (bitField0_ & ~0x00000001);
booleanField_ = false;
onChanged();
return this;
}
private double doubleField_ ;
/**
* <code>optional double double_field = 2;</code>
*/
public boolean hasDoubleField() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional double double_field = 2;</code>
*/
public double getDoubleField() {
return doubleField_;
}
/**
* <code>optional double double_field = 2;</code>
*/
public Builder setDoubleField(double value) {
bitField0_ |= 0x00000002;
doubleField_ = value;
onChanged();
return this;
}
/**
* <code>optional double double_field = 2;</code>
*/
public Builder clearDoubleField() {
bitField0_ = (bitField0_ & ~0x00000002);
doubleField_ = 0D;
onChanged();
return this;
}
private int fixed32Field_ ;
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public boolean hasFixed32Field() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public int getFixed32Field() {
return fixed32Field_;
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public Builder setFixed32Field(int value) {
bitField0_ |= 0x00000004;
fixed32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public Builder clearFixed32Field() {
bitField0_ = (bitField0_ & ~0x00000004);
fixed32Field_ = 0;
onChanged();
return this;
}
private long fixed64Field_ ;
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public boolean hasFixed64Field() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public long getFixed64Field() {
return fixed64Field_;
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public Builder setFixed64Field(long value) {
bitField0_ |= 0x00000008;
fixed64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public Builder clearFixed64Field() {
bitField0_ = (bitField0_ & ~0x00000008);
fixed64Field_ = 0L;
onChanged();
return this;
}
private float floatField_ ;
/**
* <code>optional float float_field = 5;</code>
*/
public boolean hasFloatField() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float float_field = 5;</code>
*/
public float getFloatField() {
return floatField_;
}
/**
* <code>optional float float_field = 5;</code>
*/
public Builder setFloatField(float value) {
bitField0_ |= 0x00000010;
floatField_ = value;
onChanged();
return this;
}
/**
* <code>optional float float_field = 5;</code>
*/
public Builder clearFloatField() {
bitField0_ = (bitField0_ & ~0x00000010);
floatField_ = 0F;
onChanged();
return this;
}
private int int32Field_ ;
/**
* <code>optional int32 int32_field = 6;</code>
*/
public boolean hasInt32Field() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public int getInt32Field() {
return int32Field_;
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public Builder setInt32Field(int value) {
bitField0_ |= 0x00000020;
int32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public Builder clearInt32Field() {
bitField0_ = (bitField0_ & ~0x00000020);
int32Field_ = 0;
onChanged();
return this;
}
private long int64Field_ ;
/**
* <code>optional int64 int64_field = 7;</code>
*/
public boolean hasInt64Field() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public long getInt64Field() {
return int64Field_;
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public Builder setInt64Field(long value) {
bitField0_ |= 0x00000040;
int64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public Builder clearInt64Field() {
bitField0_ = (bitField0_ & ~0x00000040);
int64Field_ = 0L;
onChanged();
return this;
}
private int sfixed32Field_ ;
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public boolean hasSfixed32Field() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public int getSfixed32Field() {
return sfixed32Field_;
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public Builder setSfixed32Field(int value) {
bitField0_ |= 0x00000080;
sfixed32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public Builder clearSfixed32Field() {
bitField0_ = (bitField0_ & ~0x00000080);
sfixed32Field_ = 0;
onChanged();
return this;
}
private long sfixed64Field_ ;
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public boolean hasSfixed64Field() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public long getSfixed64Field() {
return sfixed64Field_;
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public Builder setSfixed64Field(long value) {
bitField0_ |= 0x00000100;
sfixed64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public Builder clearSfixed64Field() {
bitField0_ = (bitField0_ & ~0x00000100);
sfixed64Field_ = 0L;
onChanged();
return this;
}
private int sint32Field_ ;
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public boolean hasSint32Field() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public int getSint32Field() {
return sint32Field_;
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public Builder setSint32Field(int value) {
bitField0_ |= 0x00000200;
sint32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public Builder clearSint32Field() {
bitField0_ = (bitField0_ & ~0x00000200);
sint32Field_ = 0;
onChanged();
return this;
}
private long sint64Field_ ;
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public boolean hasSint64Field() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public long getSint64Field() {
return sint64Field_;
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public Builder setSint64Field(long value) {
bitField0_ |= 0x00000400;
sint64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public Builder clearSint64Field() {
bitField0_ = (bitField0_ & ~0x00000400);
sint64Field_ = 0L;
onChanged();
return this;
}
private int uint32Field_ ;
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public boolean hasUint32Field() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public int getUint32Field() {
return uint32Field_;
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public Builder setUint32Field(int value) {
bitField0_ |= 0x00000800;
uint32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public Builder clearUint32Field() {
bitField0_ = (bitField0_ & ~0x00000800);
uint32Field_ = 0;
onChanged();
return this;
}
private long uint64Field_ ;
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public boolean hasUint64Field() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public long getUint64Field() {
return uint64Field_;
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public Builder setUint64Field(long value) {
bitField0_ |= 0x00001000;
uint64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public Builder clearUint64Field() {
bitField0_ = (bitField0_ & ~0x00001000);
uint64Field_ = 0L;
onChanged();
return this;
}
private java.lang.Object stringField_ = "";
/**
* <code>optional string string_field = 14;</code>
*/
public boolean hasStringField() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional string string_field = 14;</code>
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
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()) {
stringField_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder setStringField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
stringField_ = value;
onChanged();
return this;
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder clearStringField() {
bitField0_ = (bitField0_ & ~0x00002000);
stringField_ = getDefaultInstance().getStringField();
onChanged();
return this;
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder setStringFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
stringField_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString bytesField_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public boolean hasBytesField() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public com.google.protobuf.ByteString getBytesField() {
return bytesField_;
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public Builder setBytesField(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
bytesField_ = value;
onChanged();
return this;
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public Builder clearBytesField() {
bitField0_ = (bitField0_ & ~0x00004000);
bytesField_ = getDefaultInstance().getBytesField();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ScalarFields)
}
static {
defaultInstance = new ScalarFields(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ScalarFields)
}
public interface ScalarAndEnumFieldsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ScalarAndEnumFields)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional bool boolean_field = 1;</code>
*/
boolean hasBooleanField();
/**
* <code>optional bool boolean_field = 1;</code>
*/
boolean getBooleanField();
/**
* <code>optional double double_field = 2;</code>
*/
boolean hasDoubleField();
/**
* <code>optional double double_field = 2;</code>
*/
double getDoubleField();
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
boolean hasFixed32Field();
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
int getFixed32Field();
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
boolean hasFixed64Field();
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
long getFixed64Field();
/**
* <code>optional float float_field = 5;</code>
*/
boolean hasFloatField();
/**
* <code>optional float float_field = 5;</code>
*/
float getFloatField();
/**
* <code>optional int32 int32_field = 6;</code>
*/
boolean hasInt32Field();
/**
* <code>optional int32 int32_field = 6;</code>
*/
int getInt32Field();
/**
* <code>optional int64 int64_field = 7;</code>
*/
boolean hasInt64Field();
/**
* <code>optional int64 int64_field = 7;</code>
*/
long getInt64Field();
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
boolean hasSfixed32Field();
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
int getSfixed32Field();
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
boolean hasSfixed64Field();
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
long getSfixed64Field();
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
boolean hasSint32Field();
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
int getSint32Field();
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
boolean hasSint64Field();
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
long getSint64Field();
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
boolean hasUint32Field();
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
int getUint32Field();
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
boolean hasUint64Field();
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
long getUint64Field();
/**
* <code>optional string string_field = 14;</code>
*/
boolean hasStringField();
/**
* <code>optional string string_field = 14;</code>
*/
java.lang.String getStringField();
/**
* <code>optional string string_field = 14;</code>
*/
com.google.protobuf.ByteString
getStringFieldBytes();
/**
* <code>optional bytes bytes_field = 15;</code>
*/
boolean hasBytesField();
/**
* <code>optional bytes bytes_field = 15;</code>
*/
com.google.protobuf.ByteString getBytesField();
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
boolean hasEnumField();
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
com.fictional.test.Fields1Proto.EnumField1 getEnumField();
}
/**
* Protobuf type {@code ScalarAndEnumFields}
*/
public static final class ScalarAndEnumFields extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ScalarAndEnumFields)
ScalarAndEnumFieldsOrBuilder {
// Use ScalarAndEnumFields.newBuilder() to construct.
private ScalarAndEnumFields(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ScalarAndEnumFields(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ScalarAndEnumFields defaultInstance;
public static ScalarAndEnumFields getDefaultInstance() {
return defaultInstance;
}
public ScalarAndEnumFields getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScalarAndEnumFields(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
booleanField_ = input.readBool();
break;
}
case 17: {
bitField0_ |= 0x00000002;
doubleField_ = input.readDouble();
break;
}
case 29: {
bitField0_ |= 0x00000004;
fixed32Field_ = input.readFixed32();
break;
}
case 33: {
bitField0_ |= 0x00000008;
fixed64Field_ = input.readFixed64();
break;
}
case 45: {
bitField0_ |= 0x00000010;
floatField_ = input.readFloat();
break;
}
case 48: {
bitField0_ |= 0x00000020;
int32Field_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
int64Field_ = input.readInt64();
break;
}
case 69: {
bitField0_ |= 0x00000080;
sfixed32Field_ = input.readSFixed32();
break;
}
case 73: {
bitField0_ |= 0x00000100;
sfixed64Field_ = input.readSFixed64();
break;
}
case 80: {
bitField0_ |= 0x00000200;
sint32Field_ = input.readSInt32();
break;
}
case 88: {
bitField0_ |= 0x00000400;
sint64Field_ = input.readSInt64();
break;
}
case 96: {
bitField0_ |= 0x00000800;
uint32Field_ = input.readUInt32();
break;
}
case 104: {
bitField0_ |= 0x00001000;
uint64Field_ = input.readUInt64();
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
stringField_ = bs;
break;
}
case 122: {
bitField0_ |= 0x00004000;
bytesField_ = input.readBytes();
break;
}
case 128: {
int rawValue = input.readEnum();
com.fictional.test.Fields1Proto.EnumField1 value = com.fictional.test.Fields1Proto.EnumField1.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(16, rawValue);
} else {
bitField0_ |= 0x00008000;
enumField_ = value;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.Fields1Proto.internal_static_ScalarAndEnumFields_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.Fields1Proto.internal_static_ScalarAndEnumFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.Fields1Proto.ScalarAndEnumFields.class, com.fictional.test.Fields1Proto.ScalarAndEnumFields.Builder.class);
}
public static com.google.protobuf.Parser<ScalarAndEnumFields> PARSER =
new com.google.protobuf.AbstractParser<ScalarAndEnumFields>() {
public ScalarAndEnumFields parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScalarAndEnumFields(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ScalarAndEnumFields> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int BOOLEAN_FIELD_FIELD_NUMBER = 1;
private boolean booleanField_;
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean hasBooleanField() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean getBooleanField() {
return booleanField_;
}
public static final int DOUBLE_FIELD_FIELD_NUMBER = 2;
private double doubleField_;
/**
* <code>optional double double_field = 2;</code>
*/
public boolean hasDoubleField() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional double double_field = 2;</code>
*/
public double getDoubleField() {
return doubleField_;
}
public static final int FIXED32_FIELD_FIELD_NUMBER = 3;
private int fixed32Field_;
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public boolean hasFixed32Field() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public int getFixed32Field() {
return fixed32Field_;
}
public static final int FIXED64_FIELD_FIELD_NUMBER = 4;
private long fixed64Field_;
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public boolean hasFixed64Field() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public long getFixed64Field() {
return fixed64Field_;
}
public static final int FLOAT_FIELD_FIELD_NUMBER = 5;
private float floatField_;
/**
* <code>optional float float_field = 5;</code>
*/
public boolean hasFloatField() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float float_field = 5;</code>
*/
public float getFloatField() {
return floatField_;
}
public static final int INT32_FIELD_FIELD_NUMBER = 6;
private int int32Field_;
/**
* <code>optional int32 int32_field = 6;</code>
*/
public boolean hasInt32Field() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public int getInt32Field() {
return int32Field_;
}
public static final int INT64_FIELD_FIELD_NUMBER = 7;
private long int64Field_;
/**
* <code>optional int64 int64_field = 7;</code>
*/
public boolean hasInt64Field() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public long getInt64Field() {
return int64Field_;
}
public static final int SFIXED32_FIELD_FIELD_NUMBER = 8;
private int sfixed32Field_;
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public boolean hasSfixed32Field() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public int getSfixed32Field() {
return sfixed32Field_;
}
public static final int SFIXED64_FIELD_FIELD_NUMBER = 9;
private long sfixed64Field_;
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public boolean hasSfixed64Field() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public long getSfixed64Field() {
return sfixed64Field_;
}
public static final int SINT32_FIELD_FIELD_NUMBER = 10;
private int sint32Field_;
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public boolean hasSint32Field() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public int getSint32Field() {
return sint32Field_;
}
public static final int SINT64_FIELD_FIELD_NUMBER = 11;
private long sint64Field_;
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public boolean hasSint64Field() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public long getSint64Field() {
return sint64Field_;
}
public static final int UINT32_FIELD_FIELD_NUMBER = 12;
private int uint32Field_;
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public boolean hasUint32Field() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public int getUint32Field() {
return uint32Field_;
}
public static final int UINT64_FIELD_FIELD_NUMBER = 13;
private long uint64Field_;
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public boolean hasUint64Field() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public long getUint64Field() {
return uint64Field_;
}
public static final int STRING_FIELD_FIELD_NUMBER = 14;
private java.lang.Object stringField_;
/**
* <code>optional string string_field = 14;</code>
*/
public boolean hasStringField() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional string string_field = 14;</code>
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
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()) {
stringField_ = s;
}
return s;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYTES_FIELD_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString bytesField_;
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public boolean hasBytesField() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public com.google.protobuf.ByteString getBytesField() {
return bytesField_;
}
public static final int ENUM_FIELD_FIELD_NUMBER = 16;
private com.fictional.test.Fields1Proto.EnumField1 enumField_;
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public boolean hasEnumField() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public com.fictional.test.Fields1Proto.EnumField1 getEnumField() {
return enumField_;
}
private void initFields() {
booleanField_ = false;
doubleField_ = 0D;
fixed32Field_ = 0;
fixed64Field_ = 0L;
floatField_ = 0F;
int32Field_ = 0;
int64Field_ = 0L;
sfixed32Field_ = 0;
sfixed64Field_ = 0L;
sint32Field_ = 0;
sint64Field_ = 0L;
uint32Field_ = 0;
uint64Field_ = 0L;
stringField_ = "";
bytesField_ = com.google.protobuf.ByteString.EMPTY;
enumField_ = com.fictional.test.Fields1Proto.EnumField1.ONE;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, booleanField_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, doubleField_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFixed32(3, fixed32Field_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFixed64(4, fixed64Field_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFloat(5, floatField_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, int32Field_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt64(7, int64Field_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeSFixed32(8, sfixed32Field_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeSFixed64(9, sfixed64Field_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeSInt32(10, sint32Field_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeSInt64(11, sint64Field_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeUInt32(12, uint32Field_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeUInt64(13, uint64Field_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeBytes(14, getStringFieldBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeBytes(15, bytesField_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeEnum(16, enumField_.getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, booleanField_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, doubleField_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(3, fixed32Field_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, fixed64Field_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, floatField_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, int32Field_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, int64Field_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(8, sfixed32Field_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(9, sfixed64Field_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(10, sint32Field_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(11, sint64Field_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, uint32Field_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(13, uint64Field_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(14, getStringFieldBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, bytesField_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(16, enumField_.getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarAndEnumFields parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.fictional.test.Fields1Proto.ScalarAndEnumFields prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ScalarAndEnumFields}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ScalarAndEnumFields)
com.fictional.test.Fields1Proto.ScalarAndEnumFieldsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.Fields1Proto.internal_static_ScalarAndEnumFields_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.Fields1Proto.internal_static_ScalarAndEnumFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.Fields1Proto.ScalarAndEnumFields.class, com.fictional.test.Fields1Proto.ScalarAndEnumFields.Builder.class);
}
// Construct using com.fictional.test.Fields1Proto.ScalarAndEnumFields.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
booleanField_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
doubleField_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
fixed32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
fixed64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
floatField_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
int32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
int64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
sfixed32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
sfixed64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
sint32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
sint64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
uint32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
uint64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00001000);
stringField_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
bytesField_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
enumField_ = com.fictional.test.Fields1Proto.EnumField1.ONE;
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.Fields1Proto.internal_static_ScalarAndEnumFields_descriptor;
}
public com.fictional.test.Fields1Proto.ScalarAndEnumFields getDefaultInstanceForType() {
return com.fictional.test.Fields1Proto.ScalarAndEnumFields.getDefaultInstance();
}
public com.fictional.test.Fields1Proto.ScalarAndEnumFields build() {
com.fictional.test.Fields1Proto.ScalarAndEnumFields result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.Fields1Proto.ScalarAndEnumFields buildPartial() {
com.fictional.test.Fields1Proto.ScalarAndEnumFields result = new com.fictional.test.Fields1Proto.ScalarAndEnumFields(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.booleanField_ = booleanField_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.doubleField_ = doubleField_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.fixed32Field_ = fixed32Field_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.fixed64Field_ = fixed64Field_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.floatField_ = floatField_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.int32Field_ = int32Field_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.int64Field_ = int64Field_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.sfixed32Field_ = sfixed32Field_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.sfixed64Field_ = sfixed64Field_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.sint32Field_ = sint32Field_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.sint64Field_ = sint64Field_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.uint32Field_ = uint32Field_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.uint64Field_ = uint64Field_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.stringField_ = stringField_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
result.bytesField_ = bytesField_;
if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
to_bitField0_ |= 0x00008000;
}
result.enumField_ = enumField_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.Fields1Proto.ScalarAndEnumFields) {
return mergeFrom((com.fictional.test.Fields1Proto.ScalarAndEnumFields)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.Fields1Proto.ScalarAndEnumFields other) {
if (other == com.fictional.test.Fields1Proto.ScalarAndEnumFields.getDefaultInstance()) return this;
if (other.hasBooleanField()) {
setBooleanField(other.getBooleanField());
}
if (other.hasDoubleField()) {
setDoubleField(other.getDoubleField());
}
if (other.hasFixed32Field()) {
setFixed32Field(other.getFixed32Field());
}
if (other.hasFixed64Field()) {
setFixed64Field(other.getFixed64Field());
}
if (other.hasFloatField()) {
setFloatField(other.getFloatField());
}
if (other.hasInt32Field()) {
setInt32Field(other.getInt32Field());
}
if (other.hasInt64Field()) {
setInt64Field(other.getInt64Field());
}
if (other.hasSfixed32Field()) {
setSfixed32Field(other.getSfixed32Field());
}
if (other.hasSfixed64Field()) {
setSfixed64Field(other.getSfixed64Field());
}
if (other.hasSint32Field()) {
setSint32Field(other.getSint32Field());
}
if (other.hasSint64Field()) {
setSint64Field(other.getSint64Field());
}
if (other.hasUint32Field()) {
setUint32Field(other.getUint32Field());
}
if (other.hasUint64Field()) {
setUint64Field(other.getUint64Field());
}
if (other.hasStringField()) {
bitField0_ |= 0x00002000;
stringField_ = other.stringField_;
onChanged();
}
if (other.hasBytesField()) {
setBytesField(other.getBytesField());
}
if (other.hasEnumField()) {
setEnumField(other.getEnumField());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.Fields1Proto.ScalarAndEnumFields parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.Fields1Proto.ScalarAndEnumFields) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean booleanField_ ;
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean hasBooleanField() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean getBooleanField() {
return booleanField_;
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public Builder setBooleanField(boolean value) {
bitField0_ |= 0x00000001;
booleanField_ = value;
onChanged();
return this;
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public Builder clearBooleanField() {
bitField0_ = (bitField0_ & ~0x00000001);
booleanField_ = false;
onChanged();
return this;
}
private double doubleField_ ;
/**
* <code>optional double double_field = 2;</code>
*/
public boolean hasDoubleField() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional double double_field = 2;</code>
*/
public double getDoubleField() {
return doubleField_;
}
/**
* <code>optional double double_field = 2;</code>
*/
public Builder setDoubleField(double value) {
bitField0_ |= 0x00000002;
doubleField_ = value;
onChanged();
return this;
}
/**
* <code>optional double double_field = 2;</code>
*/
public Builder clearDoubleField() {
bitField0_ = (bitField0_ & ~0x00000002);
doubleField_ = 0D;
onChanged();
return this;
}
private int fixed32Field_ ;
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public boolean hasFixed32Field() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public int getFixed32Field() {
return fixed32Field_;
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public Builder setFixed32Field(int value) {
bitField0_ |= 0x00000004;
fixed32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public Builder clearFixed32Field() {
bitField0_ = (bitField0_ & ~0x00000004);
fixed32Field_ = 0;
onChanged();
return this;
}
private long fixed64Field_ ;
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public boolean hasFixed64Field() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public long getFixed64Field() {
return fixed64Field_;
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public Builder setFixed64Field(long value) {
bitField0_ |= 0x00000008;
fixed64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public Builder clearFixed64Field() {
bitField0_ = (bitField0_ & ~0x00000008);
fixed64Field_ = 0L;
onChanged();
return this;
}
private float floatField_ ;
/**
* <code>optional float float_field = 5;</code>
*/
public boolean hasFloatField() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float float_field = 5;</code>
*/
public float getFloatField() {
return floatField_;
}
/**
* <code>optional float float_field = 5;</code>
*/
public Builder setFloatField(float value) {
bitField0_ |= 0x00000010;
floatField_ = value;
onChanged();
return this;
}
/**
* <code>optional float float_field = 5;</code>
*/
public Builder clearFloatField() {
bitField0_ = (bitField0_ & ~0x00000010);
floatField_ = 0F;
onChanged();
return this;
}
private int int32Field_ ;
/**
* <code>optional int32 int32_field = 6;</code>
*/
public boolean hasInt32Field() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public int getInt32Field() {
return int32Field_;
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public Builder setInt32Field(int value) {
bitField0_ |= 0x00000020;
int32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public Builder clearInt32Field() {
bitField0_ = (bitField0_ & ~0x00000020);
int32Field_ = 0;
onChanged();
return this;
}
private long int64Field_ ;
/**
* <code>optional int64 int64_field = 7;</code>
*/
public boolean hasInt64Field() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public long getInt64Field() {
return int64Field_;
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public Builder setInt64Field(long value) {
bitField0_ |= 0x00000040;
int64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public Builder clearInt64Field() {
bitField0_ = (bitField0_ & ~0x00000040);
int64Field_ = 0L;
onChanged();
return this;
}
private int sfixed32Field_ ;
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public boolean hasSfixed32Field() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public int getSfixed32Field() {
return sfixed32Field_;
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public Builder setSfixed32Field(int value) {
bitField0_ |= 0x00000080;
sfixed32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public Builder clearSfixed32Field() {
bitField0_ = (bitField0_ & ~0x00000080);
sfixed32Field_ = 0;
onChanged();
return this;
}
private long sfixed64Field_ ;
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public boolean hasSfixed64Field() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public long getSfixed64Field() {
return sfixed64Field_;
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public Builder setSfixed64Field(long value) {
bitField0_ |= 0x00000100;
sfixed64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public Builder clearSfixed64Field() {
bitField0_ = (bitField0_ & ~0x00000100);
sfixed64Field_ = 0L;
onChanged();
return this;
}
private int sint32Field_ ;
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public boolean hasSint32Field() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public int getSint32Field() {
return sint32Field_;
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public Builder setSint32Field(int value) {
bitField0_ |= 0x00000200;
sint32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public Builder clearSint32Field() {
bitField0_ = (bitField0_ & ~0x00000200);
sint32Field_ = 0;
onChanged();
return this;
}
private long sint64Field_ ;
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public boolean hasSint64Field() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public long getSint64Field() {
return sint64Field_;
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public Builder setSint64Field(long value) {
bitField0_ |= 0x00000400;
sint64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public Builder clearSint64Field() {
bitField0_ = (bitField0_ & ~0x00000400);
sint64Field_ = 0L;
onChanged();
return this;
}
private int uint32Field_ ;
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public boolean hasUint32Field() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public int getUint32Field() {
return uint32Field_;
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public Builder setUint32Field(int value) {
bitField0_ |= 0x00000800;
uint32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public Builder clearUint32Field() {
bitField0_ = (bitField0_ & ~0x00000800);
uint32Field_ = 0;
onChanged();
return this;
}
private long uint64Field_ ;
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public boolean hasUint64Field() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public long getUint64Field() {
return uint64Field_;
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public Builder setUint64Field(long value) {
bitField0_ |= 0x00001000;
uint64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public Builder clearUint64Field() {
bitField0_ = (bitField0_ & ~0x00001000);
uint64Field_ = 0L;
onChanged();
return this;
}
private java.lang.Object stringField_ = "";
/**
* <code>optional string string_field = 14;</code>
*/
public boolean hasStringField() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional string string_field = 14;</code>
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
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()) {
stringField_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder setStringField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
stringField_ = value;
onChanged();
return this;
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder clearStringField() {
bitField0_ = (bitField0_ & ~0x00002000);
stringField_ = getDefaultInstance().getStringField();
onChanged();
return this;
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder setStringFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
stringField_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString bytesField_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public boolean hasBytesField() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public com.google.protobuf.ByteString getBytesField() {
return bytesField_;
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public Builder setBytesField(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
bytesField_ = value;
onChanged();
return this;
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public Builder clearBytesField() {
bitField0_ = (bitField0_ & ~0x00004000);
bytesField_ = getDefaultInstance().getBytesField();
onChanged();
return this;
}
private com.fictional.test.Fields1Proto.EnumField1 enumField_ = com.fictional.test.Fields1Proto.EnumField1.ONE;
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public boolean hasEnumField() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public com.fictional.test.Fields1Proto.EnumField1 getEnumField() {
return enumField_;
}
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public Builder setEnumField(com.fictional.test.Fields1Proto.EnumField1 value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
enumField_ = value;
onChanged();
return this;
}
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public Builder clearEnumField() {
bitField0_ = (bitField0_ & ~0x00008000);
enumField_ = com.fictional.test.Fields1Proto.EnumField1.ONE;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:ScalarAndEnumFields)
}
static {
defaultInstance = new ScalarAndEnumFields(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ScalarAndEnumFields)
}
public interface ScalarEnumMessageFieldsOrBuilder extends
// @@protoc_insertion_point(interface_extends:ScalarEnumMessageFields)
com.google.protobuf.MessageOrBuilder {
/**
* <code>optional bool boolean_field = 1;</code>
*/
boolean hasBooleanField();
/**
* <code>optional bool boolean_field = 1;</code>
*/
boolean getBooleanField();
/**
* <code>optional double double_field = 2;</code>
*/
boolean hasDoubleField();
/**
* <code>optional double double_field = 2;</code>
*/
double getDoubleField();
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
boolean hasFixed32Field();
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
int getFixed32Field();
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
boolean hasFixed64Field();
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
long getFixed64Field();
/**
* <code>optional float float_field = 5;</code>
*/
boolean hasFloatField();
/**
* <code>optional float float_field = 5;</code>
*/
float getFloatField();
/**
* <code>optional int32 int32_field = 6;</code>
*/
boolean hasInt32Field();
/**
* <code>optional int32 int32_field = 6;</code>
*/
int getInt32Field();
/**
* <code>optional int64 int64_field = 7;</code>
*/
boolean hasInt64Field();
/**
* <code>optional int64 int64_field = 7;</code>
*/
long getInt64Field();
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
boolean hasSfixed32Field();
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
int getSfixed32Field();
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
boolean hasSfixed64Field();
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
long getSfixed64Field();
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
boolean hasSint32Field();
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
int getSint32Field();
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
boolean hasSint64Field();
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
long getSint64Field();
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
boolean hasUint32Field();
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
int getUint32Field();
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
boolean hasUint64Field();
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
long getUint64Field();
/**
* <code>optional string string_field = 14;</code>
*/
boolean hasStringField();
/**
* <code>optional string string_field = 14;</code>
*/
java.lang.String getStringField();
/**
* <code>optional string string_field = 14;</code>
*/
com.google.protobuf.ByteString
getStringFieldBytes();
/**
* <code>optional bytes bytes_field = 15;</code>
*/
boolean hasBytesField();
/**
* <code>optional bytes bytes_field = 15;</code>
*/
com.google.protobuf.ByteString getBytesField();
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
boolean hasEnumField();
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
com.fictional.test.Fields1Proto.EnumField1 getEnumField();
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
boolean hasMessageField();
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
com.fictional.test.Fields1Proto.ScalarEnumMessageFields getMessageField();
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
com.fictional.test.Fields1Proto.ScalarEnumMessageFieldsOrBuilder getMessageFieldOrBuilder();
}
/**
* Protobuf type {@code ScalarEnumMessageFields}
*/
public static final class ScalarEnumMessageFields extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:ScalarEnumMessageFields)
ScalarEnumMessageFieldsOrBuilder {
// Use ScalarEnumMessageFields.newBuilder() to construct.
private ScalarEnumMessageFields(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ScalarEnumMessageFields(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ScalarEnumMessageFields defaultInstance;
public static ScalarEnumMessageFields getDefaultInstance() {
return defaultInstance;
}
public ScalarEnumMessageFields getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScalarEnumMessageFields(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
booleanField_ = input.readBool();
break;
}
case 17: {
bitField0_ |= 0x00000002;
doubleField_ = input.readDouble();
break;
}
case 29: {
bitField0_ |= 0x00000004;
fixed32Field_ = input.readFixed32();
break;
}
case 33: {
bitField0_ |= 0x00000008;
fixed64Field_ = input.readFixed64();
break;
}
case 45: {
bitField0_ |= 0x00000010;
floatField_ = input.readFloat();
break;
}
case 48: {
bitField0_ |= 0x00000020;
int32Field_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
int64Field_ = input.readInt64();
break;
}
case 69: {
bitField0_ |= 0x00000080;
sfixed32Field_ = input.readSFixed32();
break;
}
case 73: {
bitField0_ |= 0x00000100;
sfixed64Field_ = input.readSFixed64();
break;
}
case 80: {
bitField0_ |= 0x00000200;
sint32Field_ = input.readSInt32();
break;
}
case 88: {
bitField0_ |= 0x00000400;
sint64Field_ = input.readSInt64();
break;
}
case 96: {
bitField0_ |= 0x00000800;
uint32Field_ = input.readUInt32();
break;
}
case 104: {
bitField0_ |= 0x00001000;
uint64Field_ = input.readUInt64();
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
stringField_ = bs;
break;
}
case 122: {
bitField0_ |= 0x00004000;
bytesField_ = input.readBytes();
break;
}
case 128: {
int rawValue = input.readEnum();
com.fictional.test.Fields1Proto.EnumField1 value = com.fictional.test.Fields1Proto.EnumField1.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(16, rawValue);
} else {
bitField0_ |= 0x00008000;
enumField_ = value;
}
break;
}
case 138: {
com.fictional.test.Fields1Proto.ScalarEnumMessageFields.Builder subBuilder = null;
if (((bitField0_ & 0x00010000) == 0x00010000)) {
subBuilder = messageField_.toBuilder();
}
messageField_ = input.readMessage(com.fictional.test.Fields1Proto.ScalarEnumMessageFields.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(messageField_);
messageField_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00010000;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.Fields1Proto.internal_static_ScalarEnumMessageFields_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.Fields1Proto.internal_static_ScalarEnumMessageFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.Fields1Proto.ScalarEnumMessageFields.class, com.fictional.test.Fields1Proto.ScalarEnumMessageFields.Builder.class);
}
public static com.google.protobuf.Parser<ScalarEnumMessageFields> PARSER =
new com.google.protobuf.AbstractParser<ScalarEnumMessageFields>() {
public ScalarEnumMessageFields parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScalarEnumMessageFields(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ScalarEnumMessageFields> getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int BOOLEAN_FIELD_FIELD_NUMBER = 1;
private boolean booleanField_;
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean hasBooleanField() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean getBooleanField() {
return booleanField_;
}
public static final int DOUBLE_FIELD_FIELD_NUMBER = 2;
private double doubleField_;
/**
* <code>optional double double_field = 2;</code>
*/
public boolean hasDoubleField() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional double double_field = 2;</code>
*/
public double getDoubleField() {
return doubleField_;
}
public static final int FIXED32_FIELD_FIELD_NUMBER = 3;
private int fixed32Field_;
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public boolean hasFixed32Field() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public int getFixed32Field() {
return fixed32Field_;
}
public static final int FIXED64_FIELD_FIELD_NUMBER = 4;
private long fixed64Field_;
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public boolean hasFixed64Field() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public long getFixed64Field() {
return fixed64Field_;
}
public static final int FLOAT_FIELD_FIELD_NUMBER = 5;
private float floatField_;
/**
* <code>optional float float_field = 5;</code>
*/
public boolean hasFloatField() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float float_field = 5;</code>
*/
public float getFloatField() {
return floatField_;
}
public static final int INT32_FIELD_FIELD_NUMBER = 6;
private int int32Field_;
/**
* <code>optional int32 int32_field = 6;</code>
*/
public boolean hasInt32Field() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public int getInt32Field() {
return int32Field_;
}
public static final int INT64_FIELD_FIELD_NUMBER = 7;
private long int64Field_;
/**
* <code>optional int64 int64_field = 7;</code>
*/
public boolean hasInt64Field() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public long getInt64Field() {
return int64Field_;
}
public static final int SFIXED32_FIELD_FIELD_NUMBER = 8;
private int sfixed32Field_;
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public boolean hasSfixed32Field() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public int getSfixed32Field() {
return sfixed32Field_;
}
public static final int SFIXED64_FIELD_FIELD_NUMBER = 9;
private long sfixed64Field_;
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public boolean hasSfixed64Field() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public long getSfixed64Field() {
return sfixed64Field_;
}
public static final int SINT32_FIELD_FIELD_NUMBER = 10;
private int sint32Field_;
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public boolean hasSint32Field() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public int getSint32Field() {
return sint32Field_;
}
public static final int SINT64_FIELD_FIELD_NUMBER = 11;
private long sint64Field_;
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public boolean hasSint64Field() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public long getSint64Field() {
return sint64Field_;
}
public static final int UINT32_FIELD_FIELD_NUMBER = 12;
private int uint32Field_;
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public boolean hasUint32Field() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public int getUint32Field() {
return uint32Field_;
}
public static final int UINT64_FIELD_FIELD_NUMBER = 13;
private long uint64Field_;
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public boolean hasUint64Field() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public long getUint64Field() {
return uint64Field_;
}
public static final int STRING_FIELD_FIELD_NUMBER = 14;
private java.lang.Object stringField_;
/**
* <code>optional string string_field = 14;</code>
*/
public boolean hasStringField() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional string string_field = 14;</code>
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
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()) {
stringField_ = s;
}
return s;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BYTES_FIELD_FIELD_NUMBER = 15;
private com.google.protobuf.ByteString bytesField_;
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public boolean hasBytesField() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public com.google.protobuf.ByteString getBytesField() {
return bytesField_;
}
public static final int ENUM_FIELD_FIELD_NUMBER = 16;
private com.fictional.test.Fields1Proto.EnumField1 enumField_;
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public boolean hasEnumField() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public com.fictional.test.Fields1Proto.EnumField1 getEnumField() {
return enumField_;
}
public static final int MESSAGE_FIELD_FIELD_NUMBER = 17;
private com.fictional.test.Fields1Proto.ScalarEnumMessageFields messageField_;
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public boolean hasMessageField() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public com.fictional.test.Fields1Proto.ScalarEnumMessageFields getMessageField() {
return messageField_;
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public com.fictional.test.Fields1Proto.ScalarEnumMessageFieldsOrBuilder getMessageFieldOrBuilder() {
return messageField_;
}
private void initFields() {
booleanField_ = false;
doubleField_ = 0D;
fixed32Field_ = 0;
fixed64Field_ = 0L;
floatField_ = 0F;
int32Field_ = 0;
int64Field_ = 0L;
sfixed32Field_ = 0;
sfixed64Field_ = 0L;
sint32Field_ = 0;
sint64Field_ = 0L;
uint32Field_ = 0;
uint64Field_ = 0L;
stringField_ = "";
bytesField_ = com.google.protobuf.ByteString.EMPTY;
enumField_ = com.fictional.test.Fields1Proto.EnumField1.ONE;
messageField_ = com.fictional.test.Fields1Proto.ScalarEnumMessageFields.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(1, booleanField_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, doubleField_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeFixed32(3, fixed32Field_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeFixed64(4, fixed64Field_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeFloat(5, floatField_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeInt32(6, int32Field_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
output.writeInt64(7, int64Field_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
output.writeSFixed32(8, sfixed32Field_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
output.writeSFixed64(9, sfixed64Field_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
output.writeSInt32(10, sint32Field_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
output.writeSInt64(11, sint64Field_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
output.writeUInt32(12, uint32Field_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
output.writeUInt64(13, uint64Field_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
output.writeBytes(14, getStringFieldBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
output.writeBytes(15, bytesField_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
output.writeEnum(16, enumField_.getNumber());
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
output.writeMessage(17, messageField_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, booleanField_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, doubleField_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed32Size(3, fixed32Field_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeFixed64Size(4, fixed64Field_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(5, floatField_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, int32Field_);
}
if (((bitField0_ & 0x00000040) == 0x00000040)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(7, int64Field_);
}
if (((bitField0_ & 0x00000080) == 0x00000080)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(8, sfixed32Field_);
}
if (((bitField0_ & 0x00000100) == 0x00000100)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(9, sfixed64Field_);
}
if (((bitField0_ & 0x00000200) == 0x00000200)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt32Size(10, sint32Field_);
}
if (((bitField0_ & 0x00000400) == 0x00000400)) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(11, sint64Field_);
}
if (((bitField0_ & 0x00000800) == 0x00000800)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(12, uint32Field_);
}
if (((bitField0_ & 0x00001000) == 0x00001000)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(13, uint64Field_);
}
if (((bitField0_ & 0x00002000) == 0x00002000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(14, getStringFieldBytes());
}
if (((bitField0_ & 0x00004000) == 0x00004000)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(15, bytesField_);
}
if (((bitField0_ & 0x00008000) == 0x00008000)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(16, enumField_.getNumber());
}
if (((bitField0_ & 0x00010000) == 0x00010000)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, messageField_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.fictional.test.Fields1Proto.ScalarEnumMessageFields parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.fictional.test.Fields1Proto.ScalarEnumMessageFields prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code ScalarEnumMessageFields}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ScalarEnumMessageFields)
com.fictional.test.Fields1Proto.ScalarEnumMessageFieldsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.fictional.test.Fields1Proto.internal_static_ScalarEnumMessageFields_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.fictional.test.Fields1Proto.internal_static_ScalarEnumMessageFields_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.fictional.test.Fields1Proto.ScalarEnumMessageFields.class, com.fictional.test.Fields1Proto.ScalarEnumMessageFields.Builder.class);
}
// Construct using com.fictional.test.Fields1Proto.ScalarEnumMessageFields.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getMessageFieldFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
booleanField_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
doubleField_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
fixed32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
fixed64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
floatField_ = 0F;
bitField0_ = (bitField0_ & ~0x00000010);
int32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
int64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
sfixed32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
sfixed64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
sint32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
sint64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00000400);
uint32Field_ = 0;
bitField0_ = (bitField0_ & ~0x00000800);
uint64Field_ = 0L;
bitField0_ = (bitField0_ & ~0x00001000);
stringField_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
bytesField_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00004000);
enumField_ = com.fictional.test.Fields1Proto.EnumField1.ONE;
bitField0_ = (bitField0_ & ~0x00008000);
if (messageFieldBuilder_ == null) {
messageField_ = com.fictional.test.Fields1Proto.ScalarEnumMessageFields.getDefaultInstance();
} else {
messageFieldBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00010000);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.fictional.test.Fields1Proto.internal_static_ScalarEnumMessageFields_descriptor;
}
public com.fictional.test.Fields1Proto.ScalarEnumMessageFields getDefaultInstanceForType() {
return com.fictional.test.Fields1Proto.ScalarEnumMessageFields.getDefaultInstance();
}
public com.fictional.test.Fields1Proto.ScalarEnumMessageFields build() {
com.fictional.test.Fields1Proto.ScalarEnumMessageFields result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.fictional.test.Fields1Proto.ScalarEnumMessageFields buildPartial() {
com.fictional.test.Fields1Proto.ScalarEnumMessageFields result = new com.fictional.test.Fields1Proto.ScalarEnumMessageFields(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.booleanField_ = booleanField_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.doubleField_ = doubleField_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.fixed32Field_ = fixed32Field_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.fixed64Field_ = fixed64Field_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.floatField_ = floatField_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.int32Field_ = int32Field_;
if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
to_bitField0_ |= 0x00000040;
}
result.int64Field_ = int64Field_;
if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
to_bitField0_ |= 0x00000080;
}
result.sfixed32Field_ = sfixed32Field_;
if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
to_bitField0_ |= 0x00000100;
}
result.sfixed64Field_ = sfixed64Field_;
if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
to_bitField0_ |= 0x00000200;
}
result.sint32Field_ = sint32Field_;
if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
to_bitField0_ |= 0x00000400;
}
result.sint64Field_ = sint64Field_;
if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
to_bitField0_ |= 0x00000800;
}
result.uint32Field_ = uint32Field_;
if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
to_bitField0_ |= 0x00001000;
}
result.uint64Field_ = uint64Field_;
if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
to_bitField0_ |= 0x00002000;
}
result.stringField_ = stringField_;
if (((from_bitField0_ & 0x00004000) == 0x00004000)) {
to_bitField0_ |= 0x00004000;
}
result.bytesField_ = bytesField_;
if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
to_bitField0_ |= 0x00008000;
}
result.enumField_ = enumField_;
if (((from_bitField0_ & 0x00010000) == 0x00010000)) {
to_bitField0_ |= 0x00010000;
}
if (messageFieldBuilder_ == null) {
result.messageField_ = messageField_;
} else {
result.messageField_ = messageFieldBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.fictional.test.Fields1Proto.ScalarEnumMessageFields) {
return mergeFrom((com.fictional.test.Fields1Proto.ScalarEnumMessageFields)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.fictional.test.Fields1Proto.ScalarEnumMessageFields other) {
if (other == com.fictional.test.Fields1Proto.ScalarEnumMessageFields.getDefaultInstance()) return this;
if (other.hasBooleanField()) {
setBooleanField(other.getBooleanField());
}
if (other.hasDoubleField()) {
setDoubleField(other.getDoubleField());
}
if (other.hasFixed32Field()) {
setFixed32Field(other.getFixed32Field());
}
if (other.hasFixed64Field()) {
setFixed64Field(other.getFixed64Field());
}
if (other.hasFloatField()) {
setFloatField(other.getFloatField());
}
if (other.hasInt32Field()) {
setInt32Field(other.getInt32Field());
}
if (other.hasInt64Field()) {
setInt64Field(other.getInt64Field());
}
if (other.hasSfixed32Field()) {
setSfixed32Field(other.getSfixed32Field());
}
if (other.hasSfixed64Field()) {
setSfixed64Field(other.getSfixed64Field());
}
if (other.hasSint32Field()) {
setSint32Field(other.getSint32Field());
}
if (other.hasSint64Field()) {
setSint64Field(other.getSint64Field());
}
if (other.hasUint32Field()) {
setUint32Field(other.getUint32Field());
}
if (other.hasUint64Field()) {
setUint64Field(other.getUint64Field());
}
if (other.hasStringField()) {
bitField0_ |= 0x00002000;
stringField_ = other.stringField_;
onChanged();
}
if (other.hasBytesField()) {
setBytesField(other.getBytesField());
}
if (other.hasEnumField()) {
setEnumField(other.getEnumField());
}
if (other.hasMessageField()) {
mergeMessageField(other.getMessageField());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.fictional.test.Fields1Proto.ScalarEnumMessageFields parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.fictional.test.Fields1Proto.ScalarEnumMessageFields) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean booleanField_ ;
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean hasBooleanField() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public boolean getBooleanField() {
return booleanField_;
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public Builder setBooleanField(boolean value) {
bitField0_ |= 0x00000001;
booleanField_ = value;
onChanged();
return this;
}
/**
* <code>optional bool boolean_field = 1;</code>
*/
public Builder clearBooleanField() {
bitField0_ = (bitField0_ & ~0x00000001);
booleanField_ = false;
onChanged();
return this;
}
private double doubleField_ ;
/**
* <code>optional double double_field = 2;</code>
*/
public boolean hasDoubleField() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional double double_field = 2;</code>
*/
public double getDoubleField() {
return doubleField_;
}
/**
* <code>optional double double_field = 2;</code>
*/
public Builder setDoubleField(double value) {
bitField0_ |= 0x00000002;
doubleField_ = value;
onChanged();
return this;
}
/**
* <code>optional double double_field = 2;</code>
*/
public Builder clearDoubleField() {
bitField0_ = (bitField0_ & ~0x00000002);
doubleField_ = 0D;
onChanged();
return this;
}
private int fixed32Field_ ;
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public boolean hasFixed32Field() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public int getFixed32Field() {
return fixed32Field_;
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public Builder setFixed32Field(int value) {
bitField0_ |= 0x00000004;
fixed32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed32 fixed32_field = 3;</code>
*/
public Builder clearFixed32Field() {
bitField0_ = (bitField0_ & ~0x00000004);
fixed32Field_ = 0;
onChanged();
return this;
}
private long fixed64Field_ ;
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public boolean hasFixed64Field() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public long getFixed64Field() {
return fixed64Field_;
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public Builder setFixed64Field(long value) {
bitField0_ |= 0x00000008;
fixed64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional fixed64 fixed64_field = 4;</code>
*/
public Builder clearFixed64Field() {
bitField0_ = (bitField0_ & ~0x00000008);
fixed64Field_ = 0L;
onChanged();
return this;
}
private float floatField_ ;
/**
* <code>optional float float_field = 5;</code>
*/
public boolean hasFloatField() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* <code>optional float float_field = 5;</code>
*/
public float getFloatField() {
return floatField_;
}
/**
* <code>optional float float_field = 5;</code>
*/
public Builder setFloatField(float value) {
bitField0_ |= 0x00000010;
floatField_ = value;
onChanged();
return this;
}
/**
* <code>optional float float_field = 5;</code>
*/
public Builder clearFloatField() {
bitField0_ = (bitField0_ & ~0x00000010);
floatField_ = 0F;
onChanged();
return this;
}
private int int32Field_ ;
/**
* <code>optional int32 int32_field = 6;</code>
*/
public boolean hasInt32Field() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public int getInt32Field() {
return int32Field_;
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public Builder setInt32Field(int value) {
bitField0_ |= 0x00000020;
int32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional int32 int32_field = 6;</code>
*/
public Builder clearInt32Field() {
bitField0_ = (bitField0_ & ~0x00000020);
int32Field_ = 0;
onChanged();
return this;
}
private long int64Field_ ;
/**
* <code>optional int64 int64_field = 7;</code>
*/
public boolean hasInt64Field() {
return ((bitField0_ & 0x00000040) == 0x00000040);
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public long getInt64Field() {
return int64Field_;
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public Builder setInt64Field(long value) {
bitField0_ |= 0x00000040;
int64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional int64 int64_field = 7;</code>
*/
public Builder clearInt64Field() {
bitField0_ = (bitField0_ & ~0x00000040);
int64Field_ = 0L;
onChanged();
return this;
}
private int sfixed32Field_ ;
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public boolean hasSfixed32Field() {
return ((bitField0_ & 0x00000080) == 0x00000080);
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public int getSfixed32Field() {
return sfixed32Field_;
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public Builder setSfixed32Field(int value) {
bitField0_ |= 0x00000080;
sfixed32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sfixed32 sfixed32_field = 8;</code>
*/
public Builder clearSfixed32Field() {
bitField0_ = (bitField0_ & ~0x00000080);
sfixed32Field_ = 0;
onChanged();
return this;
}
private long sfixed64Field_ ;
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public boolean hasSfixed64Field() {
return ((bitField0_ & 0x00000100) == 0x00000100);
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public long getSfixed64Field() {
return sfixed64Field_;
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public Builder setSfixed64Field(long value) {
bitField0_ |= 0x00000100;
sfixed64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sfixed64 sfixed64_field = 9;</code>
*/
public Builder clearSfixed64Field() {
bitField0_ = (bitField0_ & ~0x00000100);
sfixed64Field_ = 0L;
onChanged();
return this;
}
private int sint32Field_ ;
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public boolean hasSint32Field() {
return ((bitField0_ & 0x00000200) == 0x00000200);
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public int getSint32Field() {
return sint32Field_;
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public Builder setSint32Field(int value) {
bitField0_ |= 0x00000200;
sint32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sint32 sint32_field = 10;</code>
*/
public Builder clearSint32Field() {
bitField0_ = (bitField0_ & ~0x00000200);
sint32Field_ = 0;
onChanged();
return this;
}
private long sint64Field_ ;
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public boolean hasSint64Field() {
return ((bitField0_ & 0x00000400) == 0x00000400);
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public long getSint64Field() {
return sint64Field_;
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public Builder setSint64Field(long value) {
bitField0_ |= 0x00000400;
sint64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional sint64 sint64_field = 11;</code>
*/
public Builder clearSint64Field() {
bitField0_ = (bitField0_ & ~0x00000400);
sint64Field_ = 0L;
onChanged();
return this;
}
private int uint32Field_ ;
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public boolean hasUint32Field() {
return ((bitField0_ & 0x00000800) == 0x00000800);
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public int getUint32Field() {
return uint32Field_;
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public Builder setUint32Field(int value) {
bitField0_ |= 0x00000800;
uint32Field_ = value;
onChanged();
return this;
}
/**
* <code>optional uint32 uint32_field = 12;</code>
*/
public Builder clearUint32Field() {
bitField0_ = (bitField0_ & ~0x00000800);
uint32Field_ = 0;
onChanged();
return this;
}
private long uint64Field_ ;
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public boolean hasUint64Field() {
return ((bitField0_ & 0x00001000) == 0x00001000);
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public long getUint64Field() {
return uint64Field_;
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public Builder setUint64Field(long value) {
bitField0_ |= 0x00001000;
uint64Field_ = value;
onChanged();
return this;
}
/**
* <code>optional uint64 uint64_field = 13;</code>
*/
public Builder clearUint64Field() {
bitField0_ = (bitField0_ & ~0x00001000);
uint64Field_ = 0L;
onChanged();
return this;
}
private java.lang.Object stringField_ = "";
/**
* <code>optional string string_field = 14;</code>
*/
public boolean hasStringField() {
return ((bitField0_ & 0x00002000) == 0x00002000);
}
/**
* <code>optional string string_field = 14;</code>
*/
public java.lang.String getStringField() {
java.lang.Object ref = stringField_;
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()) {
stringField_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public com.google.protobuf.ByteString
getStringFieldBytes() {
java.lang.Object ref = stringField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stringField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder setStringField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
stringField_ = value;
onChanged();
return this;
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder clearStringField() {
bitField0_ = (bitField0_ & ~0x00002000);
stringField_ = getDefaultInstance().getStringField();
onChanged();
return this;
}
/**
* <code>optional string string_field = 14;</code>
*/
public Builder setStringFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
stringField_ = value;
onChanged();
return this;
}
private com.google.protobuf.ByteString bytesField_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public boolean hasBytesField() {
return ((bitField0_ & 0x00004000) == 0x00004000);
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public com.google.protobuf.ByteString getBytesField() {
return bytesField_;
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public Builder setBytesField(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00004000;
bytesField_ = value;
onChanged();
return this;
}
/**
* <code>optional bytes bytes_field = 15;</code>
*/
public Builder clearBytesField() {
bitField0_ = (bitField0_ & ~0x00004000);
bytesField_ = getDefaultInstance().getBytesField();
onChanged();
return this;
}
private com.fictional.test.Fields1Proto.EnumField1 enumField_ = com.fictional.test.Fields1Proto.EnumField1.ONE;
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public boolean hasEnumField() {
return ((bitField0_ & 0x00008000) == 0x00008000);
}
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public com.fictional.test.Fields1Proto.EnumField1 getEnumField() {
return enumField_;
}
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public Builder setEnumField(com.fictional.test.Fields1Proto.EnumField1 value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
enumField_ = value;
onChanged();
return this;
}
/**
* <code>optional .EnumField1 enum_field = 16;</code>
*/
public Builder clearEnumField() {
bitField0_ = (bitField0_ & ~0x00008000);
enumField_ = com.fictional.test.Fields1Proto.EnumField1.ONE;
onChanged();
return this;
}
private com.fictional.test.Fields1Proto.ScalarEnumMessageFields messageField_ = com.fictional.test.Fields1Proto.ScalarEnumMessageFields.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.Fields1Proto.ScalarEnumMessageFields, com.fictional.test.Fields1Proto.ScalarEnumMessageFields.Builder, com.fictional.test.Fields1Proto.ScalarEnumMessageFieldsOrBuilder> messageFieldBuilder_;
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public boolean hasMessageField() {
return ((bitField0_ & 0x00010000) == 0x00010000);
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public com.fictional.test.Fields1Proto.ScalarEnumMessageFields getMessageField() {
if (messageFieldBuilder_ == null) {
return messageField_;
} else {
return messageFieldBuilder_.getMessage();
}
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public Builder setMessageField(com.fictional.test.Fields1Proto.ScalarEnumMessageFields value) {
if (messageFieldBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
messageField_ = value;
onChanged();
} else {
messageFieldBuilder_.setMessage(value);
}
bitField0_ |= 0x00010000;
return this;
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public Builder setMessageField(
com.fictional.test.Fields1Proto.ScalarEnumMessageFields.Builder builderForValue) {
if (messageFieldBuilder_ == null) {
messageField_ = builderForValue.build();
onChanged();
} else {
messageFieldBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00010000;
return this;
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public Builder mergeMessageField(com.fictional.test.Fields1Proto.ScalarEnumMessageFields value) {
if (messageFieldBuilder_ == null) {
if (((bitField0_ & 0x00010000) == 0x00010000) &&
messageField_ != com.fictional.test.Fields1Proto.ScalarEnumMessageFields.getDefaultInstance()) {
messageField_ =
com.fictional.test.Fields1Proto.ScalarEnumMessageFields.newBuilder(messageField_).mergeFrom(value).buildPartial();
} else {
messageField_ = value;
}
onChanged();
} else {
messageFieldBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00010000;
return this;
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public Builder clearMessageField() {
if (messageFieldBuilder_ == null) {
messageField_ = com.fictional.test.Fields1Proto.ScalarEnumMessageFields.getDefaultInstance();
onChanged();
} else {
messageFieldBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00010000);
return this;
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public com.fictional.test.Fields1Proto.ScalarEnumMessageFields.Builder getMessageFieldBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getMessageFieldFieldBuilder().getBuilder();
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
public com.fictional.test.Fields1Proto.ScalarEnumMessageFieldsOrBuilder getMessageFieldOrBuilder() {
if (messageFieldBuilder_ != null) {
return messageFieldBuilder_.getMessageOrBuilder();
} else {
return messageField_;
}
}
/**
* <code>optional .ScalarEnumMessageFields message_field = 17;</code>
*/
private com.google.protobuf.SingleFieldBuilder<
com.fictional.test.Fields1Proto.ScalarEnumMessageFields, com.fictional.test.Fields1Proto.ScalarEnumMessageFields.Builder, com.fictional.test.Fields1Proto.ScalarEnumMessageFieldsOrBuilder>
getMessageFieldFieldBuilder() {
if (messageFieldBuilder_ == null) {
messageFieldBuilder_ = new com.google.protobuf.SingleFieldBuilder<
com.fictional.test.Fields1Proto.ScalarEnumMessageFields, com.fictional.test.Fields1Proto.ScalarEnumMessageFields.Builder, com.fictional.test.Fields1Proto.ScalarEnumMessageFieldsOrBuilder>(
getMessageField(),
getParentForChildren(),
isClean());
messageField_ = null;
}
return messageFieldBuilder_;
}
// @@protoc_insertion_point(builder_scope:ScalarEnumMessageFields)
}
static {
defaultInstance = new ScalarEnumMessageFields(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:ScalarEnumMessageFields)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ScalarFields_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ScalarFields_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ScalarAndEnumFields_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ScalarAndEnumFields_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ScalarEnumMessageFields_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_ScalarEnumMessageFields_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\rFields1.proto\"\333\002\n\014ScalarFields\022\025\n\rbool" +
"ean_field\030\001 \001(\010\022\024\n\014double_field\030\002 \001(\001\022\025\n" +
"\rfixed32_field\030\003 \001(\007\022\025\n\rfixed64_field\030\004 " +
"\001(\006\022\023\n\013float_field\030\005 \001(\002\022\023\n\013int32_field\030" +
"\006 \001(\005\022\023\n\013int64_field\030\007 \001(\003\022\026\n\016sfixed32_f" +
"ield\030\010 \001(\017\022\026\n\016sfixed64_field\030\t \001(\020\022\024\n\014si" +
"nt32_field\030\n \001(\021\022\024\n\014sint64_field\030\013 \001(\022\022\024" +
"\n\014uint32_field\030\014 \001(\r\022\024\n\014uint64_field\030\r \001" +
"(\004\022\024\n\014string_field\030\016 \001(\t\022\023\n\013bytes_field\030" +
"\017 \001(\014\"\203\003\n\023ScalarAndEnumFields\022\025\n\rboolean",
"_field\030\001 \001(\010\022\024\n\014double_field\030\002 \001(\001\022\025\n\rfi" +
"xed32_field\030\003 \001(\007\022\025\n\rfixed64_field\030\004 \001(\006" +
"\022\023\n\013float_field\030\005 \001(\002\022\023\n\013int32_field\030\006 \001" +
"(\005\022\023\n\013int64_field\030\007 \001(\003\022\026\n\016sfixed32_fiel" +
"d\030\010 \001(\017\022\026\n\016sfixed64_field\030\t \001(\020\022\024\n\014sint3" +
"2_field\030\n \001(\021\022\024\n\014sint64_field\030\013 \001(\022\022\024\n\014u" +
"int32_field\030\014 \001(\r\022\024\n\014uint64_field\030\r \001(\004\022" +
"\024\n\014string_field\030\016 \001(\t\022\023\n\013bytes_field\030\017 \001" +
"(\014\022\037\n\nenum_field\030\020 \001(\0162\013.EnumField1\"\270\003\n\027" +
"ScalarEnumMessageFields\022\025\n\rboolean_field",
"\030\001 \001(\010\022\024\n\014double_field\030\002 \001(\001\022\025\n\rfixed32_" +
"field\030\003 \001(\007\022\025\n\rfixed64_field\030\004 \001(\006\022\023\n\013fl" +
"oat_field\030\005 \001(\002\022\023\n\013int32_field\030\006 \001(\005\022\023\n\013" +
"int64_field\030\007 \001(\003\022\026\n\016sfixed32_field\030\010 \001(" +
"\017\022\026\n\016sfixed64_field\030\t \001(\020\022\024\n\014sint32_fiel" +
"d\030\n \001(\021\022\024\n\014sint64_field\030\013 \001(\022\022\024\n\014uint32_" +
"field\030\014 \001(\r\022\024\n\014uint64_field\030\r \001(\004\022\024\n\014str" +
"ing_field\030\016 \001(\t\022\023\n\013bytes_field\030\017 \001(\014\022\037\n\n" +
"enum_field\030\020 \001(\0162\013.EnumField1\022/\n\rmessage" +
"_field\030\021 \001(\0132\030.ScalarEnumMessageFields*)",
"\n\nEnumField1\022\007\n\003ONE\020\000\022\007\n\003TWO\020\001\022\t\n\005THREE\020" +
"\002B\"\n\022com.fictional.testB\014Fields1Proto"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_ScalarFields_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ScalarFields_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ScalarFields_descriptor,
new java.lang.String[] { "BooleanField", "DoubleField", "Fixed32Field", "Fixed64Field", "FloatField", "Int32Field", "Int64Field", "Sfixed32Field", "Sfixed64Field", "Sint32Field", "Sint64Field", "Uint32Field", "Uint64Field", "StringField", "BytesField", });
internal_static_ScalarAndEnumFields_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_ScalarAndEnumFields_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ScalarAndEnumFields_descriptor,
new java.lang.String[] { "BooleanField", "DoubleField", "Fixed32Field", "Fixed64Field", "FloatField", "Int32Field", "Int64Field", "Sfixed32Field", "Sfixed64Field", "Sint32Field", "Sint64Field", "Uint32Field", "Uint64Field", "StringField", "BytesField", "EnumField", });
internal_static_ScalarEnumMessageFields_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_ScalarEnumMessageFields_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_ScalarEnumMessageFields_descriptor,
new java.lang.String[] { "BooleanField", "DoubleField", "Fixed32Field", "Fixed64Field", "FloatField", "Int32Field", "Int64Field", "Sfixed32Field", "Sfixed64Field", "Sint32Field", "Sint64Field", "Uint32Field", "Uint64Field", "StringField", "BytesField", "EnumField", "MessageField", });
}
// @@protoc_insertion_point(outer_class_scope)
}