.google.protobuf.Any value = 1;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* .google.protobuf.Any value = 1;
* @return The value.
*/
com.google.protobuf.Any getValue();
/**
* .google.protobuf.Any value = 1;
*/
com.google.protobuf.AnyOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code any_test.TestAny}
*/
public static final class TestAny extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:any_test.TestAny)
TestAnyOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestAny.newBuilder() to construct.
private TestAny(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestAny() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestAny();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return any_test.AnyTestProto.internal_static_any_test_TestAny_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return any_test.AnyTestProto.internal_static_any_test_TestAny_fieldAccessorTable
.ensureFieldAccessorsInitialized(
any_test.AnyTestProto.TestAny.class, any_test.AnyTestProto.TestAny.Builder.class);
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private com.google.protobuf.Any value_;
/**
* .google.protobuf.Any value = 1;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Any value = 1;
* @return The value.
*/
@java.lang.Override
public com.google.protobuf.Any getValue() {
return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_;
}
/**
* .google.protobuf.Any value = 1;
*/
@java.lang.Override
public com.google.protobuf.AnyOrBuilder getValueOrBuilder() {
return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getValue());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getValue());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof any_test.AnyTestProto.TestAny)) {
return super.equals(obj);
}
any_test.AnyTestProto.TestAny other = (any_test.AnyTestProto.TestAny) obj;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static any_test.AnyTestProto.TestAny parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static any_test.AnyTestProto.TestAny parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static any_test.AnyTestProto.TestAny parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static any_test.AnyTestProto.TestAny parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static any_test.AnyTestProto.TestAny parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static any_test.AnyTestProto.TestAny parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static any_test.AnyTestProto.TestAny parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static any_test.AnyTestProto.TestAny parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static any_test.AnyTestProto.TestAny parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static any_test.AnyTestProto.TestAny parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static any_test.AnyTestProto.TestAny parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static any_test.AnyTestProto.TestAny parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(any_test.AnyTestProto.TestAny prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code any_test.TestAny}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.google.protobuf.Any value = 1;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .google.protobuf.Any value = 1;
* @return The value.
*/
public com.google.protobuf.Any getValue() {
if (valueBuilder_ == null) {
return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* .google.protobuf.Any value = 1;
*/
public Builder setValue(com.google.protobuf.Any value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Any value = 1;
*/
public Builder setValue(
com.google.protobuf.Any.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .google.protobuf.Any value = 1;
*/
public Builder mergeValue(com.google.protobuf.Any value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
value_ != null &&
value_ != com.google.protobuf.Any.getDefaultInstance()) {
getValueBuilder().mergeFrom(value);
} else {
value_ = value;
}
} else {
valueBuilder_.mergeFrom(value);
}
if (value_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .google.protobuf.Any value = 1;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = null;
if (valueBuilder_ != null) {
valueBuilder_.dispose();
valueBuilder_ = null;
}
onChanged();
return this;
}
/**
* .google.protobuf.Any value = 1;
*/
public com.google.protobuf.Any.Builder getValueBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Any value = 1;
*/
public com.google.protobuf.AnyOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_ == null ?
com.google.protobuf.Any.getDefaultInstance() : value_;
}
}
/**
* .google.protobuf.Any value = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:any_test.TestAny)
}
// @@protoc_insertion_point(class_scope:any_test.TestAny)
private static final any_test.AnyTestProto.TestAny DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new any_test.AnyTestProto.TestAny();
}
public static any_test.AnyTestProto.TestAny getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parserint32 optional_int32 = 1;
* @return The optionalInt32.
*/
int getOptionalInt32();
/**
* string optional_string = 2;
* @return The optionalString.
*/
java.lang.String getOptionalString();
/**
* string optional_string = 2;
* @return The bytes for optionalString.
*/
com.google.protobuf.ByteString
getOptionalStringBytes();
/**
* bytes optional_bytes = 3;
* @return The optionalBytes.
*/
com.google.protobuf.ByteString getOptionalBytes();
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The enum numeric value on the wire for optionalNestedEnum.
*/
int getOptionalNestedEnumValue();
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The optionalNestedEnum.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOptionalNestedEnum();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return Whether the optionalNestedMessage field is set.
*/
boolean hasOptionalNestedMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return The optionalNestedMessage.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalNestedMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder();
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return Whether the optionalProto2Message field is set.
*/
boolean hasOptionalProto2Message();
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return The optionalProto2Message.
*/
proto2_unittest.UnittestProto.TestRequired getOptionalProto2Message();
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
proto2_unittest.UnittestProto.TestRequiredOrBuilder getOptionalProto2MessageOrBuilder();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return Whether the optionalLazyMessage field is set.
*/
boolean hasOptionalLazyMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return The optionalLazyMessage.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalLazyMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder();
/**
* int32 oneof_int32 = 11;
* @return Whether the oneofInt32 field is set.
*/
boolean hasOneofInt32();
/**
* int32 oneof_int32 = 11;
* @return The oneofInt32.
*/
int getOneofInt32();
/**
* uint32 oneof_uint32 = 12;
* @return Whether the oneofUint32 field is set.
*/
boolean hasOneofUint32();
/**
* uint32 oneof_uint32 = 12;
* @return The oneofUint32.
*/
int getOneofUint32();
/**
* string oneof_string = 13;
* @return Whether the oneofString field is set.
*/
boolean hasOneofString();
/**
* string oneof_string = 13;
* @return The oneofString.
*/
java.lang.String getOneofString();
/**
* string oneof_string = 13;
* @return The bytes for oneofString.
*/
com.google.protobuf.ByteString
getOneofStringBytes();
/**
* bytes oneof_bytes = 14;
* @return Whether the oneofBytes field is set.
*/
boolean hasOneofBytes();
/**
* bytes oneof_bytes = 14;
* @return The oneofBytes.
*/
com.google.protobuf.ByteString getOneofBytes();
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return Whether the oneofNestedEnum field is set.
*/
boolean hasOneofNestedEnum();
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return The enum numeric value on the wire for oneofNestedEnum.
*/
int getOneofNestedEnumValue();
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return The oneofNestedEnum.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOneofNestedEnum();
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
* @return Whether the oneofNestedMessage field is set.
*/
boolean hasOneofNestedMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
* @return The oneofNestedMessage.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOneofNestedMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder();
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
* @return Whether the oneofProto2Message field is set.
*/
boolean hasOneofProto2Message();
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
* @return The oneofProto2Message.
*/
proto2_unittest.UnittestProto.TestRequired getOneofProto2Message();
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
proto2_unittest.UnittestProto.TestRequiredOrBuilder getOneofProto2MessageOrBuilder();
/**
* repeated int32 repeated_int32 = 21;
* @return A list containing the repeatedInt32.
*/
java.util.Listrepeated int32 repeated_int32 = 21;
* @return The count of repeatedInt32.
*/
int getRepeatedInt32Count();
/**
* repeated int32 repeated_int32 = 21;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
int getRepeatedInt32(int index);
/**
* repeated string repeated_string = 22;
* @return A list containing the repeatedString.
*/
java.util.Listrepeated string repeated_string = 22;
* @return The count of repeatedString.
*/
int getRepeatedStringCount();
/**
* repeated string repeated_string = 22;
* @param index The index of the element to return.
* @return The repeatedString at the given index.
*/
java.lang.String getRepeatedString(int index);
/**
* repeated string repeated_string = 22;
* @param index The index of the value to return.
* @return The bytes of the repeatedString at the given index.
*/
com.google.protobuf.ByteString
getRepeatedStringBytes(int index);
/**
* repeated bytes repeated_bytes = 23;
* @return A list containing the repeatedBytes.
*/
java.util.Listrepeated bytes repeated_bytes = 23;
* @return The count of repeatedBytes.
*/
int getRepeatedBytesCount();
/**
* repeated bytes repeated_bytes = 23;
* @param index The index of the element to return.
* @return The repeatedBytes at the given index.
*/
com.google.protobuf.ByteString getRepeatedBytes(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the repeatedNestedEnum.
*/
java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return The count of repeatedNestedEnum.
*/
int getRepeatedNestedEnumCount();
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
int getRepeatedNestedEnumValue(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
java.util.Listrepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
int getRepeatedNestedMessageCount();
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
java.util.List extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList();
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index);
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
proto2_unittest.UnittestProto.TestRequired getRepeatedProto2Message(int index);
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
int getRepeatedProto2MessageCount();
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
java.util.List extends proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getRepeatedProto2MessageOrBuilderList();
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
proto2_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedProto2MessageOrBuilder(
int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return A list containing the packedNestedEnum.
*/
java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return The count of packedNestedEnum.
*/
int getPackedNestedEnumCount();
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param index The index of the element to return.
* @return The packedNestedEnum at the given index.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getPackedNestedEnum(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return A list containing the enum numeric values on the wire for packedNestedEnum.
*/
java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of packedNestedEnum at the given index.
*/
int getPackedNestedEnumValue(int index);
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.OneofFieldCase getOneofFieldCase();
}
/**
* Protobuf type {@code field_presence_test.TestAllTypes}
*/
public static final class TestAllTypes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:field_presence_test.TestAllTypes)
TestAllTypesOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestAllTypes.newBuilder() to construct.
private TestAllTypes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestAllTypes() {
optionalString_ = "";
optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
optionalNestedEnum_ = 0;
repeatedInt32_ = emptyIntList();
repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class);
repeatedNestedEnum_ = java.util.Collections.emptyList();
repeatedNestedMessage_ = java.util.Collections.emptyList();
repeatedProto2Message_ = java.util.Collections.emptyList();
packedNestedEnum_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestAllTypes();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.FieldPresenceTestProto.internal_static_field_presence_test_TestAllTypes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.FieldPresenceTestProto.internal_static_field_presence_test_TestAllTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.class, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.Builder.class);
}
/**
* Protobuf enum {@code field_presence_test.TestAllTypes.NestedEnum}
*/
public enum NestedEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FOO = 0;
*/
FOO(0),
/**
* BAR = 1;
*/
BAR(1),
/**
* BAZ = 2;
*/
BAZ(2),
UNRECOGNIZED(-1),
;
/**
* FOO = 0;
*/
public static final int FOO_VALUE = 0;
/**
* BAR = 1;
*/
public static final int BAR_VALUE = 1;
/**
* BAZ = 2;
*/
public static final int BAZ_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NestedEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static NestedEnum forNumber(int value) {
switch (value) {
case 0: return FOO;
case 1: return BAR;
case 2: return BAZ;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMapint32 value = 1;
* @return The value.
*/
int getValue();
}
/**
* Protobuf type {@code field_presence_test.TestAllTypes.NestedMessage}
*/
public static final class NestedMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:field_presence_test.TestAllTypes.NestedMessage)
NestedMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use NestedMessage.newBuilder() to construct.
private NestedMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NestedMessage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NestedMessage();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.FieldPresenceTestProto.internal_static_field_presence_test_TestAllTypes_NestedMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.FieldPresenceTestProto.internal_static_field_presence_test_TestAllTypes_NestedMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.class, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private int value_ = 0;
/**
* int32 value = 1;
* @return The value.
*/
@java.lang.Override
public int getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (value_ != 0) {
output.writeInt32(1, value_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage)) {
return super.equals(obj);
}
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage other = (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) obj;
if (getValue()
!= other.getValue()) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code field_presence_test.TestAllTypes.NestedMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderint32 value = 1;
* @return The value.
*/
@java.lang.Override
public int getValue() {
return value_;
}
/**
* int32 value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(int value) {
value_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:field_presence_test.TestAllTypes.NestedMessage)
}
// @@protoc_insertion_point(class_scope:field_presence_test.TestAllTypes.NestedMessage)
private static final com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage();
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parserint32 optional_int32 = 1;
* @return The optionalInt32.
*/
@java.lang.Override
public int getOptionalInt32() {
return optionalInt32_;
}
public static final int OPTIONAL_STRING_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object optionalString_ = "";
/**
* string optional_string = 2;
* @return The optionalString.
*/
@java.lang.Override
public java.lang.String getOptionalString() {
java.lang.Object ref = optionalString_;
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();
optionalString_ = s;
return s;
}
}
/**
* string optional_string = 2;
* @return The bytes for optionalString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOptionalStringBytes() {
java.lang.Object ref = optionalString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONAL_BYTES_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes optional_bytes = 3;
* @return The optionalBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOptionalBytes() {
return optionalBytes_;
}
public static final int OPTIONAL_NESTED_ENUM_FIELD_NUMBER = 4;
private int optionalNestedEnum_ = 0;
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The enum numeric value on the wire for optionalNestedEnum.
*/
@java.lang.Override public int getOptionalNestedEnumValue() {
return optionalNestedEnum_;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The optionalNestedEnum.
*/
@java.lang.Override public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOptionalNestedEnum() {
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum result = com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.forNumber(optionalNestedEnum_);
return result == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.UNRECOGNIZED : result;
}
public static final int OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER = 5;
private com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage optionalNestedMessage_;
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return Whether the optionalNestedMessage field is set.
*/
@java.lang.Override
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return The optionalNestedMessage.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalNestedMessage() {
return optionalNestedMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() {
return optionalNestedMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
}
public static final int OPTIONAL_PROTO2_MESSAGE_FIELD_NUMBER = 6;
private proto2_unittest.UnittestProto.TestRequired optionalProto2Message_;
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return Whether the optionalProto2Message field is set.
*/
@java.lang.Override
public boolean hasOptionalProto2Message() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return The optionalProto2Message.
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequired getOptionalProto2Message() {
return optionalProto2Message_ == null ? proto2_unittest.UnittestProto.TestRequired.getDefaultInstance() : optionalProto2Message_;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getOptionalProto2MessageOrBuilder() {
return optionalProto2Message_ == null ? proto2_unittest.UnittestProto.TestRequired.getDefaultInstance() : optionalProto2Message_;
}
public static final int OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER = 7;
private com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage optionalLazyMessage_;
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return Whether the optionalLazyMessage field is set.
*/
@java.lang.Override
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return The optionalLazyMessage.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalLazyMessage() {
return optionalLazyMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() {
return optionalLazyMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
}
public static final int ONEOF_INT32_FIELD_NUMBER = 11;
/**
* int32 oneof_int32 = 11;
* @return Whether the oneofInt32 field is set.
*/
@java.lang.Override
public boolean hasOneofInt32() {
return oneofFieldCase_ == 11;
}
/**
* int32 oneof_int32 = 11;
* @return The oneofInt32.
*/
@java.lang.Override
public int getOneofInt32() {
if (oneofFieldCase_ == 11) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
public static final int ONEOF_UINT32_FIELD_NUMBER = 12;
/**
* uint32 oneof_uint32 = 12;
* @return Whether the oneofUint32 field is set.
*/
@java.lang.Override
public boolean hasOneofUint32() {
return oneofFieldCase_ == 12;
}
/**
* uint32 oneof_uint32 = 12;
* @return The oneofUint32.
*/
@java.lang.Override
public int getOneofUint32() {
if (oneofFieldCase_ == 12) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
public static final int ONEOF_STRING_FIELD_NUMBER = 13;
/**
* string oneof_string = 13;
* @return Whether the oneofString field is set.
*/
public boolean hasOneofString() {
return oneofFieldCase_ == 13;
}
/**
* string oneof_string = 13;
* @return The oneofString.
*/
public java.lang.String getOneofString() {
java.lang.Object ref = "";
if (oneofFieldCase_ == 13) {
ref = oneofField_;
}
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 (oneofFieldCase_ == 13) {
oneofField_ = s;
}
return s;
}
}
/**
* string oneof_string = 13;
* @return The bytes for oneofString.
*/
public com.google.protobuf.ByteString
getOneofStringBytes() {
java.lang.Object ref = "";
if (oneofFieldCase_ == 13) {
ref = oneofField_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (oneofFieldCase_ == 13) {
oneofField_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ONEOF_BYTES_FIELD_NUMBER = 14;
/**
* bytes oneof_bytes = 14;
* @return Whether the oneofBytes field is set.
*/
@java.lang.Override
public boolean hasOneofBytes() {
return oneofFieldCase_ == 14;
}
/**
* bytes oneof_bytes = 14;
* @return The oneofBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOneofBytes() {
if (oneofFieldCase_ == 14) {
return (com.google.protobuf.ByteString) oneofField_;
}
return com.google.protobuf.ByteString.EMPTY;
}
public static final int ONEOF_NESTED_ENUM_FIELD_NUMBER = 15;
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return Whether the oneofNestedEnum field is set.
*/
public boolean hasOneofNestedEnum() {
return oneofFieldCase_ == 15;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return The enum numeric value on the wire for oneofNestedEnum.
*/
public int getOneofNestedEnumValue() {
if (oneofFieldCase_ == 15) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return The oneofNestedEnum.
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOneofNestedEnum() {
if (oneofFieldCase_ == 15) {
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum result = com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.forNumber(
(java.lang.Integer) oneofField_);
return result == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.UNRECOGNIZED : result;
}
return com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.FOO;
}
public static final int ONEOF_NESTED_MESSAGE_FIELD_NUMBER = 16;
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
* @return Whether the oneofNestedMessage field is set.
*/
@java.lang.Override
public boolean hasOneofNestedMessage() {
return oneofFieldCase_ == 16;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
* @return The oneofNestedMessage.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOneofNestedMessage() {
if (oneofFieldCase_ == 16) {
return (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) oneofField_;
}
return com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() {
if (oneofFieldCase_ == 16) {
return (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) oneofField_;
}
return com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
public static final int ONEOF_PROTO2_MESSAGE_FIELD_NUMBER = 17;
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
* @return Whether the oneofProto2Message field is set.
*/
@java.lang.Override
public boolean hasOneofProto2Message() {
return oneofFieldCase_ == 17;
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
* @return The oneofProto2Message.
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequired getOneofProto2Message() {
if (oneofFieldCase_ == 17) {
return (proto2_unittest.UnittestProto.TestRequired) oneofField_;
}
return proto2_unittest.UnittestProto.TestRequired.getDefaultInstance();
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getOneofProto2MessageOrBuilder() {
if (oneofFieldCase_ == 17) {
return (proto2_unittest.UnittestProto.TestRequired) oneofField_;
}
return proto2_unittest.UnittestProto.TestRequired.getDefaultInstance();
}
public static final int REPEATED_INT32_FIELD_NUMBER = 21;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedInt32_ =
emptyIntList();
/**
* repeated int32 repeated_int32 = 21;
* @return A list containing the repeatedInt32.
*/
@java.lang.Override
public java.util.Listrepeated int32 repeated_int32 = 21;
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 21;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
private int repeatedInt32MemoizedSerializedSize = -1;
public static final int REPEATED_STRING_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string repeated_string = 22;
* @return A list containing the repeatedString.
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringList() {
return repeatedString_;
}
/**
* repeated string repeated_string = 22;
* @return The count of repeatedString.
*/
public int getRepeatedStringCount() {
return repeatedString_.size();
}
/**
* repeated string repeated_string = 22;
* @param index The index of the element to return.
* @return The repeatedString at the given index.
*/
public java.lang.String getRepeatedString(int index) {
return repeatedString_.get(index);
}
/**
* repeated string repeated_string = 22;
* @param index The index of the value to return.
* @return The bytes of the repeatedString at the given index.
*/
public com.google.protobuf.ByteString
getRepeatedStringBytes(int index) {
return repeatedString_.getByteString(index);
}
public static final int REPEATED_BYTES_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufListrepeated bytes repeated_bytes = 23;
* @return A list containing the repeatedBytes.
*/
@java.lang.Override
public java.util.Listrepeated bytes repeated_bytes = 23;
* @return The count of repeatedBytes.
*/
public int getRepeatedBytesCount() {
return repeatedBytes_.size();
}
/**
* repeated bytes repeated_bytes = 23;
* @param index The index of the element to return.
* @return The repeatedBytes at the given index.
*/
public com.google.protobuf.ByteString getRepeatedBytes(int index) {
return repeatedBytes_.get(index);
}
public static final int REPEATED_NESTED_ENUM_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the repeatedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return The count of repeatedNestedEnum.
*/
@java.lang.Override
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
@java.lang.Override
public int getRepeatedNestedEnumValue(int index) {
return repeatedNestedEnum_.get(index);
}
private int repeatedNestedEnumMemoizedSerializedSize;
public static final int REPEATED_NESTED_MESSAGE_FIELD_NUMBER = 25;
@SuppressWarnings("serial")
private java.util.Listrepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList() {
return repeatedNestedMessage_;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public int getRepeatedNestedMessageCount() {
return repeatedNestedMessage_.size();
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index) {
return repeatedNestedMessage_.get(index);
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index) {
return repeatedNestedMessage_.get(index);
}
public static final int REPEATED_PROTO2_MESSAGE_FIELD_NUMBER = 26;
@SuppressWarnings("serial")
private java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public java.util.List extends proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getRepeatedProto2MessageOrBuilderList() {
return repeatedProto2Message_;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public int getRepeatedProto2MessageCount() {
return repeatedProto2Message_.size();
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequired getRepeatedProto2Message(int index) {
return repeatedProto2Message_.get(index);
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedProto2MessageOrBuilder(
int index) {
return repeatedProto2Message_.get(index);
}
public static final int PACKED_NESTED_ENUM_FIELD_NUMBER = 27;
@SuppressWarnings("serial")
private java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return A list containing the packedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return The count of packedNestedEnum.
*/
@java.lang.Override
public int getPackedNestedEnumCount() {
return packedNestedEnum_.size();
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param index The index of the element to return.
* @return The packedNestedEnum at the given index.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getPackedNestedEnum(int index) {
return packedNestedEnum_converter_.convert(packedNestedEnum_.get(index));
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return A list containing the enum numeric values on the wire for packedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of packedNestedEnum at the given index.
*/
@java.lang.Override
public int getPackedNestedEnumValue(int index) {
return packedNestedEnum_.get(index);
}
private int packedNestedEnumMemoizedSerializedSize;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOptionalProto2Message()) {
if (!getOptionalProto2Message().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasOneofProto2Message()) {
if (!getOneofProto2Message().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getRepeatedProto2MessageCount(); i++) {
if (!getRepeatedProto2Message(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (optionalInt32_ != 0) {
output.writeInt32(1, optionalInt32_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optionalString_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, optionalString_);
}
if (!optionalBytes_.isEmpty()) {
output.writeBytes(3, optionalBytes_);
}
if (optionalNestedEnum_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.FOO.getNumber()) {
output.writeEnum(4, optionalNestedEnum_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getOptionalNestedMessage());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getOptionalProto2Message());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getOptionalLazyMessage());
}
if (oneofFieldCase_ == 11) {
output.writeInt32(
11, (int)((java.lang.Integer) oneofField_));
}
if (oneofFieldCase_ == 12) {
output.writeUInt32(
12, (int)((java.lang.Integer) oneofField_));
}
if (oneofFieldCase_ == 13) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, oneofField_);
}
if (oneofFieldCase_ == 14) {
output.writeBytes(
14, (com.google.protobuf.ByteString) oneofField_);
}
if (oneofFieldCase_ == 15) {
output.writeEnum(15, ((java.lang.Integer) oneofField_));
}
if (oneofFieldCase_ == 16) {
output.writeMessage(16, (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) oneofField_);
}
if (oneofFieldCase_ == 17) {
output.writeMessage(17, (proto2_unittest.UnittestProto.TestRequired) oneofField_);
}
if (getRepeatedInt32List().size() > 0) {
output.writeUInt32NoTag(170);
output.writeUInt32NoTag(repeatedInt32MemoizedSerializedSize);
}
for (int i = 0; i < repeatedInt32_.size(); i++) {
output.writeInt32NoTag(repeatedInt32_.getInt(i));
}
for (int i = 0; i < repeatedString_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, repeatedString_.getRaw(i));
}
for (int i = 0; i < repeatedBytes_.size(); i++) {
output.writeBytes(23, repeatedBytes_.get(i));
}
if (getRepeatedNestedEnumList().size() > 0) {
output.writeUInt32NoTag(194);
output.writeUInt32NoTag(repeatedNestedEnumMemoizedSerializedSize);
}
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
output.writeEnumNoTag(repeatedNestedEnum_.get(i));
}
for (int i = 0; i < repeatedNestedMessage_.size(); i++) {
output.writeMessage(25, repeatedNestedMessage_.get(i));
}
for (int i = 0; i < repeatedProto2Message_.size(); i++) {
output.writeMessage(26, repeatedProto2Message_.get(i));
}
if (getPackedNestedEnumList().size() > 0) {
output.writeUInt32NoTag(218);
output.writeUInt32NoTag(packedNestedEnumMemoizedSerializedSize);
}
for (int i = 0; i < packedNestedEnum_.size(); i++) {
output.writeEnumNoTag(packedNestedEnum_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (optionalInt32_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, optionalInt32_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optionalString_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, optionalString_);
}
if (!optionalBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, optionalBytes_);
}
if (optionalNestedEnum_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.FOO.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, optionalNestedEnum_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getOptionalNestedMessage());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getOptionalProto2Message());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getOptionalLazyMessage());
}
if (oneofFieldCase_ == 11) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(
11, (int)((java.lang.Integer) oneofField_));
}
if (oneofFieldCase_ == 12) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(
12, (int)((java.lang.Integer) oneofField_));
}
if (oneofFieldCase_ == 13) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, oneofField_);
}
if (oneofFieldCase_ == 14) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(
14, (com.google.protobuf.ByteString) oneofField_);
}
if (oneofFieldCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(15, ((java.lang.Integer) oneofField_));
}
if (oneofFieldCase_ == 16) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) oneofField_);
}
if (oneofFieldCase_ == 17) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, (proto2_unittest.UnittestProto.TestRequired) oneofField_);
}
{
int dataSize = 0;
for (int i = 0; i < repeatedInt32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(repeatedInt32_.getInt(i));
}
size += dataSize;
if (!getRepeatedInt32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedInt32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < repeatedString_.size(); i++) {
dataSize += computeStringSizeNoTag(repeatedString_.getRaw(i));
}
size += dataSize;
size += 2 * getRepeatedStringList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedBytes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(repeatedBytes_.get(i));
}
size += dataSize;
size += 2 * getRepeatedBytesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedNestedEnum_.get(i));
}
size += dataSize;
if (!getRepeatedNestedEnumList().isEmpty()) { size += 2;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}repeatedNestedEnumMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < repeatedNestedMessage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, repeatedNestedMessage_.get(i));
}
for (int i = 0; i < repeatedProto2Message_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, repeatedProto2Message_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < packedNestedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(packedNestedEnum_.get(i));
}
size += dataSize;
if (!getPackedNestedEnumList().isEmpty()) { size += 2;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}packedNestedEnumMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.FieldPresenceTestProto.TestAllTypes)) {
return super.equals(obj);
}
com.google.protobuf.FieldPresenceTestProto.TestAllTypes other = (com.google.protobuf.FieldPresenceTestProto.TestAllTypes) obj;
if (getOptionalInt32()
!= other.getOptionalInt32()) return false;
if (!getOptionalString()
.equals(other.getOptionalString())) return false;
if (!getOptionalBytes()
.equals(other.getOptionalBytes())) return false;
if (optionalNestedEnum_ != other.optionalNestedEnum_) return false;
if (hasOptionalNestedMessage() != other.hasOptionalNestedMessage()) return false;
if (hasOptionalNestedMessage()) {
if (!getOptionalNestedMessage()
.equals(other.getOptionalNestedMessage())) return false;
}
if (hasOptionalProto2Message() != other.hasOptionalProto2Message()) return false;
if (hasOptionalProto2Message()) {
if (!getOptionalProto2Message()
.equals(other.getOptionalProto2Message())) return false;
}
if (hasOptionalLazyMessage() != other.hasOptionalLazyMessage()) return false;
if (hasOptionalLazyMessage()) {
if (!getOptionalLazyMessage()
.equals(other.getOptionalLazyMessage())) return false;
}
if (!getRepeatedInt32List()
.equals(other.getRepeatedInt32List())) return false;
if (!getRepeatedStringList()
.equals(other.getRepeatedStringList())) return false;
if (!getRepeatedBytesList()
.equals(other.getRepeatedBytesList())) return false;
if (!repeatedNestedEnum_.equals(other.repeatedNestedEnum_)) return false;
if (!getRepeatedNestedMessageList()
.equals(other.getRepeatedNestedMessageList())) return false;
if (!getRepeatedProto2MessageList()
.equals(other.getRepeatedProto2MessageList())) return false;
if (!packedNestedEnum_.equals(other.packedNestedEnum_)) return false;
if (!getOneofFieldCase().equals(other.getOneofFieldCase())) return false;
switch (oneofFieldCase_) {
case 11:
if (getOneofInt32()
!= other.getOneofInt32()) return false;
break;
case 12:
if (getOneofUint32()
!= other.getOneofUint32()) return false;
break;
case 13:
if (!getOneofString()
.equals(other.getOneofString())) return false;
break;
case 14:
if (!getOneofBytes()
.equals(other.getOneofBytes())) return false;
break;
case 15:
if (getOneofNestedEnumValue()
!= other.getOneofNestedEnumValue()) return false;
break;
case 16:
if (!getOneofNestedMessage()
.equals(other.getOneofNestedMessage())) return false;
break;
case 17:
if (!getOneofProto2Message()
.equals(other.getOneofProto2Message())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OPTIONAL_INT32_FIELD_NUMBER;
hash = (53 * hash) + getOptionalInt32();
hash = (37 * hash) + OPTIONAL_STRING_FIELD_NUMBER;
hash = (53 * hash) + getOptionalString().hashCode();
hash = (37 * hash) + OPTIONAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getOptionalBytes().hashCode();
hash = (37 * hash) + OPTIONAL_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + optionalNestedEnum_;
if (hasOptionalNestedMessage()) {
hash = (37 * hash) + OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalNestedMessage().hashCode();
}
if (hasOptionalProto2Message()) {
hash = (37 * hash) + OPTIONAL_PROTO2_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalProto2Message().hashCode();
}
if (hasOptionalLazyMessage()) {
hash = (37 * hash) + OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalLazyMessage().hashCode();
}
if (getRepeatedInt32Count() > 0) {
hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedInt32List().hashCode();
}
if (getRepeatedStringCount() > 0) {
hash = (37 * hash) + REPEATED_STRING_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedStringList().hashCode();
}
if (getRepeatedBytesCount() > 0) {
hash = (37 * hash) + REPEATED_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedBytesList().hashCode();
}
if (getRepeatedNestedEnumCount() > 0) {
hash = (37 * hash) + REPEATED_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedNestedEnum_.hashCode();
}
if (getRepeatedNestedMessageCount() > 0) {
hash = (37 * hash) + REPEATED_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedNestedMessageList().hashCode();
}
if (getRepeatedProto2MessageCount() > 0) {
hash = (37 * hash) + REPEATED_PROTO2_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedProto2MessageList().hashCode();
}
if (getPackedNestedEnumCount() > 0) {
hash = (37 * hash) + PACKED_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + packedNestedEnum_.hashCode();
}
switch (oneofFieldCase_) {
case 11:
hash = (37 * hash) + ONEOF_INT32_FIELD_NUMBER;
hash = (53 * hash) + getOneofInt32();
break;
case 12:
hash = (37 * hash) + ONEOF_UINT32_FIELD_NUMBER;
hash = (53 * hash) + getOneofUint32();
break;
case 13:
hash = (37 * hash) + ONEOF_STRING_FIELD_NUMBER;
hash = (53 * hash) + getOneofString().hashCode();
break;
case 14:
hash = (37 * hash) + ONEOF_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getOneofBytes().hashCode();
break;
case 15:
hash = (37 * hash) + ONEOF_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + getOneofNestedEnumValue();
break;
case 16:
hash = (37 * hash) + ONEOF_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOneofNestedMessage().hashCode();
break;
case 17:
hash = (37 * hash) + ONEOF_PROTO2_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOneofProto2Message().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestAllTypes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.FieldPresenceTestProto.TestAllTypes prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code field_presence_test.TestAllTypes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderint32 optional_int32 = 1;
* @return The optionalInt32.
*/
@java.lang.Override
public int getOptionalInt32() {
return optionalInt32_;
}
/**
* int32 optional_int32 = 1;
* @param value The optionalInt32 to set.
* @return This builder for chaining.
*/
public Builder setOptionalInt32(int value) {
optionalInt32_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 optional_int32 = 1;
* @return This builder for chaining.
*/
public Builder clearOptionalInt32() {
bitField0_ = (bitField0_ & ~0x00000001);
optionalInt32_ = 0;
onChanged();
return this;
}
private java.lang.Object optionalString_ = "";
/**
* string optional_string = 2;
* @return The optionalString.
*/
public java.lang.String getOptionalString() {
java.lang.Object ref = optionalString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
optionalString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string optional_string = 2;
* @return The bytes for optionalString.
*/
public com.google.protobuf.ByteString
getOptionalStringBytes() {
java.lang.Object ref = optionalString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string optional_string = 2;
* @param value The optionalString to set.
* @return This builder for chaining.
*/
public Builder setOptionalString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
optionalString_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string optional_string = 2;
* @return This builder for chaining.
*/
public Builder clearOptionalString() {
optionalString_ = getDefaultInstance().getOptionalString();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string optional_string = 2;
* @param value The bytes for optionalString to set.
* @return This builder for chaining.
*/
public Builder setOptionalStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
optionalString_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes optional_bytes = 3;
* @return The optionalBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOptionalBytes() {
return optionalBytes_;
}
/**
* bytes optional_bytes = 3;
* @param value The optionalBytes to set.
* @return This builder for chaining.
*/
public Builder setOptionalBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
optionalBytes_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes optional_bytes = 3;
* @return This builder for chaining.
*/
public Builder clearOptionalBytes() {
bitField0_ = (bitField0_ & ~0x00000004);
optionalBytes_ = getDefaultInstance().getOptionalBytes();
onChanged();
return this;
}
private int optionalNestedEnum_ = 0;
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The enum numeric value on the wire for optionalNestedEnum.
*/
@java.lang.Override public int getOptionalNestedEnumValue() {
return optionalNestedEnum_;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @param value The enum numeric value on the wire for optionalNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setOptionalNestedEnumValue(int value) {
optionalNestedEnum_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The optionalNestedEnum.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOptionalNestedEnum() {
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum result = com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.forNumber(optionalNestedEnum_);
return result == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.UNRECOGNIZED : result;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @param value The optionalNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setOptionalNestedEnum(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
optionalNestedEnum_ = value.getNumber();
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return This builder for chaining.
*/
public Builder clearOptionalNestedEnum() {
bitField0_ = (bitField0_ & ~0x00000008);
optionalNestedEnum_ = 0;
onChanged();
return this;
}
private com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage optionalNestedMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder> optionalNestedMessageBuilder_;
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return Whether the optionalNestedMessage field is set.
*/
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return The optionalNestedMessage.
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalNestedMessage() {
if (optionalNestedMessageBuilder_ == null) {
return optionalNestedMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
} else {
return optionalNestedMessageBuilder_.getMessage();
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public Builder setOptionalNestedMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (optionalNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalNestedMessage_ = value;
} else {
optionalNestedMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public Builder setOptionalNestedMessage(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessage_ = builderForValue.build();
} else {
optionalNestedMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public Builder mergeOptionalNestedMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (optionalNestedMessageBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
optionalNestedMessage_ != null &&
optionalNestedMessage_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance()) {
getOptionalNestedMessageBuilder().mergeFrom(value);
} else {
optionalNestedMessage_ = value;
}
} else {
optionalNestedMessageBuilder_.mergeFrom(value);
}
if (optionalNestedMessage_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public Builder clearOptionalNestedMessage() {
bitField0_ = (bitField0_ & ~0x00000010);
optionalNestedMessage_ = null;
if (optionalNestedMessageBuilder_ != null) {
optionalNestedMessageBuilder_.dispose();
optionalNestedMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder getOptionalNestedMessageBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getOptionalNestedMessageFieldBuilder().getBuilder();
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() {
if (optionalNestedMessageBuilder_ != null) {
return optionalNestedMessageBuilder_.getMessageOrBuilder();
} else {
return optionalNestedMessage_ == null ?
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getOptionalNestedMessageFieldBuilder() {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>(
getOptionalNestedMessage(),
getParentForChildren(),
isClean());
optionalNestedMessage_ = null;
}
return optionalNestedMessageBuilder_;
}
private proto2_unittest.UnittestProto.TestRequired optionalProto2Message_;
private com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder> optionalProto2MessageBuilder_;
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return Whether the optionalProto2Message field is set.
*/
public boolean hasOptionalProto2Message() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return The optionalProto2Message.
*/
public proto2_unittest.UnittestProto.TestRequired getOptionalProto2Message() {
if (optionalProto2MessageBuilder_ == null) {
return optionalProto2Message_ == null ? proto2_unittest.UnittestProto.TestRequired.getDefaultInstance() : optionalProto2Message_;
} else {
return optionalProto2MessageBuilder_.getMessage();
}
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public Builder setOptionalProto2Message(proto2_unittest.UnittestProto.TestRequired value) {
if (optionalProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalProto2Message_ = value;
} else {
optionalProto2MessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public Builder setOptionalProto2Message(
proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (optionalProto2MessageBuilder_ == null) {
optionalProto2Message_ = builderForValue.build();
} else {
optionalProto2MessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public Builder mergeOptionalProto2Message(proto2_unittest.UnittestProto.TestRequired value) {
if (optionalProto2MessageBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
optionalProto2Message_ != null &&
optionalProto2Message_ != proto2_unittest.UnittestProto.TestRequired.getDefaultInstance()) {
getOptionalProto2MessageBuilder().mergeFrom(value);
} else {
optionalProto2Message_ = value;
}
} else {
optionalProto2MessageBuilder_.mergeFrom(value);
}
if (optionalProto2Message_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public Builder clearOptionalProto2Message() {
bitField0_ = (bitField0_ & ~0x00000020);
optionalProto2Message_ = null;
if (optionalProto2MessageBuilder_ != null) {
optionalProto2MessageBuilder_.dispose();
optionalProto2MessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder getOptionalProto2MessageBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getOptionalProto2MessageFieldBuilder().getBuilder();
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getOptionalProto2MessageOrBuilder() {
if (optionalProto2MessageBuilder_ != null) {
return optionalProto2MessageBuilder_.getMessageOrBuilder();
} else {
return optionalProto2Message_ == null ?
proto2_unittest.UnittestProto.TestRequired.getDefaultInstance() : optionalProto2Message_;
}
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getOptionalProto2MessageFieldBuilder() {
if (optionalProto2MessageBuilder_ == null) {
optionalProto2MessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder>(
getOptionalProto2Message(),
getParentForChildren(),
isClean());
optionalProto2Message_ = null;
}
return optionalProto2MessageBuilder_;
}
private com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage optionalLazyMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder> optionalLazyMessageBuilder_;
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return Whether the optionalLazyMessage field is set.
*/
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return The optionalLazyMessage.
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalLazyMessage() {
if (optionalLazyMessageBuilder_ == null) {
return optionalLazyMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
} else {
return optionalLazyMessageBuilder_.getMessage();
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public Builder setOptionalLazyMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (optionalLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalLazyMessage_ = value;
} else {
optionalLazyMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public Builder setOptionalLazyMessage(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessage_ = builderForValue.build();
} else {
optionalLazyMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public Builder mergeOptionalLazyMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (optionalLazyMessageBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
optionalLazyMessage_ != null &&
optionalLazyMessage_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance()) {
getOptionalLazyMessageBuilder().mergeFrom(value);
} else {
optionalLazyMessage_ = value;
}
} else {
optionalLazyMessageBuilder_.mergeFrom(value);
}
if (optionalLazyMessage_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public Builder clearOptionalLazyMessage() {
bitField0_ = (bitField0_ & ~0x00000040);
optionalLazyMessage_ = null;
if (optionalLazyMessageBuilder_ != null) {
optionalLazyMessageBuilder_.dispose();
optionalLazyMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder getOptionalLazyMessageBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getOptionalLazyMessageFieldBuilder().getBuilder();
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() {
if (optionalLazyMessageBuilder_ != null) {
return optionalLazyMessageBuilder_.getMessageOrBuilder();
} else {
return optionalLazyMessage_ == null ?
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getOptionalLazyMessageFieldBuilder() {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>(
getOptionalLazyMessage(),
getParentForChildren(),
isClean());
optionalLazyMessage_ = null;
}
return optionalLazyMessageBuilder_;
}
/**
* int32 oneof_int32 = 11;
* @return Whether the oneofInt32 field is set.
*/
public boolean hasOneofInt32() {
return oneofFieldCase_ == 11;
}
/**
* int32 oneof_int32 = 11;
* @return The oneofInt32.
*/
public int getOneofInt32() {
if (oneofFieldCase_ == 11) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
/**
* int32 oneof_int32 = 11;
* @param value The oneofInt32 to set.
* @return This builder for chaining.
*/
public Builder setOneofInt32(int value) {
oneofFieldCase_ = 11;
oneofField_ = value;
onChanged();
return this;
}
/**
* int32 oneof_int32 = 11;
* @return This builder for chaining.
*/
public Builder clearOneofInt32() {
if (oneofFieldCase_ == 11) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
/**
* uint32 oneof_uint32 = 12;
* @return Whether the oneofUint32 field is set.
*/
public boolean hasOneofUint32() {
return oneofFieldCase_ == 12;
}
/**
* uint32 oneof_uint32 = 12;
* @return The oneofUint32.
*/
public int getOneofUint32() {
if (oneofFieldCase_ == 12) {
return (java.lang.Integer) oneofField_;
}
return 0;
}
/**
* uint32 oneof_uint32 = 12;
* @param value The oneofUint32 to set.
* @return This builder for chaining.
*/
public Builder setOneofUint32(int value) {
oneofFieldCase_ = 12;
oneofField_ = value;
onChanged();
return this;
}
/**
* uint32 oneof_uint32 = 12;
* @return This builder for chaining.
*/
public Builder clearOneofUint32() {
if (oneofFieldCase_ == 12) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
/**
* string oneof_string = 13;
* @return Whether the oneofString field is set.
*/
@java.lang.Override
public boolean hasOneofString() {
return oneofFieldCase_ == 13;
}
/**
* string oneof_string = 13;
* @return The oneofString.
*/
@java.lang.Override
public java.lang.String getOneofString() {
java.lang.Object ref = "";
if (oneofFieldCase_ == 13) {
ref = oneofField_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (oneofFieldCase_ == 13) {
oneofField_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string oneof_string = 13;
* @return The bytes for oneofString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOneofStringBytes() {
java.lang.Object ref = "";
if (oneofFieldCase_ == 13) {
ref = oneofField_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (oneofFieldCase_ == 13) {
oneofField_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string oneof_string = 13;
* @param value The oneofString to set.
* @return This builder for chaining.
*/
public Builder setOneofString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
oneofFieldCase_ = 13;
oneofField_ = value;
onChanged();
return this;
}
/**
* string oneof_string = 13;
* @return This builder for chaining.
*/
public Builder clearOneofString() {
if (oneofFieldCase_ == 13) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
/**
* string oneof_string = 13;
* @param value The bytes for oneofString to set.
* @return This builder for chaining.
*/
public Builder setOneofStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
oneofFieldCase_ = 13;
oneofField_ = value;
onChanged();
return this;
}
/**
* bytes oneof_bytes = 14;
* @return Whether the oneofBytes field is set.
*/
public boolean hasOneofBytes() {
return oneofFieldCase_ == 14;
}
/**
* bytes oneof_bytes = 14;
* @return The oneofBytes.
*/
public com.google.protobuf.ByteString getOneofBytes() {
if (oneofFieldCase_ == 14) {
return (com.google.protobuf.ByteString) oneofField_;
}
return com.google.protobuf.ByteString.EMPTY;
}
/**
* bytes oneof_bytes = 14;
* @param value The oneofBytes to set.
* @return This builder for chaining.
*/
public Builder setOneofBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
oneofFieldCase_ = 14;
oneofField_ = value;
onChanged();
return this;
}
/**
* bytes oneof_bytes = 14;
* @return This builder for chaining.
*/
public Builder clearOneofBytes() {
if (oneofFieldCase_ == 14) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return Whether the oneofNestedEnum field is set.
*/
@java.lang.Override
public boolean hasOneofNestedEnum() {
return oneofFieldCase_ == 15;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return The enum numeric value on the wire for oneofNestedEnum.
*/
@java.lang.Override
public int getOneofNestedEnumValue() {
if (oneofFieldCase_ == 15) {
return ((java.lang.Integer) oneofField_).intValue();
}
return 0;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @param value The enum numeric value on the wire for oneofNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setOneofNestedEnumValue(int value) {
oneofFieldCase_ = 15;
oneofField_ = value;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return The oneofNestedEnum.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOneofNestedEnum() {
if (oneofFieldCase_ == 15) {
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum result = com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.forNumber(
(java.lang.Integer) oneofField_);
return result == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.UNRECOGNIZED : result;
}
return com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.FOO;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @param value The oneofNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setOneofNestedEnum(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
oneofFieldCase_ = 15;
oneofField_ = value.getNumber();
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum oneof_nested_enum = 15;
* @return This builder for chaining.
*/
public Builder clearOneofNestedEnum() {
if (oneofFieldCase_ == 15) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder> oneofNestedMessageBuilder_;
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
* @return Whether the oneofNestedMessage field is set.
*/
@java.lang.Override
public boolean hasOneofNestedMessage() {
return oneofFieldCase_ == 16;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
* @return The oneofNestedMessage.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOneofNestedMessage() {
if (oneofNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 16) {
return (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) oneofField_;
}
return com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance();
} else {
if (oneofFieldCase_ == 16) {
return oneofNestedMessageBuilder_.getMessage();
}
return com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
public Builder setOneofNestedMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (oneofNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oneofField_ = value;
onChanged();
} else {
oneofNestedMessageBuilder_.setMessage(value);
}
oneofFieldCase_ = 16;
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
public Builder setOneofNestedMessage(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (oneofNestedMessageBuilder_ == null) {
oneofField_ = builderForValue.build();
onChanged();
} else {
oneofNestedMessageBuilder_.setMessage(builderForValue.build());
}
oneofFieldCase_ = 16;
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
public Builder mergeOneofNestedMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (oneofNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 16 &&
oneofField_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance()) {
oneofField_ = com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.newBuilder((com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) oneofField_)
.mergeFrom(value).buildPartial();
} else {
oneofField_ = value;
}
onChanged();
} else {
if (oneofFieldCase_ == 16) {
oneofNestedMessageBuilder_.mergeFrom(value);
} else {
oneofNestedMessageBuilder_.setMessage(value);
}
}
oneofFieldCase_ = 16;
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
public Builder clearOneofNestedMessage() {
if (oneofNestedMessageBuilder_ == null) {
if (oneofFieldCase_ == 16) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
} else {
if (oneofFieldCase_ == 16) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
oneofNestedMessageBuilder_.clear();
}
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder getOneofNestedMessageBuilder() {
return getOneofNestedMessageFieldBuilder().getBuilder();
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOneofNestedMessageOrBuilder() {
if ((oneofFieldCase_ == 16) && (oneofNestedMessageBuilder_ != null)) {
return oneofNestedMessageBuilder_.getMessageOrBuilder();
} else {
if (oneofFieldCase_ == 16) {
return (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) oneofField_;
}
return com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage oneof_nested_message = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getOneofNestedMessageFieldBuilder() {
if (oneofNestedMessageBuilder_ == null) {
if (!(oneofFieldCase_ == 16)) {
oneofField_ = com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance();
}
oneofNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>(
(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage) oneofField_,
getParentForChildren(),
isClean());
oneofField_ = null;
}
oneofFieldCase_ = 16;
onChanged();
return oneofNestedMessageBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder> oneofProto2MessageBuilder_;
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
* @return Whether the oneofProto2Message field is set.
*/
@java.lang.Override
public boolean hasOneofProto2Message() {
return oneofFieldCase_ == 17;
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
* @return The oneofProto2Message.
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequired getOneofProto2Message() {
if (oneofProto2MessageBuilder_ == null) {
if (oneofFieldCase_ == 17) {
return (proto2_unittest.UnittestProto.TestRequired) oneofField_;
}
return proto2_unittest.UnittestProto.TestRequired.getDefaultInstance();
} else {
if (oneofFieldCase_ == 17) {
return oneofProto2MessageBuilder_.getMessage();
}
return proto2_unittest.UnittestProto.TestRequired.getDefaultInstance();
}
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
public Builder setOneofProto2Message(proto2_unittest.UnittestProto.TestRequired value) {
if (oneofProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oneofField_ = value;
onChanged();
} else {
oneofProto2MessageBuilder_.setMessage(value);
}
oneofFieldCase_ = 17;
return this;
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
public Builder setOneofProto2Message(
proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (oneofProto2MessageBuilder_ == null) {
oneofField_ = builderForValue.build();
onChanged();
} else {
oneofProto2MessageBuilder_.setMessage(builderForValue.build());
}
oneofFieldCase_ = 17;
return this;
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
public Builder mergeOneofProto2Message(proto2_unittest.UnittestProto.TestRequired value) {
if (oneofProto2MessageBuilder_ == null) {
if (oneofFieldCase_ == 17 &&
oneofField_ != proto2_unittest.UnittestProto.TestRequired.getDefaultInstance()) {
oneofField_ = proto2_unittest.UnittestProto.TestRequired.newBuilder((proto2_unittest.UnittestProto.TestRequired) oneofField_)
.mergeFrom(value).buildPartial();
} else {
oneofField_ = value;
}
onChanged();
} else {
if (oneofFieldCase_ == 17) {
oneofProto2MessageBuilder_.mergeFrom(value);
} else {
oneofProto2MessageBuilder_.setMessage(value);
}
}
oneofFieldCase_ = 17;
return this;
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
public Builder clearOneofProto2Message() {
if (oneofProto2MessageBuilder_ == null) {
if (oneofFieldCase_ == 17) {
oneofFieldCase_ = 0;
oneofField_ = null;
onChanged();
}
} else {
if (oneofFieldCase_ == 17) {
oneofFieldCase_ = 0;
oneofField_ = null;
}
oneofProto2MessageBuilder_.clear();
}
return this;
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder getOneofProto2MessageBuilder() {
return getOneofProto2MessageFieldBuilder().getBuilder();
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getOneofProto2MessageOrBuilder() {
if ((oneofFieldCase_ == 17) && (oneofProto2MessageBuilder_ != null)) {
return oneofProto2MessageBuilder_.getMessageOrBuilder();
} else {
if (oneofFieldCase_ == 17) {
return (proto2_unittest.UnittestProto.TestRequired) oneofField_;
}
return proto2_unittest.UnittestProto.TestRequired.getDefaultInstance();
}
}
/**
* .proto2_unittest.TestRequired oneof_proto2_message = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getOneofProto2MessageFieldBuilder() {
if (oneofProto2MessageBuilder_ == null) {
if (!(oneofFieldCase_ == 17)) {
oneofField_ = proto2_unittest.UnittestProto.TestRequired.getDefaultInstance();
}
oneofProto2MessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder>(
(proto2_unittest.UnittestProto.TestRequired) oneofField_,
getParentForChildren(),
isClean());
oneofField_ = null;
}
oneofFieldCase_ = 17;
onChanged();
return oneofProto2MessageBuilder_;
}
private com.google.protobuf.Internal.IntList repeatedInt32_ = emptyIntList();
private void ensureRepeatedInt32IsMutable() {
if (!repeatedInt32_.isModifiable()) {
repeatedInt32_ = makeMutableCopy(repeatedInt32_);
}
bitField0_ |= 0x00004000;
}
/**
* repeated int32 repeated_int32 = 21;
* @return A list containing the repeatedInt32.
*/
public java.util.Listrepeated int32 repeated_int32 = 21;
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 21;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
/**
* repeated int32 repeated_int32 = 21;
* @param index The index to set the value at.
* @param value The repeatedInt32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedInt32(
int index, int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.setInt(index, value);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 21;
* @param value The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedInt32(int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.addInt(value);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 21;
* @param values The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedInt32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedInt32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt32_);
bitField0_ |= 0x00004000;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 21;
* @return This builder for chaining.
*/
public Builder clearRepeatedInt32() {
repeatedInt32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRepeatedStringIsMutable() {
if (!repeatedString_.isModifiable()) {
repeatedString_ = new com.google.protobuf.LazyStringArrayList(repeatedString_);
}
bitField0_ |= 0x00008000;
}
/**
* repeated string repeated_string = 22;
* @return A list containing the repeatedString.
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringList() {
repeatedString_.makeImmutable();
return repeatedString_;
}
/**
* repeated string repeated_string = 22;
* @return The count of repeatedString.
*/
public int getRepeatedStringCount() {
return repeatedString_.size();
}
/**
* repeated string repeated_string = 22;
* @param index The index of the element to return.
* @return The repeatedString at the given index.
*/
public java.lang.String getRepeatedString(int index) {
return repeatedString_.get(index);
}
/**
* repeated string repeated_string = 22;
* @param index The index of the value to return.
* @return The bytes of the repeatedString at the given index.
*/
public com.google.protobuf.ByteString
getRepeatedStringBytes(int index) {
return repeatedString_.getByteString(index);
}
/**
* repeated string repeated_string = 22;
* @param index The index to set the value at.
* @param value The repeatedString to set.
* @return This builder for chaining.
*/
public Builder setRepeatedString(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringIsMutable();
repeatedString_.set(index, value);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* repeated string repeated_string = 22;
* @param value The repeatedString to add.
* @return This builder for chaining.
*/
public Builder addRepeatedString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
* repeated string repeated_string = 22;
* @param values The repeatedString to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedString(
java.lang.Iterablerepeated string repeated_string = 22;
* @return This builder for chaining.
*/
public Builder clearRepeatedString() {
repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);;
onChanged();
return this;
}
/**
* repeated string repeated_string = 22;
* @param value The bytes of the repeatedString to add.
* @return This builder for chaining.
*/
public Builder addRepeatedStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
bitField0_ |= 0x00008000;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufListrepeated bytes repeated_bytes = 23;
* @return A list containing the repeatedBytes.
*/
public java.util.Listrepeated bytes repeated_bytes = 23;
* @return The count of repeatedBytes.
*/
public int getRepeatedBytesCount() {
return repeatedBytes_.size();
}
/**
* repeated bytes repeated_bytes = 23;
* @param index The index of the element to return.
* @return The repeatedBytes at the given index.
*/
public com.google.protobuf.ByteString getRepeatedBytes(int index) {
return repeatedBytes_.get(index);
}
/**
* repeated bytes repeated_bytes = 23;
* @param index The index to set the value at.
* @param value The repeatedBytes to set.
* @return This builder for chaining.
*/
public Builder setRepeatedBytes(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedBytesIsMutable();
repeatedBytes_.set(index, value);
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 23;
* @param value The repeatedBytes to add.
* @return This builder for chaining.
*/
public Builder addRepeatedBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedBytesIsMutable();
repeatedBytes_.add(value);
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 23;
* @param values The repeatedBytes to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedBytes(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureRepeatedBytesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedBytes_);
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 23;
* @return This builder for chaining.
*/
public Builder clearRepeatedBytes() {
repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
private java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the repeatedNestedEnum.
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return The count of repeatedNestedEnum.
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index to set the value at.
* @param value The repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnum(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param value The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnum(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param values The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnum(
java.lang.Iterable extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum> values) {
ensureRepeatedNestedEnumIsMutable();
for (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value : values) {
repeatedNestedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return This builder for chaining.
*/
public Builder clearRepeatedNestedEnum() {
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
public int getRepeatedNestedEnumValue(int index) {
return repeatedNestedEnum_.get(index);
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnumValue(
int index, int value) {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param value The enum numeric value on the wire for repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnumValue(int value) {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param values The enum numeric values on the wire for repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnumValue(
java.lang.Iterablerepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public int getRepeatedNestedMessageCount() {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.size();
} else {
return repeatedNestedMessageBuilder_.getCount();
}
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index) {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.get(index);
} else {
return repeatedNestedMessageBuilder_.getMessage(index);
}
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder setRepeatedNestedMessage(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, value);
onChanged();
} else {
repeatedNestedMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder setRepeatedNestedMessage(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addRepeatedNestedMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(value);
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addRepeatedNestedMessage(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, value);
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addRepeatedNestedMessage(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addRepeatedNestedMessage(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addAllRepeatedNestedMessage(
java.lang.Iterable extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage> values) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedNestedMessage_);
onChanged();
} else {
repeatedNestedMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder clearRepeatedNestedMessage() {
if (repeatedNestedMessageBuilder_ == null) {
repeatedNestedMessage_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
} else {
repeatedNestedMessageBuilder_.clear();
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder removeRepeatedNestedMessage(int index) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.remove(index);
onChanged();
} else {
repeatedNestedMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder getRepeatedNestedMessageBuilder(
int index) {
return getRepeatedNestedMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index) {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.get(index); } else {
return repeatedNestedMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public java.util.List extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList() {
if (repeatedNestedMessageBuilder_ != null) {
return repeatedNestedMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedNestedMessage_);
}
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder addRepeatedNestedMessageBuilder() {
return getRepeatedNestedMessageFieldBuilder().addBuilder(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance());
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder addRepeatedNestedMessageBuilder(
int index) {
return getRepeatedNestedMessageFieldBuilder().addBuilder(
index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance());
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public int getRepeatedProto2MessageCount() {
if (repeatedProto2MessageBuilder_ == null) {
return repeatedProto2Message_.size();
} else {
return repeatedProto2MessageBuilder_.getCount();
}
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequired getRepeatedProto2Message(int index) {
if (repeatedProto2MessageBuilder_ == null) {
return repeatedProto2Message_.get(index);
} else {
return repeatedProto2MessageBuilder_.getMessage(index);
}
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder setRepeatedProto2Message(
int index, proto2_unittest.UnittestProto.TestRequired value) {
if (repeatedProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.set(index, value);
onChanged();
} else {
repeatedProto2MessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder setRepeatedProto2Message(
int index, proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.set(index, builderForValue.build());
onChanged();
} else {
repeatedProto2MessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addRepeatedProto2Message(proto2_unittest.UnittestProto.TestRequired value) {
if (repeatedProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.add(value);
onChanged();
} else {
repeatedProto2MessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addRepeatedProto2Message(
int index, proto2_unittest.UnittestProto.TestRequired value) {
if (repeatedProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.add(index, value);
onChanged();
} else {
repeatedProto2MessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addRepeatedProto2Message(
proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.add(builderForValue.build());
onChanged();
} else {
repeatedProto2MessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addRepeatedProto2Message(
int index, proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.add(index, builderForValue.build());
onChanged();
} else {
repeatedProto2MessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addAllRepeatedProto2Message(
java.lang.Iterable extends proto2_unittest.UnittestProto.TestRequired> values) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedProto2Message_);
onChanged();
} else {
repeatedProto2MessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder clearRepeatedProto2Message() {
if (repeatedProto2MessageBuilder_ == null) {
repeatedProto2Message_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00080000);
onChanged();
} else {
repeatedProto2MessageBuilder_.clear();
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder removeRepeatedProto2Message(int index) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.remove(index);
onChanged();
} else {
repeatedProto2MessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder getRepeatedProto2MessageBuilder(
int index) {
return getRepeatedProto2MessageFieldBuilder().getBuilder(index);
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedProto2MessageOrBuilder(
int index) {
if (repeatedProto2MessageBuilder_ == null) {
return repeatedProto2Message_.get(index); } else {
return repeatedProto2MessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public java.util.List extends proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getRepeatedProto2MessageOrBuilderList() {
if (repeatedProto2MessageBuilder_ != null) {
return repeatedProto2MessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedProto2Message_);
}
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder addRepeatedProto2MessageBuilder() {
return getRepeatedProto2MessageFieldBuilder().addBuilder(
proto2_unittest.UnittestProto.TestRequired.getDefaultInstance());
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder addRepeatedProto2MessageBuilder(
int index) {
return getRepeatedProto2MessageFieldBuilder().addBuilder(
index, proto2_unittest.UnittestProto.TestRequired.getDefaultInstance());
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return A list containing the packedNestedEnum.
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return The count of packedNestedEnum.
*/
public int getPackedNestedEnumCount() {
return packedNestedEnum_.size();
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param index The index of the element to return.
* @return The packedNestedEnum at the given index.
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getPackedNestedEnum(int index) {
return packedNestedEnum_converter_.convert(packedNestedEnum_.get(index));
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param index The index to set the value at.
* @param value The packedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setPackedNestedEnum(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensurePackedNestedEnumIsMutable();
packedNestedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param value The packedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addPackedNestedEnum(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensurePackedNestedEnumIsMutable();
packedNestedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param values The packedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllPackedNestedEnum(
java.lang.Iterable extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum> values) {
ensurePackedNestedEnumIsMutable();
for (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value : values) {
packedNestedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return This builder for chaining.
*/
public Builder clearPackedNestedEnum() {
packedNestedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @return A list containing the enum numeric values on the wire for packedNestedEnum.
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of packedNestedEnum at the given index.
*/
public int getPackedNestedEnumValue(int index) {
return packedNestedEnum_.get(index);
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for packedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setPackedNestedEnumValue(
int index, int value) {
ensurePackedNestedEnumIsMutable();
packedNestedEnum_.set(index, value);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param value The enum numeric value on the wire for packedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addPackedNestedEnumValue(int value) {
ensurePackedNestedEnumIsMutable();
packedNestedEnum_.add(value);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum packed_nested_enum = 27 [packed = true];
* @param values The enum numeric values on the wire for packedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllPackedNestedEnumValue(
java.lang.Iterableint32 optional_int32 = 1;
* @return The optionalInt32.
*/
int getOptionalInt32();
/**
* string optional_string = 2;
* @return The optionalString.
*/
java.lang.String getOptionalString();
/**
* string optional_string = 2;
* @return The bytes for optionalString.
*/
com.google.protobuf.ByteString
getOptionalStringBytes();
/**
* bytes optional_bytes = 3;
* @return The optionalBytes.
*/
com.google.protobuf.ByteString getOptionalBytes();
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The enum numeric value on the wire for optionalNestedEnum.
*/
int getOptionalNestedEnumValue();
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The optionalNestedEnum.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOptionalNestedEnum();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return Whether the optionalNestedMessage field is set.
*/
boolean hasOptionalNestedMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return The optionalNestedMessage.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalNestedMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder();
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return Whether the optionalProto2Message field is set.
*/
boolean hasOptionalProto2Message();
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return The optionalProto2Message.
*/
proto2_unittest.UnittestProto.TestRequired getOptionalProto2Message();
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
proto2_unittest.UnittestProto.TestRequiredOrBuilder getOptionalProto2MessageOrBuilder();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return Whether the optionalLazyMessage field is set.
*/
boolean hasOptionalLazyMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return The optionalLazyMessage.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalLazyMessage();
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder();
}
/**
* Protobuf type {@code field_presence_test.TestOptionalFieldsOnly}
*/
public static final class TestOptionalFieldsOnly extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:field_presence_test.TestOptionalFieldsOnly)
TestOptionalFieldsOnlyOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestOptionalFieldsOnly.newBuilder() to construct.
private TestOptionalFieldsOnly(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestOptionalFieldsOnly() {
optionalString_ = "";
optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
optionalNestedEnum_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestOptionalFieldsOnly();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.FieldPresenceTestProto.internal_static_field_presence_test_TestOptionalFieldsOnly_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.FieldPresenceTestProto.internal_static_field_presence_test_TestOptionalFieldsOnly_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly.class, com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly.Builder.class);
}
private int bitField0_;
public static final int OPTIONAL_INT32_FIELD_NUMBER = 1;
private int optionalInt32_ = 0;
/**
* int32 optional_int32 = 1;
* @return The optionalInt32.
*/
@java.lang.Override
public int getOptionalInt32() {
return optionalInt32_;
}
public static final int OPTIONAL_STRING_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object optionalString_ = "";
/**
* string optional_string = 2;
* @return The optionalString.
*/
@java.lang.Override
public java.lang.String getOptionalString() {
java.lang.Object ref = optionalString_;
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();
optionalString_ = s;
return s;
}
}
/**
* string optional_string = 2;
* @return The bytes for optionalString.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOptionalStringBytes() {
java.lang.Object ref = optionalString_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPTIONAL_BYTES_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes optional_bytes = 3;
* @return The optionalBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOptionalBytes() {
return optionalBytes_;
}
public static final int OPTIONAL_NESTED_ENUM_FIELD_NUMBER = 4;
private int optionalNestedEnum_ = 0;
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The enum numeric value on the wire for optionalNestedEnum.
*/
@java.lang.Override public int getOptionalNestedEnumValue() {
return optionalNestedEnum_;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The optionalNestedEnum.
*/
@java.lang.Override public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOptionalNestedEnum() {
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum result = com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.forNumber(optionalNestedEnum_);
return result == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.UNRECOGNIZED : result;
}
public static final int OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER = 5;
private com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage optionalNestedMessage_;
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return Whether the optionalNestedMessage field is set.
*/
@java.lang.Override
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return The optionalNestedMessage.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalNestedMessage() {
return optionalNestedMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() {
return optionalNestedMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
}
public static final int OPTIONAL_PROTO2_MESSAGE_FIELD_NUMBER = 6;
private proto2_unittest.UnittestProto.TestRequired optionalProto2Message_;
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return Whether the optionalProto2Message field is set.
*/
@java.lang.Override
public boolean hasOptionalProto2Message() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return The optionalProto2Message.
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequired getOptionalProto2Message() {
return optionalProto2Message_ == null ? proto2_unittest.UnittestProto.TestRequired.getDefaultInstance() : optionalProto2Message_;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getOptionalProto2MessageOrBuilder() {
return optionalProto2Message_ == null ? proto2_unittest.UnittestProto.TestRequired.getDefaultInstance() : optionalProto2Message_;
}
public static final int OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER = 7;
private com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage optionalLazyMessage_;
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return Whether the optionalLazyMessage field is set.
*/
@java.lang.Override
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return The optionalLazyMessage.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalLazyMessage() {
return optionalLazyMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() {
return optionalLazyMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOptionalProto2Message()) {
if (!getOptionalProto2Message().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (optionalInt32_ != 0) {
output.writeInt32(1, optionalInt32_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optionalString_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, optionalString_);
}
if (!optionalBytes_.isEmpty()) {
output.writeBytes(3, optionalBytes_);
}
if (optionalNestedEnum_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.FOO.getNumber()) {
output.writeEnum(4, optionalNestedEnum_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(5, getOptionalNestedMessage());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(6, getOptionalProto2Message());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getOptionalLazyMessage());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (optionalInt32_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, optionalInt32_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(optionalString_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, optionalString_);
}
if (!optionalBytes_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, optionalBytes_);
}
if (optionalNestedEnum_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.FOO.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, optionalNestedEnum_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getOptionalNestedMessage());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getOptionalProto2Message());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getOptionalLazyMessage());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly)) {
return super.equals(obj);
}
com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly other = (com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly) obj;
if (getOptionalInt32()
!= other.getOptionalInt32()) return false;
if (!getOptionalString()
.equals(other.getOptionalString())) return false;
if (!getOptionalBytes()
.equals(other.getOptionalBytes())) return false;
if (optionalNestedEnum_ != other.optionalNestedEnum_) return false;
if (hasOptionalNestedMessage() != other.hasOptionalNestedMessage()) return false;
if (hasOptionalNestedMessage()) {
if (!getOptionalNestedMessage()
.equals(other.getOptionalNestedMessage())) return false;
}
if (hasOptionalProto2Message() != other.hasOptionalProto2Message()) return false;
if (hasOptionalProto2Message()) {
if (!getOptionalProto2Message()
.equals(other.getOptionalProto2Message())) return false;
}
if (hasOptionalLazyMessage() != other.hasOptionalLazyMessage()) return false;
if (hasOptionalLazyMessage()) {
if (!getOptionalLazyMessage()
.equals(other.getOptionalLazyMessage())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + OPTIONAL_INT32_FIELD_NUMBER;
hash = (53 * hash) + getOptionalInt32();
hash = (37 * hash) + OPTIONAL_STRING_FIELD_NUMBER;
hash = (53 * hash) + getOptionalString().hashCode();
hash = (37 * hash) + OPTIONAL_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getOptionalBytes().hashCode();
hash = (37 * hash) + OPTIONAL_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + optionalNestedEnum_;
if (hasOptionalNestedMessage()) {
hash = (37 * hash) + OPTIONAL_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalNestedMessage().hashCode();
}
if (hasOptionalProto2Message()) {
hash = (37 * hash) + OPTIONAL_PROTO2_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalProto2Message().hashCode();
}
if (hasOptionalLazyMessage()) {
hash = (37 * hash) + OPTIONAL_LAZY_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getOptionalLazyMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code field_presence_test.TestOptionalFieldsOnly}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderint32 optional_int32 = 1;
* @return The optionalInt32.
*/
@java.lang.Override
public int getOptionalInt32() {
return optionalInt32_;
}
/**
* int32 optional_int32 = 1;
* @param value The optionalInt32 to set.
* @return This builder for chaining.
*/
public Builder setOptionalInt32(int value) {
optionalInt32_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* int32 optional_int32 = 1;
* @return This builder for chaining.
*/
public Builder clearOptionalInt32() {
bitField0_ = (bitField0_ & ~0x00000001);
optionalInt32_ = 0;
onChanged();
return this;
}
private java.lang.Object optionalString_ = "";
/**
* string optional_string = 2;
* @return The optionalString.
*/
public java.lang.String getOptionalString() {
java.lang.Object ref = optionalString_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
optionalString_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string optional_string = 2;
* @return The bytes for optionalString.
*/
public com.google.protobuf.ByteString
getOptionalStringBytes() {
java.lang.Object ref = optionalString_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
optionalString_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string optional_string = 2;
* @param value The optionalString to set.
* @return This builder for chaining.
*/
public Builder setOptionalString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
optionalString_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* string optional_string = 2;
* @return This builder for chaining.
*/
public Builder clearOptionalString() {
optionalString_ = getDefaultInstance().getOptionalString();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* string optional_string = 2;
* @param value The bytes for optionalString to set.
* @return This builder for chaining.
*/
public Builder setOptionalStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
optionalString_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.ByteString optionalBytes_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes optional_bytes = 3;
* @return The optionalBytes.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOptionalBytes() {
return optionalBytes_;
}
/**
* bytes optional_bytes = 3;
* @param value The optionalBytes to set.
* @return This builder for chaining.
*/
public Builder setOptionalBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
optionalBytes_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* bytes optional_bytes = 3;
* @return This builder for chaining.
*/
public Builder clearOptionalBytes() {
bitField0_ = (bitField0_ & ~0x00000004);
optionalBytes_ = getDefaultInstance().getOptionalBytes();
onChanged();
return this;
}
private int optionalNestedEnum_ = 0;
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The enum numeric value on the wire for optionalNestedEnum.
*/
@java.lang.Override public int getOptionalNestedEnumValue() {
return optionalNestedEnum_;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @param value The enum numeric value on the wire for optionalNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setOptionalNestedEnumValue(int value) {
optionalNestedEnum_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return The optionalNestedEnum.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getOptionalNestedEnum() {
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum result = com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.forNumber(optionalNestedEnum_);
return result == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum.UNRECOGNIZED : result;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @param value The optionalNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setOptionalNestedEnum(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
optionalNestedEnum_ = value.getNumber();
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedEnum optional_nested_enum = 4;
* @return This builder for chaining.
*/
public Builder clearOptionalNestedEnum() {
bitField0_ = (bitField0_ & ~0x00000008);
optionalNestedEnum_ = 0;
onChanged();
return this;
}
private com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage optionalNestedMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder> optionalNestedMessageBuilder_;
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return Whether the optionalNestedMessage field is set.
*/
public boolean hasOptionalNestedMessage() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
* @return The optionalNestedMessage.
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalNestedMessage() {
if (optionalNestedMessageBuilder_ == null) {
return optionalNestedMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
} else {
return optionalNestedMessageBuilder_.getMessage();
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public Builder setOptionalNestedMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (optionalNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalNestedMessage_ = value;
} else {
optionalNestedMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public Builder setOptionalNestedMessage(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessage_ = builderForValue.build();
} else {
optionalNestedMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public Builder mergeOptionalNestedMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (optionalNestedMessageBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
optionalNestedMessage_ != null &&
optionalNestedMessage_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance()) {
getOptionalNestedMessageBuilder().mergeFrom(value);
} else {
optionalNestedMessage_ = value;
}
} else {
optionalNestedMessageBuilder_.mergeFrom(value);
}
if (optionalNestedMessage_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public Builder clearOptionalNestedMessage() {
bitField0_ = (bitField0_ & ~0x00000010);
optionalNestedMessage_ = null;
if (optionalNestedMessageBuilder_ != null) {
optionalNestedMessageBuilder_.dispose();
optionalNestedMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder getOptionalNestedMessageBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getOptionalNestedMessageFieldBuilder().getBuilder();
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalNestedMessageOrBuilder() {
if (optionalNestedMessageBuilder_ != null) {
return optionalNestedMessageBuilder_.getMessageOrBuilder();
} else {
return optionalNestedMessage_ == null ?
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalNestedMessage_;
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_nested_message = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getOptionalNestedMessageFieldBuilder() {
if (optionalNestedMessageBuilder_ == null) {
optionalNestedMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>(
getOptionalNestedMessage(),
getParentForChildren(),
isClean());
optionalNestedMessage_ = null;
}
return optionalNestedMessageBuilder_;
}
private proto2_unittest.UnittestProto.TestRequired optionalProto2Message_;
private com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder> optionalProto2MessageBuilder_;
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return Whether the optionalProto2Message field is set.
*/
public boolean hasOptionalProto2Message() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
* @return The optionalProto2Message.
*/
public proto2_unittest.UnittestProto.TestRequired getOptionalProto2Message() {
if (optionalProto2MessageBuilder_ == null) {
return optionalProto2Message_ == null ? proto2_unittest.UnittestProto.TestRequired.getDefaultInstance() : optionalProto2Message_;
} else {
return optionalProto2MessageBuilder_.getMessage();
}
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public Builder setOptionalProto2Message(proto2_unittest.UnittestProto.TestRequired value) {
if (optionalProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalProto2Message_ = value;
} else {
optionalProto2MessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public Builder setOptionalProto2Message(
proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (optionalProto2MessageBuilder_ == null) {
optionalProto2Message_ = builderForValue.build();
} else {
optionalProto2MessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public Builder mergeOptionalProto2Message(proto2_unittest.UnittestProto.TestRequired value) {
if (optionalProto2MessageBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
optionalProto2Message_ != null &&
optionalProto2Message_ != proto2_unittest.UnittestProto.TestRequired.getDefaultInstance()) {
getOptionalProto2MessageBuilder().mergeFrom(value);
} else {
optionalProto2Message_ = value;
}
} else {
optionalProto2MessageBuilder_.mergeFrom(value);
}
if (optionalProto2Message_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public Builder clearOptionalProto2Message() {
bitField0_ = (bitField0_ & ~0x00000020);
optionalProto2Message_ = null;
if (optionalProto2MessageBuilder_ != null) {
optionalProto2MessageBuilder_.dispose();
optionalProto2MessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder getOptionalProto2MessageBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getOptionalProto2MessageFieldBuilder().getBuilder();
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getOptionalProto2MessageOrBuilder() {
if (optionalProto2MessageBuilder_ != null) {
return optionalProto2MessageBuilder_.getMessageOrBuilder();
} else {
return optionalProto2Message_ == null ?
proto2_unittest.UnittestProto.TestRequired.getDefaultInstance() : optionalProto2Message_;
}
}
/**
* .proto2_unittest.TestRequired optional_proto2_message = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getOptionalProto2MessageFieldBuilder() {
if (optionalProto2MessageBuilder_ == null) {
optionalProto2MessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
proto2_unittest.UnittestProto.TestRequired, proto2_unittest.UnittestProto.TestRequired.Builder, proto2_unittest.UnittestProto.TestRequiredOrBuilder>(
getOptionalProto2Message(),
getParentForChildren(),
isClean());
optionalProto2Message_ = null;
}
return optionalProto2MessageBuilder_;
}
private com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage optionalLazyMessage_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder> optionalLazyMessageBuilder_;
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return Whether the optionalLazyMessage field is set.
*/
public boolean hasOptionalLazyMessage() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
* @return The optionalLazyMessage.
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getOptionalLazyMessage() {
if (optionalLazyMessageBuilder_ == null) {
return optionalLazyMessage_ == null ? com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
} else {
return optionalLazyMessageBuilder_.getMessage();
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public Builder setOptionalLazyMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (optionalLazyMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
optionalLazyMessage_ = value;
} else {
optionalLazyMessageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public Builder setOptionalLazyMessage(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessage_ = builderForValue.build();
} else {
optionalLazyMessageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public Builder mergeOptionalLazyMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (optionalLazyMessageBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
optionalLazyMessage_ != null &&
optionalLazyMessage_ != com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance()) {
getOptionalLazyMessageBuilder().mergeFrom(value);
} else {
optionalLazyMessage_ = value;
}
} else {
optionalLazyMessageBuilder_.mergeFrom(value);
}
if (optionalLazyMessage_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public Builder clearOptionalLazyMessage() {
bitField0_ = (bitField0_ & ~0x00000040);
optionalLazyMessage_ = null;
if (optionalLazyMessageBuilder_ != null) {
optionalLazyMessageBuilder_.dispose();
optionalLazyMessageBuilder_ = null;
}
onChanged();
return this;
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder getOptionalLazyMessageBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getOptionalLazyMessageFieldBuilder().getBuilder();
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getOptionalLazyMessageOrBuilder() {
if (optionalLazyMessageBuilder_ != null) {
return optionalLazyMessageBuilder_.getMessageOrBuilder();
} else {
return optionalLazyMessage_ == null ?
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance() : optionalLazyMessage_;
}
}
/**
* .field_presence_test.TestAllTypes.NestedMessage optional_lazy_message = 7 [lazy = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getOptionalLazyMessageFieldBuilder() {
if (optionalLazyMessageBuilder_ == null) {
optionalLazyMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>(
getOptionalLazyMessage(),
getParentForChildren(),
isClean());
optionalLazyMessage_ = null;
}
return optionalLazyMessageBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:field_presence_test.TestOptionalFieldsOnly)
}
// @@protoc_insertion_point(class_scope:field_presence_test.TestOptionalFieldsOnly)
private static final com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly();
}
public static com.google.protobuf.FieldPresenceTestProto.TestOptionalFieldsOnly getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parserrepeated int32 repeated_int32 = 21;
* @return A list containing the repeatedInt32.
*/
java.util.Listrepeated int32 repeated_int32 = 21;
* @return The count of repeatedInt32.
*/
int getRepeatedInt32Count();
/**
* repeated int32 repeated_int32 = 21;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
int getRepeatedInt32(int index);
/**
* repeated string repeated_string = 22;
* @return A list containing the repeatedString.
*/
java.util.Listrepeated string repeated_string = 22;
* @return The count of repeatedString.
*/
int getRepeatedStringCount();
/**
* repeated string repeated_string = 22;
* @param index The index of the element to return.
* @return The repeatedString at the given index.
*/
java.lang.String getRepeatedString(int index);
/**
* repeated string repeated_string = 22;
* @param index The index of the value to return.
* @return The bytes of the repeatedString at the given index.
*/
com.google.protobuf.ByteString
getRepeatedStringBytes(int index);
/**
* repeated bytes repeated_bytes = 23;
* @return A list containing the repeatedBytes.
*/
java.util.Listrepeated bytes repeated_bytes = 23;
* @return The count of repeatedBytes.
*/
int getRepeatedBytesCount();
/**
* repeated bytes repeated_bytes = 23;
* @param index The index of the element to return.
* @return The repeatedBytes at the given index.
*/
com.google.protobuf.ByteString getRepeatedBytes(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the repeatedNestedEnum.
*/
java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return The count of repeatedNestedEnum.
*/
int getRepeatedNestedEnumCount();
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
int getRepeatedNestedEnumValue(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
java.util.Listrepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index);
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
int getRepeatedNestedMessageCount();
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
java.util.List extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList();
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index);
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
proto2_unittest.UnittestProto.TestRequired getRepeatedProto2Message(int index);
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
int getRepeatedProto2MessageCount();
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
java.util.List extends proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getRepeatedProto2MessageOrBuilderList();
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
proto2_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedProto2MessageOrBuilder(
int index);
}
/**
* Protobuf type {@code field_presence_test.TestRepeatedFieldsOnly}
*/
public static final class TestRepeatedFieldsOnly extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:field_presence_test.TestRepeatedFieldsOnly)
TestRepeatedFieldsOnlyOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestRepeatedFieldsOnly.newBuilder() to construct.
private TestRepeatedFieldsOnly(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestRepeatedFieldsOnly() {
repeatedInt32_ = emptyIntList();
repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class);
repeatedNestedEnum_ = java.util.Collections.emptyList();
repeatedNestedMessage_ = java.util.Collections.emptyList();
repeatedProto2Message_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestRepeatedFieldsOnly();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.FieldPresenceTestProto.internal_static_field_presence_test_TestRepeatedFieldsOnly_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.FieldPresenceTestProto.internal_static_field_presence_test_TestRepeatedFieldsOnly_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly.class, com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly.Builder.class);
}
public static final int REPEATED_INT32_FIELD_NUMBER = 21;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedInt32_ =
emptyIntList();
/**
* repeated int32 repeated_int32 = 21;
* @return A list containing the repeatedInt32.
*/
@java.lang.Override
public java.util.Listrepeated int32 repeated_int32 = 21;
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 21;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
private int repeatedInt32MemoizedSerializedSize = -1;
public static final int REPEATED_STRING_FIELD_NUMBER = 22;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
* repeated string repeated_string = 22;
* @return A list containing the repeatedString.
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringList() {
return repeatedString_;
}
/**
* repeated string repeated_string = 22;
* @return The count of repeatedString.
*/
public int getRepeatedStringCount() {
return repeatedString_.size();
}
/**
* repeated string repeated_string = 22;
* @param index The index of the element to return.
* @return The repeatedString at the given index.
*/
public java.lang.String getRepeatedString(int index) {
return repeatedString_.get(index);
}
/**
* repeated string repeated_string = 22;
* @param index The index of the value to return.
* @return The bytes of the repeatedString at the given index.
*/
public com.google.protobuf.ByteString
getRepeatedStringBytes(int index) {
return repeatedString_.getByteString(index);
}
public static final int REPEATED_BYTES_FIELD_NUMBER = 23;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.ProtobufListrepeated bytes repeated_bytes = 23;
* @return A list containing the repeatedBytes.
*/
@java.lang.Override
public java.util.Listrepeated bytes repeated_bytes = 23;
* @return The count of repeatedBytes.
*/
public int getRepeatedBytesCount() {
return repeatedBytes_.size();
}
/**
* repeated bytes repeated_bytes = 23;
* @param index The index of the element to return.
* @return The repeatedBytes at the given index.
*/
public com.google.protobuf.ByteString getRepeatedBytes(int index) {
return repeatedBytes_.get(index);
}
public static final int REPEATED_NESTED_ENUM_FIELD_NUMBER = 24;
@SuppressWarnings("serial")
private java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the repeatedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return The count of repeatedNestedEnum.
*/
@java.lang.Override
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
@java.lang.Override
public int getRepeatedNestedEnumValue(int index) {
return repeatedNestedEnum_.get(index);
}
private int repeatedNestedEnumMemoizedSerializedSize;
public static final int REPEATED_NESTED_MESSAGE_FIELD_NUMBER = 25;
@SuppressWarnings("serial")
private java.util.Listrepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public java.util.List extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList() {
return repeatedNestedMessage_;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public int getRepeatedNestedMessageCount() {
return repeatedNestedMessage_.size();
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index) {
return repeatedNestedMessage_.get(index);
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
@java.lang.Override
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index) {
return repeatedNestedMessage_.get(index);
}
public static final int REPEATED_PROTO2_MESSAGE_FIELD_NUMBER = 26;
@SuppressWarnings("serial")
private java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public java.util.List extends proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getRepeatedProto2MessageOrBuilderList() {
return repeatedProto2Message_;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public int getRepeatedProto2MessageCount() {
return repeatedProto2Message_.size();
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequired getRepeatedProto2Message(int index) {
return repeatedProto2Message_.get(index);
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
@java.lang.Override
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedProto2MessageOrBuilder(
int index) {
return repeatedProto2Message_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getRepeatedProto2MessageCount(); i++) {
if (!getRepeatedProto2Message(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getRepeatedInt32List().size() > 0) {
output.writeUInt32NoTag(170);
output.writeUInt32NoTag(repeatedInt32MemoizedSerializedSize);
}
for (int i = 0; i < repeatedInt32_.size(); i++) {
output.writeInt32NoTag(repeatedInt32_.getInt(i));
}
for (int i = 0; i < repeatedString_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 22, repeatedString_.getRaw(i));
}
for (int i = 0; i < repeatedBytes_.size(); i++) {
output.writeBytes(23, repeatedBytes_.get(i));
}
if (getRepeatedNestedEnumList().size() > 0) {
output.writeUInt32NoTag(194);
output.writeUInt32NoTag(repeatedNestedEnumMemoizedSerializedSize);
}
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
output.writeEnumNoTag(repeatedNestedEnum_.get(i));
}
for (int i = 0; i < repeatedNestedMessage_.size(); i++) {
output.writeMessage(25, repeatedNestedMessage_.get(i));
}
for (int i = 0; i < repeatedProto2Message_.size(); i++) {
output.writeMessage(26, repeatedProto2Message_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < repeatedInt32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(repeatedInt32_.getInt(i));
}
size += dataSize;
if (!getRepeatedInt32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedInt32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < repeatedString_.size(); i++) {
dataSize += computeStringSizeNoTag(repeatedString_.getRaw(i));
}
size += dataSize;
size += 2 * getRepeatedStringList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedBytes_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(repeatedBytes_.get(i));
}
size += dataSize;
size += 2 * getRepeatedBytesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedNestedEnum_.get(i));
}
size += dataSize;
if (!getRepeatedNestedEnumList().isEmpty()) { size += 2;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}repeatedNestedEnumMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < repeatedNestedMessage_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(25, repeatedNestedMessage_.get(i));
}
for (int i = 0; i < repeatedProto2Message_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(26, repeatedProto2Message_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly)) {
return super.equals(obj);
}
com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly other = (com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly) obj;
if (!getRepeatedInt32List()
.equals(other.getRepeatedInt32List())) return false;
if (!getRepeatedStringList()
.equals(other.getRepeatedStringList())) return false;
if (!getRepeatedBytesList()
.equals(other.getRepeatedBytesList())) return false;
if (!repeatedNestedEnum_.equals(other.repeatedNestedEnum_)) return false;
if (!getRepeatedNestedMessageList()
.equals(other.getRepeatedNestedMessageList())) return false;
if (!getRepeatedProto2MessageList()
.equals(other.getRepeatedProto2MessageList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRepeatedInt32Count() > 0) {
hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedInt32List().hashCode();
}
if (getRepeatedStringCount() > 0) {
hash = (37 * hash) + REPEATED_STRING_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedStringList().hashCode();
}
if (getRepeatedBytesCount() > 0) {
hash = (37 * hash) + REPEATED_BYTES_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedBytesList().hashCode();
}
if (getRepeatedNestedEnumCount() > 0) {
hash = (37 * hash) + REPEATED_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedNestedEnum_.hashCode();
}
if (getRepeatedNestedMessageCount() > 0) {
hash = (37 * hash) + REPEATED_NESTED_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedNestedMessageList().hashCode();
}
if (getRepeatedProto2MessageCount() > 0) {
hash = (37 * hash) + REPEATED_PROTO2_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedProto2MessageList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.FieldPresenceTestProto.TestRepeatedFieldsOnly prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code field_presence_test.TestRepeatedFieldsOnly}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrepeated int32 repeated_int32 = 21;
* @return A list containing the repeatedInt32.
*/
public java.util.Listrepeated int32 repeated_int32 = 21;
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 21;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
/**
* repeated int32 repeated_int32 = 21;
* @param index The index to set the value at.
* @param value The repeatedInt32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedInt32(
int index, int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.setInt(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 21;
* @param value The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedInt32(int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.addInt(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 21;
* @param values The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedInt32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedInt32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt32_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 21;
* @return This builder for chaining.
*/
public Builder clearRepeatedInt32() {
repeatedInt32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRepeatedStringIsMutable() {
if (!repeatedString_.isModifiable()) {
repeatedString_ = new com.google.protobuf.LazyStringArrayList(repeatedString_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated string repeated_string = 22;
* @return A list containing the repeatedString.
*/
public com.google.protobuf.ProtocolStringList
getRepeatedStringList() {
repeatedString_.makeImmutable();
return repeatedString_;
}
/**
* repeated string repeated_string = 22;
* @return The count of repeatedString.
*/
public int getRepeatedStringCount() {
return repeatedString_.size();
}
/**
* repeated string repeated_string = 22;
* @param index The index of the element to return.
* @return The repeatedString at the given index.
*/
public java.lang.String getRepeatedString(int index) {
return repeatedString_.get(index);
}
/**
* repeated string repeated_string = 22;
* @param index The index of the value to return.
* @return The bytes of the repeatedString at the given index.
*/
public com.google.protobuf.ByteString
getRepeatedStringBytes(int index) {
return repeatedString_.getByteString(index);
}
/**
* repeated string repeated_string = 22;
* @param index The index to set the value at.
* @param value The repeatedString to set.
* @return This builder for chaining.
*/
public Builder setRepeatedString(
int index, java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringIsMutable();
repeatedString_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string repeated_string = 22;
* @param value The repeatedString to add.
* @return This builder for chaining.
*/
public Builder addRepeatedString(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated string repeated_string = 22;
* @param values The repeatedString to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedString(
java.lang.Iterablerepeated string repeated_string = 22;
* @return This builder for chaining.
*/
public Builder clearRepeatedString() {
repeatedString_ =
com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
onChanged();
return this;
}
/**
* repeated string repeated_string = 22;
* @param value The bytes of the repeatedString to add.
* @return This builder for chaining.
*/
public Builder addRepeatedStringBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ensureRepeatedStringIsMutable();
repeatedString_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.Internal.ProtobufListrepeated bytes repeated_bytes = 23;
* @return A list containing the repeatedBytes.
*/
public java.util.Listrepeated bytes repeated_bytes = 23;
* @return The count of repeatedBytes.
*/
public int getRepeatedBytesCount() {
return repeatedBytes_.size();
}
/**
* repeated bytes repeated_bytes = 23;
* @param index The index of the element to return.
* @return The repeatedBytes at the given index.
*/
public com.google.protobuf.ByteString getRepeatedBytes(int index) {
return repeatedBytes_.get(index);
}
/**
* repeated bytes repeated_bytes = 23;
* @param index The index to set the value at.
* @param value The repeatedBytes to set.
* @return This builder for chaining.
*/
public Builder setRepeatedBytes(
int index, com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedBytesIsMutable();
repeatedBytes_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 23;
* @param value The repeatedBytes to add.
* @return This builder for chaining.
*/
public Builder addRepeatedBytes(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
ensureRepeatedBytesIsMutable();
repeatedBytes_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 23;
* @param values The repeatedBytes to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedBytes(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureRepeatedBytesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedBytes_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated bytes repeated_bytes = 23;
* @return This builder for chaining.
*/
public Builder clearRepeatedBytes() {
repeatedBytes_ = emptyList(com.google.protobuf.ByteString.class);
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the repeatedNestedEnum.
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return The count of repeatedNestedEnum.
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index to set the value at.
* @param value The repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnum(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param value The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnum(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param values The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnum(
java.lang.Iterable extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum> values) {
ensureRepeatedNestedEnumIsMutable();
for (com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedEnum value : values) {
repeatedNestedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return This builder for chaining.
*/
public Builder clearRepeatedNestedEnum() {
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
public int getRepeatedNestedEnumValue(int index) {
return repeatedNestedEnum_.get(index);
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnumValue(
int index, int value) {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param value The enum numeric value on the wire for repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnumValue(int value) {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value);
onChanged();
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedEnum repeated_nested_enum = 24;
* @param values The enum numeric values on the wire for repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnumValue(
java.lang.Iterablerepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public java.util.Listrepeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public int getRepeatedNestedMessageCount() {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.size();
} else {
return repeatedNestedMessageBuilder_.getCount();
}
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage getRepeatedNestedMessage(int index) {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.get(index);
} else {
return repeatedNestedMessageBuilder_.getMessage(index);
}
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder setRepeatedNestedMessage(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, value);
onChanged();
} else {
repeatedNestedMessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder setRepeatedNestedMessage(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.set(index, builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addRepeatedNestedMessage(com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(value);
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addRepeatedNestedMessage(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage value) {
if (repeatedNestedMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, value);
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addRepeatedNestedMessage(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addRepeatedNestedMessage(
int index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder builderForValue) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.add(index, builderForValue.build());
onChanged();
} else {
repeatedNestedMessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder addAllRepeatedNestedMessage(
java.lang.Iterable extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage> values) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedNestedMessage_);
onChanged();
} else {
repeatedNestedMessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder clearRepeatedNestedMessage() {
if (repeatedNestedMessageBuilder_ == null) {
repeatedNestedMessage_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
repeatedNestedMessageBuilder_.clear();
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public Builder removeRepeatedNestedMessage(int index) {
if (repeatedNestedMessageBuilder_ == null) {
ensureRepeatedNestedMessageIsMutable();
repeatedNestedMessage_.remove(index);
onChanged();
} else {
repeatedNestedMessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder getRepeatedNestedMessageBuilder(
int index) {
return getRepeatedNestedMessageFieldBuilder().getBuilder(index);
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder getRepeatedNestedMessageOrBuilder(
int index) {
if (repeatedNestedMessageBuilder_ == null) {
return repeatedNestedMessage_.get(index); } else {
return repeatedNestedMessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public java.util.List extends com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessageOrBuilder>
getRepeatedNestedMessageOrBuilderList() {
if (repeatedNestedMessageBuilder_ != null) {
return repeatedNestedMessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedNestedMessage_);
}
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder addRepeatedNestedMessageBuilder() {
return getRepeatedNestedMessageFieldBuilder().addBuilder(
com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance());
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.Builder addRepeatedNestedMessageBuilder(
int index) {
return getRepeatedNestedMessageFieldBuilder().addBuilder(
index, com.google.protobuf.FieldPresenceTestProto.TestAllTypes.NestedMessage.getDefaultInstance());
}
/**
* repeated .field_presence_test.TestAllTypes.NestedMessage repeated_nested_message = 25;
*/
public java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public java.util.Listrepeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public int getRepeatedProto2MessageCount() {
if (repeatedProto2MessageBuilder_ == null) {
return repeatedProto2Message_.size();
} else {
return repeatedProto2MessageBuilder_.getCount();
}
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequired getRepeatedProto2Message(int index) {
if (repeatedProto2MessageBuilder_ == null) {
return repeatedProto2Message_.get(index);
} else {
return repeatedProto2MessageBuilder_.getMessage(index);
}
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder setRepeatedProto2Message(
int index, proto2_unittest.UnittestProto.TestRequired value) {
if (repeatedProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.set(index, value);
onChanged();
} else {
repeatedProto2MessageBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder setRepeatedProto2Message(
int index, proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.set(index, builderForValue.build());
onChanged();
} else {
repeatedProto2MessageBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addRepeatedProto2Message(proto2_unittest.UnittestProto.TestRequired value) {
if (repeatedProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.add(value);
onChanged();
} else {
repeatedProto2MessageBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addRepeatedProto2Message(
int index, proto2_unittest.UnittestProto.TestRequired value) {
if (repeatedProto2MessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.add(index, value);
onChanged();
} else {
repeatedProto2MessageBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addRepeatedProto2Message(
proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.add(builderForValue.build());
onChanged();
} else {
repeatedProto2MessageBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addRepeatedProto2Message(
int index, proto2_unittest.UnittestProto.TestRequired.Builder builderForValue) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.add(index, builderForValue.build());
onChanged();
} else {
repeatedProto2MessageBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder addAllRepeatedProto2Message(
java.lang.Iterable extends proto2_unittest.UnittestProto.TestRequired> values) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedProto2Message_);
onChanged();
} else {
repeatedProto2MessageBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder clearRepeatedProto2Message() {
if (repeatedProto2MessageBuilder_ == null) {
repeatedProto2Message_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
repeatedProto2MessageBuilder_.clear();
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public Builder removeRepeatedProto2Message(int index) {
if (repeatedProto2MessageBuilder_ == null) {
ensureRepeatedProto2MessageIsMutable();
repeatedProto2Message_.remove(index);
onChanged();
} else {
repeatedProto2MessageBuilder_.remove(index);
}
return this;
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder getRepeatedProto2MessageBuilder(
int index) {
return getRepeatedProto2MessageFieldBuilder().getBuilder(index);
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequiredOrBuilder getRepeatedProto2MessageOrBuilder(
int index) {
if (repeatedProto2MessageBuilder_ == null) {
return repeatedProto2Message_.get(index); } else {
return repeatedProto2MessageBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public java.util.List extends proto2_unittest.UnittestProto.TestRequiredOrBuilder>
getRepeatedProto2MessageOrBuilderList() {
if (repeatedProto2MessageBuilder_ != null) {
return repeatedProto2MessageBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(repeatedProto2Message_);
}
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder addRepeatedProto2MessageBuilder() {
return getRepeatedProto2MessageFieldBuilder().addBuilder(
proto2_unittest.UnittestProto.TestRequired.getDefaultInstance());
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public proto2_unittest.UnittestProto.TestRequired.Builder addRepeatedProto2MessageBuilder(
int index) {
return getRepeatedProto2MessageFieldBuilder().addBuilder(
index, proto2_unittest.UnittestProto.TestRequired.getDefaultInstance());
}
/**
* repeated .proto2_unittest.TestRequired repeated_proto2_message = 26;
*/
public java.util.Listrepeated int32 repeated_int32 = 31;
* @return A list containing the repeatedInt32.
*/
java.util.Listrepeated int32 repeated_int32 = 31;
* @return The count of repeatedInt32.
*/
int getRepeatedInt32Count();
/**
* repeated int32 repeated_int32 = 31;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
int getRepeatedInt32(int index);
/**
* repeated int64 repeated_int64 = 32;
* @return A list containing the repeatedInt64.
*/
java.util.Listrepeated int64 repeated_int64 = 32;
* @return The count of repeatedInt64.
*/
int getRepeatedInt64Count();
/**
* repeated int64 repeated_int64 = 32;
* @param index The index of the element to return.
* @return The repeatedInt64 at the given index.
*/
long getRepeatedInt64(int index);
/**
* repeated uint32 repeated_uint32 = 33;
* @return A list containing the repeatedUint32.
*/
java.util.Listrepeated uint32 repeated_uint32 = 33;
* @return The count of repeatedUint32.
*/
int getRepeatedUint32Count();
/**
* repeated uint32 repeated_uint32 = 33;
* @param index The index of the element to return.
* @return The repeatedUint32 at the given index.
*/
int getRepeatedUint32(int index);
/**
* repeated uint64 repeated_uint64 = 34;
* @return A list containing the repeatedUint64.
*/
java.util.Listrepeated uint64 repeated_uint64 = 34;
* @return The count of repeatedUint64.
*/
int getRepeatedUint64Count();
/**
* repeated uint64 repeated_uint64 = 34;
* @param index The index of the element to return.
* @return The repeatedUint64 at the given index.
*/
long getRepeatedUint64(int index);
/**
* repeated sint32 repeated_sint32 = 35;
* @return A list containing the repeatedSint32.
*/
java.util.Listrepeated sint32 repeated_sint32 = 35;
* @return The count of repeatedSint32.
*/
int getRepeatedSint32Count();
/**
* repeated sint32 repeated_sint32 = 35;
* @param index The index of the element to return.
* @return The repeatedSint32 at the given index.
*/
int getRepeatedSint32(int index);
/**
* repeated sint64 repeated_sint64 = 36;
* @return A list containing the repeatedSint64.
*/
java.util.Listrepeated sint64 repeated_sint64 = 36;
* @return The count of repeatedSint64.
*/
int getRepeatedSint64Count();
/**
* repeated sint64 repeated_sint64 = 36;
* @param index The index of the element to return.
* @return The repeatedSint64 at the given index.
*/
long getRepeatedSint64(int index);
/**
* repeated fixed32 repeated_fixed32 = 37;
* @return A list containing the repeatedFixed32.
*/
java.util.Listrepeated fixed32 repeated_fixed32 = 37;
* @return The count of repeatedFixed32.
*/
int getRepeatedFixed32Count();
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param index The index of the element to return.
* @return The repeatedFixed32 at the given index.
*/
int getRepeatedFixed32(int index);
/**
* repeated fixed64 repeated_fixed64 = 38;
* @return A list containing the repeatedFixed64.
*/
java.util.Listrepeated fixed64 repeated_fixed64 = 38;
* @return The count of repeatedFixed64.
*/
int getRepeatedFixed64Count();
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param index The index of the element to return.
* @return The repeatedFixed64 at the given index.
*/
long getRepeatedFixed64(int index);
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @return A list containing the repeatedSfixed32.
*/
java.util.Listrepeated sfixed32 repeated_sfixed32 = 39;
* @return The count of repeatedSfixed32.
*/
int getRepeatedSfixed32Count();
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param index The index of the element to return.
* @return The repeatedSfixed32 at the given index.
*/
int getRepeatedSfixed32(int index);
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @return A list containing the repeatedSfixed64.
*/
java.util.Listrepeated sfixed64 repeated_sfixed64 = 40;
* @return The count of repeatedSfixed64.
*/
int getRepeatedSfixed64Count();
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param index The index of the element to return.
* @return The repeatedSfixed64 at the given index.
*/
long getRepeatedSfixed64(int index);
/**
* repeated float repeated_float = 41;
* @return A list containing the repeatedFloat.
*/
java.util.Listrepeated float repeated_float = 41;
* @return The count of repeatedFloat.
*/
int getRepeatedFloatCount();
/**
* repeated float repeated_float = 41;
* @param index The index of the element to return.
* @return The repeatedFloat at the given index.
*/
float getRepeatedFloat(int index);
/**
* repeated double repeated_double = 42;
* @return A list containing the repeatedDouble.
*/
java.util.Listrepeated double repeated_double = 42;
* @return The count of repeatedDouble.
*/
int getRepeatedDoubleCount();
/**
* repeated double repeated_double = 42;
* @param index The index of the element to return.
* @return The repeatedDouble at the given index.
*/
double getRepeatedDouble(int index);
/**
* repeated bool repeated_bool = 43;
* @return A list containing the repeatedBool.
*/
java.util.Listrepeated bool repeated_bool = 43;
* @return The count of repeatedBool.
*/
int getRepeatedBoolCount();
/**
* repeated bool repeated_bool = 43;
* @param index The index of the element to return.
* @return The repeatedBool at the given index.
*/
boolean getRepeatedBool(int index);
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return A list containing the repeatedNestedEnum.
*/
java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return The count of repeatedNestedEnum.
*/
int getRepeatedNestedEnumCount();
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index);
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
int getRepeatedNestedEnumValue(int index);
}
/**
* Protobuf type {@code packed_field_test.TestAllTypes}
*/
public static final class TestAllTypes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:packed_field_test.TestAllTypes)
TestAllTypesOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestAllTypes.newBuilder() to construct.
private TestAllTypes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestAllTypes() {
repeatedInt32_ = emptyIntList();
repeatedInt64_ = emptyLongList();
repeatedUint32_ = emptyIntList();
repeatedUint64_ = emptyLongList();
repeatedSint32_ = emptyIntList();
repeatedSint64_ = emptyLongList();
repeatedFixed32_ = emptyIntList();
repeatedFixed64_ = emptyLongList();
repeatedSfixed32_ = emptyIntList();
repeatedSfixed64_ = emptyLongList();
repeatedFloat_ = emptyFloatList();
repeatedDouble_ = emptyDoubleList();
repeatedBool_ = emptyBooleanList();
repeatedNestedEnum_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestAllTypes();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.PackedFieldTestProto.internal_static_packed_field_test_TestAllTypes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.PackedFieldTestProto.internal_static_packed_field_test_TestAllTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.PackedFieldTestProto.TestAllTypes.class, com.google.protobuf.PackedFieldTestProto.TestAllTypes.Builder.class);
}
/**
* Protobuf enum {@code packed_field_test.TestAllTypes.NestedEnum}
*/
public enum NestedEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* FOO = 0;
*/
FOO(0),
/**
* BAR = 1;
*/
BAR(1),
/**
* BAZ = 2;
*/
BAZ(2),
UNRECOGNIZED(-1),
;
/**
* FOO = 0;
*/
public static final int FOO_VALUE = 0;
/**
* BAR = 1;
*/
public static final int BAR_VALUE = 1;
/**
* BAZ = 2;
*/
public static final int BAZ_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NestedEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static NestedEnum forNumber(int value) {
switch (value) {
case 0: return FOO;
case 1: return BAR;
case 2: return BAZ;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMaprepeated int32 repeated_int32 = 31;
* @return A list containing the repeatedInt32.
*/
@java.lang.Override
public java.util.Listrepeated int32 repeated_int32 = 31;
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 31;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
private int repeatedInt32MemoizedSerializedSize = -1;
public static final int REPEATED_INT64_FIELD_NUMBER = 32;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedInt64_ =
emptyLongList();
/**
* repeated int64 repeated_int64 = 32;
* @return A list containing the repeatedInt64.
*/
@java.lang.Override
public java.util.Listrepeated int64 repeated_int64 = 32;
* @return The count of repeatedInt64.
*/
public int getRepeatedInt64Count() {
return repeatedInt64_.size();
}
/**
* repeated int64 repeated_int64 = 32;
* @param index The index of the element to return.
* @return The repeatedInt64 at the given index.
*/
public long getRepeatedInt64(int index) {
return repeatedInt64_.getLong(index);
}
private int repeatedInt64MemoizedSerializedSize = -1;
public static final int REPEATED_UINT32_FIELD_NUMBER = 33;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedUint32_ =
emptyIntList();
/**
* repeated uint32 repeated_uint32 = 33;
* @return A list containing the repeatedUint32.
*/
@java.lang.Override
public java.util.Listrepeated uint32 repeated_uint32 = 33;
* @return The count of repeatedUint32.
*/
public int getRepeatedUint32Count() {
return repeatedUint32_.size();
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param index The index of the element to return.
* @return The repeatedUint32 at the given index.
*/
public int getRepeatedUint32(int index) {
return repeatedUint32_.getInt(index);
}
private int repeatedUint32MemoizedSerializedSize = -1;
public static final int REPEATED_UINT64_FIELD_NUMBER = 34;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedUint64_ =
emptyLongList();
/**
* repeated uint64 repeated_uint64 = 34;
* @return A list containing the repeatedUint64.
*/
@java.lang.Override
public java.util.Listrepeated uint64 repeated_uint64 = 34;
* @return The count of repeatedUint64.
*/
public int getRepeatedUint64Count() {
return repeatedUint64_.size();
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param index The index of the element to return.
* @return The repeatedUint64 at the given index.
*/
public long getRepeatedUint64(int index) {
return repeatedUint64_.getLong(index);
}
private int repeatedUint64MemoizedSerializedSize = -1;
public static final int REPEATED_SINT32_FIELD_NUMBER = 35;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedSint32_ =
emptyIntList();
/**
* repeated sint32 repeated_sint32 = 35;
* @return A list containing the repeatedSint32.
*/
@java.lang.Override
public java.util.Listrepeated sint32 repeated_sint32 = 35;
* @return The count of repeatedSint32.
*/
public int getRepeatedSint32Count() {
return repeatedSint32_.size();
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param index The index of the element to return.
* @return The repeatedSint32 at the given index.
*/
public int getRepeatedSint32(int index) {
return repeatedSint32_.getInt(index);
}
private int repeatedSint32MemoizedSerializedSize = -1;
public static final int REPEATED_SINT64_FIELD_NUMBER = 36;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedSint64_ =
emptyLongList();
/**
* repeated sint64 repeated_sint64 = 36;
* @return A list containing the repeatedSint64.
*/
@java.lang.Override
public java.util.Listrepeated sint64 repeated_sint64 = 36;
* @return The count of repeatedSint64.
*/
public int getRepeatedSint64Count() {
return repeatedSint64_.size();
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param index The index of the element to return.
* @return The repeatedSint64 at the given index.
*/
public long getRepeatedSint64(int index) {
return repeatedSint64_.getLong(index);
}
private int repeatedSint64MemoizedSerializedSize = -1;
public static final int REPEATED_FIXED32_FIELD_NUMBER = 37;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedFixed32_ =
emptyIntList();
/**
* repeated fixed32 repeated_fixed32 = 37;
* @return A list containing the repeatedFixed32.
*/
@java.lang.Override
public java.util.Listrepeated fixed32 repeated_fixed32 = 37;
* @return The count of repeatedFixed32.
*/
public int getRepeatedFixed32Count() {
return repeatedFixed32_.size();
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param index The index of the element to return.
* @return The repeatedFixed32 at the given index.
*/
public int getRepeatedFixed32(int index) {
return repeatedFixed32_.getInt(index);
}
private int repeatedFixed32MemoizedSerializedSize = -1;
public static final int REPEATED_FIXED64_FIELD_NUMBER = 38;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedFixed64_ =
emptyLongList();
/**
* repeated fixed64 repeated_fixed64 = 38;
* @return A list containing the repeatedFixed64.
*/
@java.lang.Override
public java.util.Listrepeated fixed64 repeated_fixed64 = 38;
* @return The count of repeatedFixed64.
*/
public int getRepeatedFixed64Count() {
return repeatedFixed64_.size();
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param index The index of the element to return.
* @return The repeatedFixed64 at the given index.
*/
public long getRepeatedFixed64(int index) {
return repeatedFixed64_.getLong(index);
}
private int repeatedFixed64MemoizedSerializedSize = -1;
public static final int REPEATED_SFIXED32_FIELD_NUMBER = 39;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedSfixed32_ =
emptyIntList();
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @return A list containing the repeatedSfixed32.
*/
@java.lang.Override
public java.util.Listrepeated sfixed32 repeated_sfixed32 = 39;
* @return The count of repeatedSfixed32.
*/
public int getRepeatedSfixed32Count() {
return repeatedSfixed32_.size();
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param index The index of the element to return.
* @return The repeatedSfixed32 at the given index.
*/
public int getRepeatedSfixed32(int index) {
return repeatedSfixed32_.getInt(index);
}
private int repeatedSfixed32MemoizedSerializedSize = -1;
public static final int REPEATED_SFIXED64_FIELD_NUMBER = 40;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedSfixed64_ =
emptyLongList();
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @return A list containing the repeatedSfixed64.
*/
@java.lang.Override
public java.util.Listrepeated sfixed64 repeated_sfixed64 = 40;
* @return The count of repeatedSfixed64.
*/
public int getRepeatedSfixed64Count() {
return repeatedSfixed64_.size();
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param index The index of the element to return.
* @return The repeatedSfixed64 at the given index.
*/
public long getRepeatedSfixed64(int index) {
return repeatedSfixed64_.getLong(index);
}
private int repeatedSfixed64MemoizedSerializedSize = -1;
public static final int REPEATED_FLOAT_FIELD_NUMBER = 41;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.FloatList repeatedFloat_ =
emptyFloatList();
/**
* repeated float repeated_float = 41;
* @return A list containing the repeatedFloat.
*/
@java.lang.Override
public java.util.Listrepeated float repeated_float = 41;
* @return The count of repeatedFloat.
*/
public int getRepeatedFloatCount() {
return repeatedFloat_.size();
}
/**
* repeated float repeated_float = 41;
* @param index The index of the element to return.
* @return The repeatedFloat at the given index.
*/
public float getRepeatedFloat(int index) {
return repeatedFloat_.getFloat(index);
}
private int repeatedFloatMemoizedSerializedSize = -1;
public static final int REPEATED_DOUBLE_FIELD_NUMBER = 42;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.DoubleList repeatedDouble_ =
emptyDoubleList();
/**
* repeated double repeated_double = 42;
* @return A list containing the repeatedDouble.
*/
@java.lang.Override
public java.util.Listrepeated double repeated_double = 42;
* @return The count of repeatedDouble.
*/
public int getRepeatedDoubleCount() {
return repeatedDouble_.size();
}
/**
* repeated double repeated_double = 42;
* @param index The index of the element to return.
* @return The repeatedDouble at the given index.
*/
public double getRepeatedDouble(int index) {
return repeatedDouble_.getDouble(index);
}
private int repeatedDoubleMemoizedSerializedSize = -1;
public static final int REPEATED_BOOL_FIELD_NUMBER = 43;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.BooleanList repeatedBool_ =
emptyBooleanList();
/**
* repeated bool repeated_bool = 43;
* @return A list containing the repeatedBool.
*/
@java.lang.Override
public java.util.Listrepeated bool repeated_bool = 43;
* @return The count of repeatedBool.
*/
public int getRepeatedBoolCount() {
return repeatedBool_.size();
}
/**
* repeated bool repeated_bool = 43;
* @param index The index of the element to return.
* @return The repeatedBool at the given index.
*/
public boolean getRepeatedBool(int index) {
return repeatedBool_.getBoolean(index);
}
private int repeatedBoolMemoizedSerializedSize = -1;
public static final int REPEATED_NESTED_ENUM_FIELD_NUMBER = 51;
@SuppressWarnings("serial")
private java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return A list containing the repeatedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return The count of repeatedNestedEnum.
*/
@java.lang.Override
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
@java.lang.Override
public com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
@java.lang.Override
public int getRepeatedNestedEnumValue(int index) {
return repeatedNestedEnum_.get(index);
}
private int repeatedNestedEnumMemoizedSerializedSize;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getRepeatedInt32List().size() > 0) {
output.writeUInt32NoTag(250);
output.writeUInt32NoTag(repeatedInt32MemoizedSerializedSize);
}
for (int i = 0; i < repeatedInt32_.size(); i++) {
output.writeInt32NoTag(repeatedInt32_.getInt(i));
}
if (getRepeatedInt64List().size() > 0) {
output.writeUInt32NoTag(258);
output.writeUInt32NoTag(repeatedInt64MemoizedSerializedSize);
}
for (int i = 0; i < repeatedInt64_.size(); i++) {
output.writeInt64NoTag(repeatedInt64_.getLong(i));
}
if (getRepeatedUint32List().size() > 0) {
output.writeUInt32NoTag(266);
output.writeUInt32NoTag(repeatedUint32MemoizedSerializedSize);
}
for (int i = 0; i < repeatedUint32_.size(); i++) {
output.writeUInt32NoTag(repeatedUint32_.getInt(i));
}
if (getRepeatedUint64List().size() > 0) {
output.writeUInt32NoTag(274);
output.writeUInt32NoTag(repeatedUint64MemoizedSerializedSize);
}
for (int i = 0; i < repeatedUint64_.size(); i++) {
output.writeUInt64NoTag(repeatedUint64_.getLong(i));
}
if (getRepeatedSint32List().size() > 0) {
output.writeUInt32NoTag(282);
output.writeUInt32NoTag(repeatedSint32MemoizedSerializedSize);
}
for (int i = 0; i < repeatedSint32_.size(); i++) {
output.writeSInt32NoTag(repeatedSint32_.getInt(i));
}
if (getRepeatedSint64List().size() > 0) {
output.writeUInt32NoTag(290);
output.writeUInt32NoTag(repeatedSint64MemoizedSerializedSize);
}
for (int i = 0; i < repeatedSint64_.size(); i++) {
output.writeSInt64NoTag(repeatedSint64_.getLong(i));
}
if (getRepeatedFixed32List().size() > 0) {
output.writeUInt32NoTag(298);
output.writeUInt32NoTag(repeatedFixed32MemoizedSerializedSize);
}
for (int i = 0; i < repeatedFixed32_.size(); i++) {
output.writeFixed32NoTag(repeatedFixed32_.getInt(i));
}
if (getRepeatedFixed64List().size() > 0) {
output.writeUInt32NoTag(306);
output.writeUInt32NoTag(repeatedFixed64MemoizedSerializedSize);
}
for (int i = 0; i < repeatedFixed64_.size(); i++) {
output.writeFixed64NoTag(repeatedFixed64_.getLong(i));
}
if (getRepeatedSfixed32List().size() > 0) {
output.writeUInt32NoTag(314);
output.writeUInt32NoTag(repeatedSfixed32MemoizedSerializedSize);
}
for (int i = 0; i < repeatedSfixed32_.size(); i++) {
output.writeSFixed32NoTag(repeatedSfixed32_.getInt(i));
}
if (getRepeatedSfixed64List().size() > 0) {
output.writeUInt32NoTag(322);
output.writeUInt32NoTag(repeatedSfixed64MemoizedSerializedSize);
}
for (int i = 0; i < repeatedSfixed64_.size(); i++) {
output.writeSFixed64NoTag(repeatedSfixed64_.getLong(i));
}
if (getRepeatedFloatList().size() > 0) {
output.writeUInt32NoTag(330);
output.writeUInt32NoTag(repeatedFloatMemoizedSerializedSize);
}
for (int i = 0; i < repeatedFloat_.size(); i++) {
output.writeFloatNoTag(repeatedFloat_.getFloat(i));
}
if (getRepeatedDoubleList().size() > 0) {
output.writeUInt32NoTag(338);
output.writeUInt32NoTag(repeatedDoubleMemoizedSerializedSize);
}
for (int i = 0; i < repeatedDouble_.size(); i++) {
output.writeDoubleNoTag(repeatedDouble_.getDouble(i));
}
if (getRepeatedBoolList().size() > 0) {
output.writeUInt32NoTag(346);
output.writeUInt32NoTag(repeatedBoolMemoizedSerializedSize);
}
for (int i = 0; i < repeatedBool_.size(); i++) {
output.writeBoolNoTag(repeatedBool_.getBoolean(i));
}
if (getRepeatedNestedEnumList().size() > 0) {
output.writeUInt32NoTag(410);
output.writeUInt32NoTag(repeatedNestedEnumMemoizedSerializedSize);
}
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
output.writeEnumNoTag(repeatedNestedEnum_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < repeatedInt32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(repeatedInt32_.getInt(i));
}
size += dataSize;
if (!getRepeatedInt32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedInt32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < repeatedInt64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(repeatedInt64_.getLong(i));
}
size += dataSize;
if (!getRepeatedInt64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedInt64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < repeatedUint32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(repeatedUint32_.getInt(i));
}
size += dataSize;
if (!getRepeatedUint32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedUint32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < repeatedUint64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(repeatedUint64_.getLong(i));
}
size += dataSize;
if (!getRepeatedUint64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedUint64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < repeatedSint32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(repeatedSint32_.getInt(i));
}
size += dataSize;
if (!getRepeatedSint32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedSint32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < repeatedSint64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt64SizeNoTag(repeatedSint64_.getLong(i));
}
size += dataSize;
if (!getRepeatedSint64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedSint64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedFixed32List().size();
size += dataSize;
if (!getRepeatedFixed32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedFixed32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedFixed64List().size();
size += dataSize;
if (!getRepeatedFixed64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedFixed64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedSfixed32List().size();
size += dataSize;
if (!getRepeatedSfixed32List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedSfixed32MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedSfixed64List().size();
size += dataSize;
if (!getRepeatedSfixed64List().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedSfixed64MemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedFloatList().size();
size += dataSize;
if (!getRepeatedFloatList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedFloatMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedDoubleList().size();
size += dataSize;
if (!getRepeatedDoubleList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedDoubleMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
dataSize = 1 * getRepeatedBoolList().size();
size += dataSize;
if (!getRepeatedBoolList().isEmpty()) {
size += 2;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
repeatedBoolMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedNestedEnum_.get(i));
}
size += dataSize;
if (!getRepeatedNestedEnumList().isEmpty()) { size += 2;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}repeatedNestedEnumMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.PackedFieldTestProto.TestAllTypes)) {
return super.equals(obj);
}
com.google.protobuf.PackedFieldTestProto.TestAllTypes other = (com.google.protobuf.PackedFieldTestProto.TestAllTypes) obj;
if (!getRepeatedInt32List()
.equals(other.getRepeatedInt32List())) return false;
if (!getRepeatedInt64List()
.equals(other.getRepeatedInt64List())) return false;
if (!getRepeatedUint32List()
.equals(other.getRepeatedUint32List())) return false;
if (!getRepeatedUint64List()
.equals(other.getRepeatedUint64List())) return false;
if (!getRepeatedSint32List()
.equals(other.getRepeatedSint32List())) return false;
if (!getRepeatedSint64List()
.equals(other.getRepeatedSint64List())) return false;
if (!getRepeatedFixed32List()
.equals(other.getRepeatedFixed32List())) return false;
if (!getRepeatedFixed64List()
.equals(other.getRepeatedFixed64List())) return false;
if (!getRepeatedSfixed32List()
.equals(other.getRepeatedSfixed32List())) return false;
if (!getRepeatedSfixed64List()
.equals(other.getRepeatedSfixed64List())) return false;
if (!getRepeatedFloatList()
.equals(other.getRepeatedFloatList())) return false;
if (!getRepeatedDoubleList()
.equals(other.getRepeatedDoubleList())) return false;
if (!getRepeatedBoolList()
.equals(other.getRepeatedBoolList())) return false;
if (!repeatedNestedEnum_.equals(other.repeatedNestedEnum_)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRepeatedInt32Count() > 0) {
hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedInt32List().hashCode();
}
if (getRepeatedInt64Count() > 0) {
hash = (37 * hash) + REPEATED_INT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedInt64List().hashCode();
}
if (getRepeatedUint32Count() > 0) {
hash = (37 * hash) + REPEATED_UINT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedUint32List().hashCode();
}
if (getRepeatedUint64Count() > 0) {
hash = (37 * hash) + REPEATED_UINT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedUint64List().hashCode();
}
if (getRepeatedSint32Count() > 0) {
hash = (37 * hash) + REPEATED_SINT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSint32List().hashCode();
}
if (getRepeatedSint64Count() > 0) {
hash = (37 * hash) + REPEATED_SINT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSint64List().hashCode();
}
if (getRepeatedFixed32Count() > 0) {
hash = (37 * hash) + REPEATED_FIXED32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFixed32List().hashCode();
}
if (getRepeatedFixed64Count() > 0) {
hash = (37 * hash) + REPEATED_FIXED64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFixed64List().hashCode();
}
if (getRepeatedSfixed32Count() > 0) {
hash = (37 * hash) + REPEATED_SFIXED32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSfixed32List().hashCode();
}
if (getRepeatedSfixed64Count() > 0) {
hash = (37 * hash) + REPEATED_SFIXED64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSfixed64List().hashCode();
}
if (getRepeatedFloatCount() > 0) {
hash = (37 * hash) + REPEATED_FLOAT_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFloatList().hashCode();
}
if (getRepeatedDoubleCount() > 0) {
hash = (37 * hash) + REPEATED_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedDoubleList().hashCode();
}
if (getRepeatedBoolCount() > 0) {
hash = (37 * hash) + REPEATED_BOOL_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedBoolList().hashCode();
}
if (getRepeatedNestedEnumCount() > 0) {
hash = (37 * hash) + REPEATED_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedNestedEnum_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.PackedFieldTestProto.TestAllTypes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.PackedFieldTestProto.TestAllTypes prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code packed_field_test.TestAllTypes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrepeated int32 repeated_int32 = 31;
* @return A list containing the repeatedInt32.
*/
public java.util.Listrepeated int32 repeated_int32 = 31;
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 31;
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
/**
* repeated int32 repeated_int32 = 31;
* @param index The index to set the value at.
* @param value The repeatedInt32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedInt32(
int index, int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.setInt(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 31;
* @param value The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedInt32(int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.addInt(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 31;
* @param values The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedInt32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedInt32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt32_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 31;
* @return This builder for chaining.
*/
public Builder clearRepeatedInt32() {
repeatedInt32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedInt64_ = emptyLongList();
private void ensureRepeatedInt64IsMutable() {
if (!repeatedInt64_.isModifiable()) {
repeatedInt64_ = makeMutableCopy(repeatedInt64_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated int64 repeated_int64 = 32;
* @return A list containing the repeatedInt64.
*/
public java.util.Listrepeated int64 repeated_int64 = 32;
* @return The count of repeatedInt64.
*/
public int getRepeatedInt64Count() {
return repeatedInt64_.size();
}
/**
* repeated int64 repeated_int64 = 32;
* @param index The index of the element to return.
* @return The repeatedInt64 at the given index.
*/
public long getRepeatedInt64(int index) {
return repeatedInt64_.getLong(index);
}
/**
* repeated int64 repeated_int64 = 32;
* @param index The index to set the value at.
* @param value The repeatedInt64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedInt64(
int index, long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.setLong(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
* @param value The repeatedInt64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedInt64(long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.addLong(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
* @param values The repeatedInt64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedInt64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedInt64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt64_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 32;
* @return This builder for chaining.
*/
public Builder clearRepeatedInt64() {
repeatedInt64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedUint32_ = emptyIntList();
private void ensureRepeatedUint32IsMutable() {
if (!repeatedUint32_.isModifiable()) {
repeatedUint32_ = makeMutableCopy(repeatedUint32_);
}
bitField0_ |= 0x00000004;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @return A list containing the repeatedUint32.
*/
public java.util.Listrepeated uint32 repeated_uint32 = 33;
* @return The count of repeatedUint32.
*/
public int getRepeatedUint32Count() {
return repeatedUint32_.size();
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param index The index of the element to return.
* @return The repeatedUint32 at the given index.
*/
public int getRepeatedUint32(int index) {
return repeatedUint32_.getInt(index);
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param index The index to set the value at.
* @param value The repeatedUint32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedUint32(
int index, int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.setInt(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param value The repeatedUint32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedUint32(int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.addInt(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @param values The repeatedUint32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedUint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedUint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedUint32_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 33;
* @return This builder for chaining.
*/
public Builder clearRepeatedUint32() {
repeatedUint32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedUint64_ = emptyLongList();
private void ensureRepeatedUint64IsMutable() {
if (!repeatedUint64_.isModifiable()) {
repeatedUint64_ = makeMutableCopy(repeatedUint64_);
}
bitField0_ |= 0x00000008;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @return A list containing the repeatedUint64.
*/
public java.util.Listrepeated uint64 repeated_uint64 = 34;
* @return The count of repeatedUint64.
*/
public int getRepeatedUint64Count() {
return repeatedUint64_.size();
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param index The index of the element to return.
* @return The repeatedUint64 at the given index.
*/
public long getRepeatedUint64(int index) {
return repeatedUint64_.getLong(index);
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param index The index to set the value at.
* @param value The repeatedUint64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedUint64(
int index, long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.setLong(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param value The repeatedUint64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedUint64(long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.addLong(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @param values The repeatedUint64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedUint64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedUint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedUint64_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 34;
* @return This builder for chaining.
*/
public Builder clearRepeatedUint64() {
repeatedUint64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedSint32_ = emptyIntList();
private void ensureRepeatedSint32IsMutable() {
if (!repeatedSint32_.isModifiable()) {
repeatedSint32_ = makeMutableCopy(repeatedSint32_);
}
bitField0_ |= 0x00000010;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @return A list containing the repeatedSint32.
*/
public java.util.Listrepeated sint32 repeated_sint32 = 35;
* @return The count of repeatedSint32.
*/
public int getRepeatedSint32Count() {
return repeatedSint32_.size();
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param index The index of the element to return.
* @return The repeatedSint32 at the given index.
*/
public int getRepeatedSint32(int index) {
return repeatedSint32_.getInt(index);
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param index The index to set the value at.
* @param value The repeatedSint32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSint32(
int index, int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.setInt(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param value The repeatedSint32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSint32(int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.addInt(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @param values The repeatedSint32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedSint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSint32_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 35;
* @return This builder for chaining.
*/
public Builder clearRepeatedSint32() {
repeatedSint32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedSint64_ = emptyLongList();
private void ensureRepeatedSint64IsMutable() {
if (!repeatedSint64_.isModifiable()) {
repeatedSint64_ = makeMutableCopy(repeatedSint64_);
}
bitField0_ |= 0x00000020;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @return A list containing the repeatedSint64.
*/
public java.util.Listrepeated sint64 repeated_sint64 = 36;
* @return The count of repeatedSint64.
*/
public int getRepeatedSint64Count() {
return repeatedSint64_.size();
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param index The index of the element to return.
* @return The repeatedSint64 at the given index.
*/
public long getRepeatedSint64(int index) {
return repeatedSint64_.getLong(index);
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param index The index to set the value at.
* @param value The repeatedSint64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSint64(
int index, long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.setLong(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param value The repeatedSint64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSint64(long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.addLong(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @param values The repeatedSint64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSint64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedSint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSint64_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 36;
* @return This builder for chaining.
*/
public Builder clearRepeatedSint64() {
repeatedSint64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList();
private void ensureRepeatedFixed32IsMutable() {
if (!repeatedFixed32_.isModifiable()) {
repeatedFixed32_ = makeMutableCopy(repeatedFixed32_);
}
bitField0_ |= 0x00000040;
}
private void ensureRepeatedFixed32IsMutable(int capacity) {
if (!repeatedFixed32_.isModifiable()) {
repeatedFixed32_ = makeMutableCopy(repeatedFixed32_, capacity);
}
bitField0_ |= 0x00000040;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @return A list containing the repeatedFixed32.
*/
public java.util.Listrepeated fixed32 repeated_fixed32 = 37;
* @return The count of repeatedFixed32.
*/
public int getRepeatedFixed32Count() {
return repeatedFixed32_.size();
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param index The index of the element to return.
* @return The repeatedFixed32 at the given index.
*/
public int getRepeatedFixed32(int index) {
return repeatedFixed32_.getInt(index);
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param index The index to set the value at.
* @param value The repeatedFixed32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFixed32(
int index, int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.setInt(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param value The repeatedFixed32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFixed32(int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.addInt(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @param values The repeatedFixed32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedFixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFixed32_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 37;
* @return This builder for chaining.
*/
public Builder clearRepeatedFixed32() {
repeatedFixed32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedFixed64_ = emptyLongList();
private void ensureRepeatedFixed64IsMutable() {
if (!repeatedFixed64_.isModifiable()) {
repeatedFixed64_ = makeMutableCopy(repeatedFixed64_);
}
bitField0_ |= 0x00000080;
}
private void ensureRepeatedFixed64IsMutable(int capacity) {
if (!repeatedFixed64_.isModifiable()) {
repeatedFixed64_ = makeMutableCopy(repeatedFixed64_, capacity);
}
bitField0_ |= 0x00000080;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @return A list containing the repeatedFixed64.
*/
public java.util.Listrepeated fixed64 repeated_fixed64 = 38;
* @return The count of repeatedFixed64.
*/
public int getRepeatedFixed64Count() {
return repeatedFixed64_.size();
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param index The index of the element to return.
* @return The repeatedFixed64 at the given index.
*/
public long getRepeatedFixed64(int index) {
return repeatedFixed64_.getLong(index);
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param index The index to set the value at.
* @param value The repeatedFixed64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFixed64(
int index, long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.setLong(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param value The repeatedFixed64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFixed64(long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.addLong(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @param values The repeatedFixed64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedFixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFixed64_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 38;
* @return This builder for chaining.
*/
public Builder clearRepeatedFixed64() {
repeatedFixed64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedSfixed32_ = emptyIntList();
private void ensureRepeatedSfixed32IsMutable() {
if (!repeatedSfixed32_.isModifiable()) {
repeatedSfixed32_ = makeMutableCopy(repeatedSfixed32_);
}
bitField0_ |= 0x00000100;
}
private void ensureRepeatedSfixed32IsMutable(int capacity) {
if (!repeatedSfixed32_.isModifiable()) {
repeatedSfixed32_ = makeMutableCopy(repeatedSfixed32_, capacity);
}
bitField0_ |= 0x00000100;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @return A list containing the repeatedSfixed32.
*/
public java.util.Listrepeated sfixed32 repeated_sfixed32 = 39;
* @return The count of repeatedSfixed32.
*/
public int getRepeatedSfixed32Count() {
return repeatedSfixed32_.size();
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param index The index of the element to return.
* @return The repeatedSfixed32 at the given index.
*/
public int getRepeatedSfixed32(int index) {
return repeatedSfixed32_.getInt(index);
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param index The index to set the value at.
* @param value The repeatedSfixed32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSfixed32(
int index, int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.setInt(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param value The repeatedSfixed32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSfixed32(int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.addInt(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @param values The repeatedSfixed32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSfixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedSfixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSfixed32_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 39;
* @return This builder for chaining.
*/
public Builder clearRepeatedSfixed32() {
repeatedSfixed32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedSfixed64_ = emptyLongList();
private void ensureRepeatedSfixed64IsMutable() {
if (!repeatedSfixed64_.isModifiable()) {
repeatedSfixed64_ = makeMutableCopy(repeatedSfixed64_);
}
bitField0_ |= 0x00000200;
}
private void ensureRepeatedSfixed64IsMutable(int capacity) {
if (!repeatedSfixed64_.isModifiable()) {
repeatedSfixed64_ = makeMutableCopy(repeatedSfixed64_, capacity);
}
bitField0_ |= 0x00000200;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @return A list containing the repeatedSfixed64.
*/
public java.util.Listrepeated sfixed64 repeated_sfixed64 = 40;
* @return The count of repeatedSfixed64.
*/
public int getRepeatedSfixed64Count() {
return repeatedSfixed64_.size();
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param index The index of the element to return.
* @return The repeatedSfixed64 at the given index.
*/
public long getRepeatedSfixed64(int index) {
return repeatedSfixed64_.getLong(index);
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param index The index to set the value at.
* @param value The repeatedSfixed64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSfixed64(
int index, long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.setLong(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param value The repeatedSfixed64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSfixed64(long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.addLong(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @param values The repeatedSfixed64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSfixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedSfixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSfixed64_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 40;
* @return This builder for chaining.
*/
public Builder clearRepeatedSfixed64() {
repeatedSfixed64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private com.google.protobuf.Internal.FloatList repeatedFloat_ = emptyFloatList();
private void ensureRepeatedFloatIsMutable() {
if (!repeatedFloat_.isModifiable()) {
repeatedFloat_ = makeMutableCopy(repeatedFloat_);
}
bitField0_ |= 0x00000400;
}
private void ensureRepeatedFloatIsMutable(int capacity) {
if (!repeatedFloat_.isModifiable()) {
repeatedFloat_ = makeMutableCopy(repeatedFloat_, capacity);
}
bitField0_ |= 0x00000400;
}
/**
* repeated float repeated_float = 41;
* @return A list containing the repeatedFloat.
*/
public java.util.Listrepeated float repeated_float = 41;
* @return The count of repeatedFloat.
*/
public int getRepeatedFloatCount() {
return repeatedFloat_.size();
}
/**
* repeated float repeated_float = 41;
* @param index The index of the element to return.
* @return The repeatedFloat at the given index.
*/
public float getRepeatedFloat(int index) {
return repeatedFloat_.getFloat(index);
}
/**
* repeated float repeated_float = 41;
* @param index The index to set the value at.
* @param value The repeatedFloat to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFloat(
int index, float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.setFloat(index, value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
* @param value The repeatedFloat to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFloat(float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.addFloat(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
* @param values The repeatedFloat to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFloat(
java.lang.Iterable extends java.lang.Float> values) {
ensureRepeatedFloatIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFloat_);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float repeated_float = 41;
* @return This builder for chaining.
*/
public Builder clearRepeatedFloat() {
repeatedFloat_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList repeatedDouble_ = emptyDoubleList();
private void ensureRepeatedDoubleIsMutable() {
if (!repeatedDouble_.isModifiable()) {
repeatedDouble_ = makeMutableCopy(repeatedDouble_);
}
bitField0_ |= 0x00000800;
}
private void ensureRepeatedDoubleIsMutable(int capacity) {
if (!repeatedDouble_.isModifiable()) {
repeatedDouble_ = makeMutableCopy(repeatedDouble_, capacity);
}
bitField0_ |= 0x00000800;
}
/**
* repeated double repeated_double = 42;
* @return A list containing the repeatedDouble.
*/
public java.util.Listrepeated double repeated_double = 42;
* @return The count of repeatedDouble.
*/
public int getRepeatedDoubleCount() {
return repeatedDouble_.size();
}
/**
* repeated double repeated_double = 42;
* @param index The index of the element to return.
* @return The repeatedDouble at the given index.
*/
public double getRepeatedDouble(int index) {
return repeatedDouble_.getDouble(index);
}
/**
* repeated double repeated_double = 42;
* @param index The index to set the value at.
* @param value The repeatedDouble to set.
* @return This builder for chaining.
*/
public Builder setRepeatedDouble(
int index, double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.setDouble(index, value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
* @param value The repeatedDouble to add.
* @return This builder for chaining.
*/
public Builder addRepeatedDouble(double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.addDouble(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
* @param values The repeatedDouble to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedDouble(
java.lang.Iterable extends java.lang.Double> values) {
ensureRepeatedDoubleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedDouble_);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double repeated_double = 42;
* @return This builder for chaining.
*/
public Builder clearRepeatedDouble() {
repeatedDouble_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
private com.google.protobuf.Internal.BooleanList repeatedBool_ = emptyBooleanList();
private void ensureRepeatedBoolIsMutable() {
if (!repeatedBool_.isModifiable()) {
repeatedBool_ = makeMutableCopy(repeatedBool_);
}
bitField0_ |= 0x00001000;
}
private void ensureRepeatedBoolIsMutable(int capacity) {
if (!repeatedBool_.isModifiable()) {
repeatedBool_ = makeMutableCopy(repeatedBool_, capacity);
}
bitField0_ |= 0x00001000;
}
/**
* repeated bool repeated_bool = 43;
* @return A list containing the repeatedBool.
*/
public java.util.Listrepeated bool repeated_bool = 43;
* @return The count of repeatedBool.
*/
public int getRepeatedBoolCount() {
return repeatedBool_.size();
}
/**
* repeated bool repeated_bool = 43;
* @param index The index of the element to return.
* @return The repeatedBool at the given index.
*/
public boolean getRepeatedBool(int index) {
return repeatedBool_.getBoolean(index);
}
/**
* repeated bool repeated_bool = 43;
* @param index The index to set the value at.
* @param value The repeatedBool to set.
* @return This builder for chaining.
*/
public Builder setRepeatedBool(
int index, boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.setBoolean(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
* @param value The repeatedBool to add.
* @return This builder for chaining.
*/
public Builder addRepeatedBool(boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.addBoolean(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
* @param values The repeatedBool to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedBool(
java.lang.Iterable extends java.lang.Boolean> values) {
ensureRepeatedBoolIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedBool_);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 43;
* @return This builder for chaining.
*/
public Builder clearRepeatedBool() {
repeatedBool_ = emptyBooleanList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
private java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return A list containing the repeatedNestedEnum.
*/
public java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return The count of repeatedNestedEnum.
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
public com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param index The index to set the value at.
* @param value The repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnum(
int index, com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param value The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnum(com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param values The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnum(
java.lang.Iterable extends com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum> values) {
ensureRepeatedNestedEnumIsMutable();
for (com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum value : values) {
repeatedNestedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return This builder for chaining.
*/
public Builder clearRepeatedNestedEnum() {
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
public java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
public int getRepeatedNestedEnumValue(int index) {
return repeatedNestedEnum_.get(index);
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnumValue(
int index, int value) {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value);
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param value The enum numeric value on the wire for repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnumValue(int value) {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value);
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
* @param values The enum numeric values on the wire for repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnumValue(
java.lang.Iterablerepeated int32 repeated_int32 = 1 [packed = false];
* @return A list containing the repeatedInt32.
*/
java.util.Listrepeated int32 repeated_int32 = 1 [packed = false];
* @return The count of repeatedInt32.
*/
int getRepeatedInt32Count();
/**
* repeated int32 repeated_int32 = 1 [packed = false];
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
int getRepeatedInt32(int index);
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @return A list containing the repeatedInt64.
*/
java.util.Listrepeated int64 repeated_int64 = 2 [packed = false];
* @return The count of repeatedInt64.
*/
int getRepeatedInt64Count();
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @param index The index of the element to return.
* @return The repeatedInt64 at the given index.
*/
long getRepeatedInt64(int index);
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @return A list containing the repeatedUint32.
*/
java.util.Listrepeated uint32 repeated_uint32 = 3 [packed = false];
* @return The count of repeatedUint32.
*/
int getRepeatedUint32Count();
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @param index The index of the element to return.
* @return The repeatedUint32 at the given index.
*/
int getRepeatedUint32(int index);
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @return A list containing the repeatedUint64.
*/
java.util.Listrepeated uint64 repeated_uint64 = 4 [packed = false];
* @return The count of repeatedUint64.
*/
int getRepeatedUint64Count();
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @param index The index of the element to return.
* @return The repeatedUint64 at the given index.
*/
long getRepeatedUint64(int index);
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @return A list containing the repeatedSint32.
*/
java.util.Listrepeated sint32 repeated_sint32 = 5 [packed = false];
* @return The count of repeatedSint32.
*/
int getRepeatedSint32Count();
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSint32 at the given index.
*/
int getRepeatedSint32(int index);
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @return A list containing the repeatedSint64.
*/
java.util.Listrepeated sint64 repeated_sint64 = 6 [packed = false];
* @return The count of repeatedSint64.
*/
int getRepeatedSint64Count();
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSint64 at the given index.
*/
long getRepeatedSint64(int index);
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @return A list containing the repeatedFixed32.
*/
java.util.Listrepeated fixed32 repeated_fixed32 = 7 [packed = false];
* @return The count of repeatedFixed32.
*/
int getRepeatedFixed32Count();
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFixed32 at the given index.
*/
int getRepeatedFixed32(int index);
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @return A list containing the repeatedFixed64.
*/
java.util.Listrepeated fixed64 repeated_fixed64 = 8 [packed = false];
* @return The count of repeatedFixed64.
*/
int getRepeatedFixed64Count();
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFixed64 at the given index.
*/
long getRepeatedFixed64(int index);
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @return A list containing the repeatedSfixed32.
*/
java.util.Listrepeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @return The count of repeatedSfixed32.
*/
int getRepeatedSfixed32Count();
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSfixed32 at the given index.
*/
int getRepeatedSfixed32(int index);
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @return A list containing the repeatedSfixed64.
*/
java.util.Listrepeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @return The count of repeatedSfixed64.
*/
int getRepeatedSfixed64Count();
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSfixed64 at the given index.
*/
long getRepeatedSfixed64(int index);
/**
* repeated float repeated_float = 11 [packed = false];
* @return A list containing the repeatedFloat.
*/
java.util.Listrepeated float repeated_float = 11 [packed = false];
* @return The count of repeatedFloat.
*/
int getRepeatedFloatCount();
/**
* repeated float repeated_float = 11 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFloat at the given index.
*/
float getRepeatedFloat(int index);
/**
* repeated double repeated_double = 12 [packed = false];
* @return A list containing the repeatedDouble.
*/
java.util.Listrepeated double repeated_double = 12 [packed = false];
* @return The count of repeatedDouble.
*/
int getRepeatedDoubleCount();
/**
* repeated double repeated_double = 12 [packed = false];
* @param index The index of the element to return.
* @return The repeatedDouble at the given index.
*/
double getRepeatedDouble(int index);
/**
* repeated bool repeated_bool = 13 [packed = false];
* @return A list containing the repeatedBool.
*/
java.util.Listrepeated bool repeated_bool = 13 [packed = false];
* @return The count of repeatedBool.
*/
int getRepeatedBoolCount();
/**
* repeated bool repeated_bool = 13 [packed = false];
* @param index The index of the element to return.
* @return The repeatedBool at the given index.
*/
boolean getRepeatedBool(int index);
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return A list containing the repeatedNestedEnum.
*/
java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return The count of repeatedNestedEnum.
*/
int getRepeatedNestedEnumCount();
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index);
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
int getRepeatedNestedEnumValue(int index);
}
/**
* Protobuf type {@code packed_field_test.TestUnpackedTypes}
*/
public static final class TestUnpackedTypes extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:packed_field_test.TestUnpackedTypes)
TestUnpackedTypesOrBuilder {
private static final long serialVersionUID = 0L;
// Use TestUnpackedTypes.newBuilder() to construct.
private TestUnpackedTypes(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TestUnpackedTypes() {
repeatedInt32_ = emptyIntList();
repeatedInt64_ = emptyLongList();
repeatedUint32_ = emptyIntList();
repeatedUint64_ = emptyLongList();
repeatedSint32_ = emptyIntList();
repeatedSint64_ = emptyLongList();
repeatedFixed32_ = emptyIntList();
repeatedFixed64_ = emptyLongList();
repeatedSfixed32_ = emptyIntList();
repeatedSfixed64_ = emptyLongList();
repeatedFloat_ = emptyFloatList();
repeatedDouble_ = emptyDoubleList();
repeatedBool_ = emptyBooleanList();
repeatedNestedEnum_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TestUnpackedTypes();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.PackedFieldTestProto.internal_static_packed_field_test_TestUnpackedTypes_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.PackedFieldTestProto.internal_static_packed_field_test_TestUnpackedTypes_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes.class, com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes.Builder.class);
}
public static final int REPEATED_INT32_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedInt32_ =
emptyIntList();
/**
* repeated int32 repeated_int32 = 1 [packed = false];
* @return A list containing the repeatedInt32.
*/
@java.lang.Override
public java.util.Listrepeated int32 repeated_int32 = 1 [packed = false];
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 1 [packed = false];
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
public static final int REPEATED_INT64_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedInt64_ =
emptyLongList();
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @return A list containing the repeatedInt64.
*/
@java.lang.Override
public java.util.Listrepeated int64 repeated_int64 = 2 [packed = false];
* @return The count of repeatedInt64.
*/
public int getRepeatedInt64Count() {
return repeatedInt64_.size();
}
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @param index The index of the element to return.
* @return The repeatedInt64 at the given index.
*/
public long getRepeatedInt64(int index) {
return repeatedInt64_.getLong(index);
}
public static final int REPEATED_UINT32_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedUint32_ =
emptyIntList();
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @return A list containing the repeatedUint32.
*/
@java.lang.Override
public java.util.Listrepeated uint32 repeated_uint32 = 3 [packed = false];
* @return The count of repeatedUint32.
*/
public int getRepeatedUint32Count() {
return repeatedUint32_.size();
}
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @param index The index of the element to return.
* @return The repeatedUint32 at the given index.
*/
public int getRepeatedUint32(int index) {
return repeatedUint32_.getInt(index);
}
public static final int REPEATED_UINT64_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedUint64_ =
emptyLongList();
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @return A list containing the repeatedUint64.
*/
@java.lang.Override
public java.util.Listrepeated uint64 repeated_uint64 = 4 [packed = false];
* @return The count of repeatedUint64.
*/
public int getRepeatedUint64Count() {
return repeatedUint64_.size();
}
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @param index The index of the element to return.
* @return The repeatedUint64 at the given index.
*/
public long getRepeatedUint64(int index) {
return repeatedUint64_.getLong(index);
}
public static final int REPEATED_SINT32_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedSint32_ =
emptyIntList();
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @return A list containing the repeatedSint32.
*/
@java.lang.Override
public java.util.Listrepeated sint32 repeated_sint32 = 5 [packed = false];
* @return The count of repeatedSint32.
*/
public int getRepeatedSint32Count() {
return repeatedSint32_.size();
}
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSint32 at the given index.
*/
public int getRepeatedSint32(int index) {
return repeatedSint32_.getInt(index);
}
public static final int REPEATED_SINT64_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedSint64_ =
emptyLongList();
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @return A list containing the repeatedSint64.
*/
@java.lang.Override
public java.util.Listrepeated sint64 repeated_sint64 = 6 [packed = false];
* @return The count of repeatedSint64.
*/
public int getRepeatedSint64Count() {
return repeatedSint64_.size();
}
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSint64 at the given index.
*/
public long getRepeatedSint64(int index) {
return repeatedSint64_.getLong(index);
}
public static final int REPEATED_FIXED32_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedFixed32_ =
emptyIntList();
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @return A list containing the repeatedFixed32.
*/
@java.lang.Override
public java.util.Listrepeated fixed32 repeated_fixed32 = 7 [packed = false];
* @return The count of repeatedFixed32.
*/
public int getRepeatedFixed32Count() {
return repeatedFixed32_.size();
}
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFixed32 at the given index.
*/
public int getRepeatedFixed32(int index) {
return repeatedFixed32_.getInt(index);
}
public static final int REPEATED_FIXED64_FIELD_NUMBER = 8;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedFixed64_ =
emptyLongList();
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @return A list containing the repeatedFixed64.
*/
@java.lang.Override
public java.util.Listrepeated fixed64 repeated_fixed64 = 8 [packed = false];
* @return The count of repeatedFixed64.
*/
public int getRepeatedFixed64Count() {
return repeatedFixed64_.size();
}
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFixed64 at the given index.
*/
public long getRepeatedFixed64(int index) {
return repeatedFixed64_.getLong(index);
}
public static final int REPEATED_SFIXED32_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.IntList repeatedSfixed32_ =
emptyIntList();
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @return A list containing the repeatedSfixed32.
*/
@java.lang.Override
public java.util.Listrepeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @return The count of repeatedSfixed32.
*/
public int getRepeatedSfixed32Count() {
return repeatedSfixed32_.size();
}
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSfixed32 at the given index.
*/
public int getRepeatedSfixed32(int index) {
return repeatedSfixed32_.getInt(index);
}
public static final int REPEATED_SFIXED64_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList repeatedSfixed64_ =
emptyLongList();
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @return A list containing the repeatedSfixed64.
*/
@java.lang.Override
public java.util.Listrepeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @return The count of repeatedSfixed64.
*/
public int getRepeatedSfixed64Count() {
return repeatedSfixed64_.size();
}
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSfixed64 at the given index.
*/
public long getRepeatedSfixed64(int index) {
return repeatedSfixed64_.getLong(index);
}
public static final int REPEATED_FLOAT_FIELD_NUMBER = 11;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.FloatList repeatedFloat_ =
emptyFloatList();
/**
* repeated float repeated_float = 11 [packed = false];
* @return A list containing the repeatedFloat.
*/
@java.lang.Override
public java.util.Listrepeated float repeated_float = 11 [packed = false];
* @return The count of repeatedFloat.
*/
public int getRepeatedFloatCount() {
return repeatedFloat_.size();
}
/**
* repeated float repeated_float = 11 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFloat at the given index.
*/
public float getRepeatedFloat(int index) {
return repeatedFloat_.getFloat(index);
}
public static final int REPEATED_DOUBLE_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.DoubleList repeatedDouble_ =
emptyDoubleList();
/**
* repeated double repeated_double = 12 [packed = false];
* @return A list containing the repeatedDouble.
*/
@java.lang.Override
public java.util.Listrepeated double repeated_double = 12 [packed = false];
* @return The count of repeatedDouble.
*/
public int getRepeatedDoubleCount() {
return repeatedDouble_.size();
}
/**
* repeated double repeated_double = 12 [packed = false];
* @param index The index of the element to return.
* @return The repeatedDouble at the given index.
*/
public double getRepeatedDouble(int index) {
return repeatedDouble_.getDouble(index);
}
public static final int REPEATED_BOOL_FIELD_NUMBER = 13;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.BooleanList repeatedBool_ =
emptyBooleanList();
/**
* repeated bool repeated_bool = 13 [packed = false];
* @return A list containing the repeatedBool.
*/
@java.lang.Override
public java.util.Listrepeated bool repeated_bool = 13 [packed = false];
* @return The count of repeatedBool.
*/
public int getRepeatedBoolCount() {
return repeatedBool_.size();
}
/**
* repeated bool repeated_bool = 13 [packed = false];
* @param index The index of the element to return.
* @return The repeatedBool at the given index.
*/
public boolean getRepeatedBool(int index) {
return repeatedBool_.getBoolean(index);
}
public static final int REPEATED_NESTED_ENUM_FIELD_NUMBER = 14;
@SuppressWarnings("serial")
private java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return A list containing the repeatedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return The count of repeatedNestedEnum.
*/
@java.lang.Override
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
@java.lang.Override
public com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
@java.lang.Override
public int getRepeatedNestedEnumValue(int index) {
return repeatedNestedEnum_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < repeatedInt32_.size(); i++) {
output.writeInt32(1, repeatedInt32_.getInt(i));
}
for (int i = 0; i < repeatedInt64_.size(); i++) {
output.writeInt64(2, repeatedInt64_.getLong(i));
}
for (int i = 0; i < repeatedUint32_.size(); i++) {
output.writeUInt32(3, repeatedUint32_.getInt(i));
}
for (int i = 0; i < repeatedUint64_.size(); i++) {
output.writeUInt64(4, repeatedUint64_.getLong(i));
}
for (int i = 0; i < repeatedSint32_.size(); i++) {
output.writeSInt32(5, repeatedSint32_.getInt(i));
}
for (int i = 0; i < repeatedSint64_.size(); i++) {
output.writeSInt64(6, repeatedSint64_.getLong(i));
}
for (int i = 0; i < repeatedFixed32_.size(); i++) {
output.writeFixed32(7, repeatedFixed32_.getInt(i));
}
for (int i = 0; i < repeatedFixed64_.size(); i++) {
output.writeFixed64(8, repeatedFixed64_.getLong(i));
}
for (int i = 0; i < repeatedSfixed32_.size(); i++) {
output.writeSFixed32(9, repeatedSfixed32_.getInt(i));
}
for (int i = 0; i < repeatedSfixed64_.size(); i++) {
output.writeSFixed64(10, repeatedSfixed64_.getLong(i));
}
for (int i = 0; i < repeatedFloat_.size(); i++) {
output.writeFloat(11, repeatedFloat_.getFloat(i));
}
for (int i = 0; i < repeatedDouble_.size(); i++) {
output.writeDouble(12, repeatedDouble_.getDouble(i));
}
for (int i = 0; i < repeatedBool_.size(); i++) {
output.writeBool(13, repeatedBool_.getBoolean(i));
}
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
output.writeEnum(14, repeatedNestedEnum_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < repeatedInt32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(repeatedInt32_.getInt(i));
}
size += dataSize;
size += 1 * getRepeatedInt32List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedInt64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(repeatedInt64_.getLong(i));
}
size += dataSize;
size += 1 * getRepeatedInt64List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedUint32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(repeatedUint32_.getInt(i));
}
size += dataSize;
size += 1 * getRepeatedUint32List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedUint64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(repeatedUint64_.getLong(i));
}
size += dataSize;
size += 1 * getRepeatedUint64List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedSint32_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt32SizeNoTag(repeatedSint32_.getInt(i));
}
size += dataSize;
size += 1 * getRepeatedSint32List().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedSint64_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeSInt64SizeNoTag(repeatedSint64_.getLong(i));
}
size += dataSize;
size += 1 * getRepeatedSint64List().size();
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedFixed32List().size();
size += dataSize;
size += 1 * getRepeatedFixed32List().size();
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedFixed64List().size();
size += dataSize;
size += 1 * getRepeatedFixed64List().size();
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedSfixed32List().size();
size += dataSize;
size += 1 * getRepeatedSfixed32List().size();
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedSfixed64List().size();
size += dataSize;
size += 1 * getRepeatedSfixed64List().size();
}
{
int dataSize = 0;
dataSize = 4 * getRepeatedFloatList().size();
size += dataSize;
size += 1 * getRepeatedFloatList().size();
}
{
int dataSize = 0;
dataSize = 8 * getRepeatedDoubleList().size();
size += dataSize;
size += 1 * getRepeatedDoubleList().size();
}
{
int dataSize = 0;
dataSize = 1 * getRepeatedBoolList().size();
size += dataSize;
size += 1 * getRepeatedBoolList().size();
}
{
int dataSize = 0;
for (int i = 0; i < repeatedNestedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedNestedEnum_.get(i));
}
size += dataSize;
size += 1 * repeatedNestedEnum_.size();
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes)) {
return super.equals(obj);
}
com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes other = (com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes) obj;
if (!getRepeatedInt32List()
.equals(other.getRepeatedInt32List())) return false;
if (!getRepeatedInt64List()
.equals(other.getRepeatedInt64List())) return false;
if (!getRepeatedUint32List()
.equals(other.getRepeatedUint32List())) return false;
if (!getRepeatedUint64List()
.equals(other.getRepeatedUint64List())) return false;
if (!getRepeatedSint32List()
.equals(other.getRepeatedSint32List())) return false;
if (!getRepeatedSint64List()
.equals(other.getRepeatedSint64List())) return false;
if (!getRepeatedFixed32List()
.equals(other.getRepeatedFixed32List())) return false;
if (!getRepeatedFixed64List()
.equals(other.getRepeatedFixed64List())) return false;
if (!getRepeatedSfixed32List()
.equals(other.getRepeatedSfixed32List())) return false;
if (!getRepeatedSfixed64List()
.equals(other.getRepeatedSfixed64List())) return false;
if (!getRepeatedFloatList()
.equals(other.getRepeatedFloatList())) return false;
if (!getRepeatedDoubleList()
.equals(other.getRepeatedDoubleList())) return false;
if (!getRepeatedBoolList()
.equals(other.getRepeatedBoolList())) return false;
if (!repeatedNestedEnum_.equals(other.repeatedNestedEnum_)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRepeatedInt32Count() > 0) {
hash = (37 * hash) + REPEATED_INT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedInt32List().hashCode();
}
if (getRepeatedInt64Count() > 0) {
hash = (37 * hash) + REPEATED_INT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedInt64List().hashCode();
}
if (getRepeatedUint32Count() > 0) {
hash = (37 * hash) + REPEATED_UINT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedUint32List().hashCode();
}
if (getRepeatedUint64Count() > 0) {
hash = (37 * hash) + REPEATED_UINT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedUint64List().hashCode();
}
if (getRepeatedSint32Count() > 0) {
hash = (37 * hash) + REPEATED_SINT32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSint32List().hashCode();
}
if (getRepeatedSint64Count() > 0) {
hash = (37 * hash) + REPEATED_SINT64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSint64List().hashCode();
}
if (getRepeatedFixed32Count() > 0) {
hash = (37 * hash) + REPEATED_FIXED32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFixed32List().hashCode();
}
if (getRepeatedFixed64Count() > 0) {
hash = (37 * hash) + REPEATED_FIXED64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFixed64List().hashCode();
}
if (getRepeatedSfixed32Count() > 0) {
hash = (37 * hash) + REPEATED_SFIXED32_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSfixed32List().hashCode();
}
if (getRepeatedSfixed64Count() > 0) {
hash = (37 * hash) + REPEATED_SFIXED64_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedSfixed64List().hashCode();
}
if (getRepeatedFloatCount() > 0) {
hash = (37 * hash) + REPEATED_FLOAT_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedFloatList().hashCode();
}
if (getRepeatedDoubleCount() > 0) {
hash = (37 * hash) + REPEATED_DOUBLE_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedDoubleList().hashCode();
}
if (getRepeatedBoolCount() > 0) {
hash = (37 * hash) + REPEATED_BOOL_FIELD_NUMBER;
hash = (53 * hash) + getRepeatedBoolList().hashCode();
}
if (getRepeatedNestedEnumCount() > 0) {
hash = (37 * hash) + REPEATED_NESTED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedNestedEnum_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.PackedFieldTestProto.TestUnpackedTypes prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code packed_field_test.TestUnpackedTypes}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrepeated int32 repeated_int32 = 1 [packed = false];
* @return A list containing the repeatedInt32.
*/
public java.util.Listrepeated int32 repeated_int32 = 1 [packed = false];
* @return The count of repeatedInt32.
*/
public int getRepeatedInt32Count() {
return repeatedInt32_.size();
}
/**
* repeated int32 repeated_int32 = 1 [packed = false];
* @param index The index of the element to return.
* @return The repeatedInt32 at the given index.
*/
public int getRepeatedInt32(int index) {
return repeatedInt32_.getInt(index);
}
/**
* repeated int32 repeated_int32 = 1 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedInt32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedInt32(
int index, int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.setInt(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 1 [packed = false];
* @param value The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedInt32(int value) {
ensureRepeatedInt32IsMutable();
repeatedInt32_.addInt(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 1 [packed = false];
* @param values The repeatedInt32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedInt32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedInt32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt32_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated int32 repeated_int32 = 1 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedInt32() {
repeatedInt32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedInt64_ = emptyLongList();
private void ensureRepeatedInt64IsMutable() {
if (!repeatedInt64_.isModifiable()) {
repeatedInt64_ = makeMutableCopy(repeatedInt64_);
}
bitField0_ |= 0x00000002;
}
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @return A list containing the repeatedInt64.
*/
public java.util.Listrepeated int64 repeated_int64 = 2 [packed = false];
* @return The count of repeatedInt64.
*/
public int getRepeatedInt64Count() {
return repeatedInt64_.size();
}
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @param index The index of the element to return.
* @return The repeatedInt64 at the given index.
*/
public long getRepeatedInt64(int index) {
return repeatedInt64_.getLong(index);
}
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedInt64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedInt64(
int index, long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.setLong(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @param value The repeatedInt64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedInt64(long value) {
ensureRepeatedInt64IsMutable();
repeatedInt64_.addLong(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @param values The repeatedInt64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedInt64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedInt64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedInt64_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* repeated int64 repeated_int64 = 2 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedInt64() {
repeatedInt64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedUint32_ = emptyIntList();
private void ensureRepeatedUint32IsMutable() {
if (!repeatedUint32_.isModifiable()) {
repeatedUint32_ = makeMutableCopy(repeatedUint32_);
}
bitField0_ |= 0x00000004;
}
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @return A list containing the repeatedUint32.
*/
public java.util.Listrepeated uint32 repeated_uint32 = 3 [packed = false];
* @return The count of repeatedUint32.
*/
public int getRepeatedUint32Count() {
return repeatedUint32_.size();
}
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @param index The index of the element to return.
* @return The repeatedUint32 at the given index.
*/
public int getRepeatedUint32(int index) {
return repeatedUint32_.getInt(index);
}
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedUint32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedUint32(
int index, int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.setInt(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @param value The repeatedUint32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedUint32(int value) {
ensureRepeatedUint32IsMutable();
repeatedUint32_.addInt(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @param values The repeatedUint32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedUint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedUint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedUint32_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* repeated uint32 repeated_uint32 = 3 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedUint32() {
repeatedUint32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedUint64_ = emptyLongList();
private void ensureRepeatedUint64IsMutable() {
if (!repeatedUint64_.isModifiable()) {
repeatedUint64_ = makeMutableCopy(repeatedUint64_);
}
bitField0_ |= 0x00000008;
}
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @return A list containing the repeatedUint64.
*/
public java.util.Listrepeated uint64 repeated_uint64 = 4 [packed = false];
* @return The count of repeatedUint64.
*/
public int getRepeatedUint64Count() {
return repeatedUint64_.size();
}
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @param index The index of the element to return.
* @return The repeatedUint64 at the given index.
*/
public long getRepeatedUint64(int index) {
return repeatedUint64_.getLong(index);
}
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedUint64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedUint64(
int index, long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.setLong(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @param value The repeatedUint64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedUint64(long value) {
ensureRepeatedUint64IsMutable();
repeatedUint64_.addLong(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @param values The repeatedUint64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedUint64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedUint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedUint64_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* repeated uint64 repeated_uint64 = 4 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedUint64() {
repeatedUint64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedSint32_ = emptyIntList();
private void ensureRepeatedSint32IsMutable() {
if (!repeatedSint32_.isModifiable()) {
repeatedSint32_ = makeMutableCopy(repeatedSint32_);
}
bitField0_ |= 0x00000010;
}
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @return A list containing the repeatedSint32.
*/
public java.util.Listrepeated sint32 repeated_sint32 = 5 [packed = false];
* @return The count of repeatedSint32.
*/
public int getRepeatedSint32Count() {
return repeatedSint32_.size();
}
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSint32 at the given index.
*/
public int getRepeatedSint32(int index) {
return repeatedSint32_.getInt(index);
}
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedSint32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSint32(
int index, int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.setInt(index, value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @param value The repeatedSint32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSint32(int value) {
ensureRepeatedSint32IsMutable();
repeatedSint32_.addInt(value);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @param values The repeatedSint32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSint32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedSint32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSint32_);
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* repeated sint32 repeated_sint32 = 5 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedSint32() {
repeatedSint32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedSint64_ = emptyLongList();
private void ensureRepeatedSint64IsMutable() {
if (!repeatedSint64_.isModifiable()) {
repeatedSint64_ = makeMutableCopy(repeatedSint64_);
}
bitField0_ |= 0x00000020;
}
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @return A list containing the repeatedSint64.
*/
public java.util.Listrepeated sint64 repeated_sint64 = 6 [packed = false];
* @return The count of repeatedSint64.
*/
public int getRepeatedSint64Count() {
return repeatedSint64_.size();
}
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSint64 at the given index.
*/
public long getRepeatedSint64(int index) {
return repeatedSint64_.getLong(index);
}
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedSint64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSint64(
int index, long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.setLong(index, value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @param value The repeatedSint64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSint64(long value) {
ensureRepeatedSint64IsMutable();
repeatedSint64_.addLong(value);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @param values The repeatedSint64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSint64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedSint64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSint64_);
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* repeated sint64 repeated_sint64 = 6 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedSint64() {
repeatedSint64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedFixed32_ = emptyIntList();
private void ensureRepeatedFixed32IsMutable() {
if (!repeatedFixed32_.isModifiable()) {
repeatedFixed32_ = makeMutableCopy(repeatedFixed32_);
}
bitField0_ |= 0x00000040;
}
private void ensureRepeatedFixed32IsMutable(int capacity) {
if (!repeatedFixed32_.isModifiable()) {
repeatedFixed32_ = makeMutableCopy(repeatedFixed32_, capacity);
}
bitField0_ |= 0x00000040;
}
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @return A list containing the repeatedFixed32.
*/
public java.util.Listrepeated fixed32 repeated_fixed32 = 7 [packed = false];
* @return The count of repeatedFixed32.
*/
public int getRepeatedFixed32Count() {
return repeatedFixed32_.size();
}
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFixed32 at the given index.
*/
public int getRepeatedFixed32(int index) {
return repeatedFixed32_.getInt(index);
}
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedFixed32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFixed32(
int index, int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.setInt(index, value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @param value The repeatedFixed32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFixed32(int value) {
ensureRepeatedFixed32IsMutable();
repeatedFixed32_.addInt(value);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @param values The repeatedFixed32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedFixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFixed32_);
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* repeated fixed32 repeated_fixed32 = 7 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedFixed32() {
repeatedFixed32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedFixed64_ = emptyLongList();
private void ensureRepeatedFixed64IsMutable() {
if (!repeatedFixed64_.isModifiable()) {
repeatedFixed64_ = makeMutableCopy(repeatedFixed64_);
}
bitField0_ |= 0x00000080;
}
private void ensureRepeatedFixed64IsMutable(int capacity) {
if (!repeatedFixed64_.isModifiable()) {
repeatedFixed64_ = makeMutableCopy(repeatedFixed64_, capacity);
}
bitField0_ |= 0x00000080;
}
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @return A list containing the repeatedFixed64.
*/
public java.util.Listrepeated fixed64 repeated_fixed64 = 8 [packed = false];
* @return The count of repeatedFixed64.
*/
public int getRepeatedFixed64Count() {
return repeatedFixed64_.size();
}
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFixed64 at the given index.
*/
public long getRepeatedFixed64(int index) {
return repeatedFixed64_.getLong(index);
}
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedFixed64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFixed64(
int index, long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.setLong(index, value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @param value The repeatedFixed64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFixed64(long value) {
ensureRepeatedFixed64IsMutable();
repeatedFixed64_.addLong(value);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @param values The repeatedFixed64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedFixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFixed64_);
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* repeated fixed64 repeated_fixed64 = 8 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedFixed64() {
repeatedFixed64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList repeatedSfixed32_ = emptyIntList();
private void ensureRepeatedSfixed32IsMutable() {
if (!repeatedSfixed32_.isModifiable()) {
repeatedSfixed32_ = makeMutableCopy(repeatedSfixed32_);
}
bitField0_ |= 0x00000100;
}
private void ensureRepeatedSfixed32IsMutable(int capacity) {
if (!repeatedSfixed32_.isModifiable()) {
repeatedSfixed32_ = makeMutableCopy(repeatedSfixed32_, capacity);
}
bitField0_ |= 0x00000100;
}
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @return A list containing the repeatedSfixed32.
*/
public java.util.Listrepeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @return The count of repeatedSfixed32.
*/
public int getRepeatedSfixed32Count() {
return repeatedSfixed32_.size();
}
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSfixed32 at the given index.
*/
public int getRepeatedSfixed32(int index) {
return repeatedSfixed32_.getInt(index);
}
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedSfixed32 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSfixed32(
int index, int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.setInt(index, value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @param value The repeatedSfixed32 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSfixed32(int value) {
ensureRepeatedSfixed32IsMutable();
repeatedSfixed32_.addInt(value);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @param values The repeatedSfixed32 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSfixed32(
java.lang.Iterable extends java.lang.Integer> values) {
ensureRepeatedSfixed32IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSfixed32_);
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* repeated sfixed32 repeated_sfixed32 = 9 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedSfixed32() {
repeatedSfixed32_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList repeatedSfixed64_ = emptyLongList();
private void ensureRepeatedSfixed64IsMutable() {
if (!repeatedSfixed64_.isModifiable()) {
repeatedSfixed64_ = makeMutableCopy(repeatedSfixed64_);
}
bitField0_ |= 0x00000200;
}
private void ensureRepeatedSfixed64IsMutable(int capacity) {
if (!repeatedSfixed64_.isModifiable()) {
repeatedSfixed64_ = makeMutableCopy(repeatedSfixed64_, capacity);
}
bitField0_ |= 0x00000200;
}
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @return A list containing the repeatedSfixed64.
*/
public java.util.Listrepeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @return The count of repeatedSfixed64.
*/
public int getRepeatedSfixed64Count() {
return repeatedSfixed64_.size();
}
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @param index The index of the element to return.
* @return The repeatedSfixed64 at the given index.
*/
public long getRepeatedSfixed64(int index) {
return repeatedSfixed64_.getLong(index);
}
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedSfixed64 to set.
* @return This builder for chaining.
*/
public Builder setRepeatedSfixed64(
int index, long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.setLong(index, value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @param value The repeatedSfixed64 to add.
* @return This builder for chaining.
*/
public Builder addRepeatedSfixed64(long value) {
ensureRepeatedSfixed64IsMutable();
repeatedSfixed64_.addLong(value);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @param values The repeatedSfixed64 to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedSfixed64(
java.lang.Iterable extends java.lang.Long> values) {
ensureRepeatedSfixed64IsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedSfixed64_);
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* repeated sfixed64 repeated_sfixed64 = 10 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedSfixed64() {
repeatedSfixed64_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
private com.google.protobuf.Internal.FloatList repeatedFloat_ = emptyFloatList();
private void ensureRepeatedFloatIsMutable() {
if (!repeatedFloat_.isModifiable()) {
repeatedFloat_ = makeMutableCopy(repeatedFloat_);
}
bitField0_ |= 0x00000400;
}
private void ensureRepeatedFloatIsMutable(int capacity) {
if (!repeatedFloat_.isModifiable()) {
repeatedFloat_ = makeMutableCopy(repeatedFloat_, capacity);
}
bitField0_ |= 0x00000400;
}
/**
* repeated float repeated_float = 11 [packed = false];
* @return A list containing the repeatedFloat.
*/
public java.util.Listrepeated float repeated_float = 11 [packed = false];
* @return The count of repeatedFloat.
*/
public int getRepeatedFloatCount() {
return repeatedFloat_.size();
}
/**
* repeated float repeated_float = 11 [packed = false];
* @param index The index of the element to return.
* @return The repeatedFloat at the given index.
*/
public float getRepeatedFloat(int index) {
return repeatedFloat_.getFloat(index);
}
/**
* repeated float repeated_float = 11 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedFloat to set.
* @return This builder for chaining.
*/
public Builder setRepeatedFloat(
int index, float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.setFloat(index, value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float repeated_float = 11 [packed = false];
* @param value The repeatedFloat to add.
* @return This builder for chaining.
*/
public Builder addRepeatedFloat(float value) {
ensureRepeatedFloatIsMutable();
repeatedFloat_.addFloat(value);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float repeated_float = 11 [packed = false];
* @param values The repeatedFloat to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedFloat(
java.lang.Iterable extends java.lang.Float> values) {
ensureRepeatedFloatIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedFloat_);
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* repeated float repeated_float = 11 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedFloat() {
repeatedFloat_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList repeatedDouble_ = emptyDoubleList();
private void ensureRepeatedDoubleIsMutable() {
if (!repeatedDouble_.isModifiable()) {
repeatedDouble_ = makeMutableCopy(repeatedDouble_);
}
bitField0_ |= 0x00000800;
}
private void ensureRepeatedDoubleIsMutable(int capacity) {
if (!repeatedDouble_.isModifiable()) {
repeatedDouble_ = makeMutableCopy(repeatedDouble_, capacity);
}
bitField0_ |= 0x00000800;
}
/**
* repeated double repeated_double = 12 [packed = false];
* @return A list containing the repeatedDouble.
*/
public java.util.Listrepeated double repeated_double = 12 [packed = false];
* @return The count of repeatedDouble.
*/
public int getRepeatedDoubleCount() {
return repeatedDouble_.size();
}
/**
* repeated double repeated_double = 12 [packed = false];
* @param index The index of the element to return.
* @return The repeatedDouble at the given index.
*/
public double getRepeatedDouble(int index) {
return repeatedDouble_.getDouble(index);
}
/**
* repeated double repeated_double = 12 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedDouble to set.
* @return This builder for chaining.
*/
public Builder setRepeatedDouble(
int index, double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.setDouble(index, value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double repeated_double = 12 [packed = false];
* @param value The repeatedDouble to add.
* @return This builder for chaining.
*/
public Builder addRepeatedDouble(double value) {
ensureRepeatedDoubleIsMutable();
repeatedDouble_.addDouble(value);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double repeated_double = 12 [packed = false];
* @param values The repeatedDouble to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedDouble(
java.lang.Iterable extends java.lang.Double> values) {
ensureRepeatedDoubleIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedDouble_);
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* repeated double repeated_double = 12 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedDouble() {
repeatedDouble_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
private com.google.protobuf.Internal.BooleanList repeatedBool_ = emptyBooleanList();
private void ensureRepeatedBoolIsMutable() {
if (!repeatedBool_.isModifiable()) {
repeatedBool_ = makeMutableCopy(repeatedBool_);
}
bitField0_ |= 0x00001000;
}
private void ensureRepeatedBoolIsMutable(int capacity) {
if (!repeatedBool_.isModifiable()) {
repeatedBool_ = makeMutableCopy(repeatedBool_, capacity);
}
bitField0_ |= 0x00001000;
}
/**
* repeated bool repeated_bool = 13 [packed = false];
* @return A list containing the repeatedBool.
*/
public java.util.Listrepeated bool repeated_bool = 13 [packed = false];
* @return The count of repeatedBool.
*/
public int getRepeatedBoolCount() {
return repeatedBool_.size();
}
/**
* repeated bool repeated_bool = 13 [packed = false];
* @param index The index of the element to return.
* @return The repeatedBool at the given index.
*/
public boolean getRepeatedBool(int index) {
return repeatedBool_.getBoolean(index);
}
/**
* repeated bool repeated_bool = 13 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedBool to set.
* @return This builder for chaining.
*/
public Builder setRepeatedBool(
int index, boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.setBoolean(index, value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 13 [packed = false];
* @param value The repeatedBool to add.
* @return This builder for chaining.
*/
public Builder addRepeatedBool(boolean value) {
ensureRepeatedBoolIsMutable();
repeatedBool_.addBoolean(value);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 13 [packed = false];
* @param values The repeatedBool to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedBool(
java.lang.Iterable extends java.lang.Boolean> values) {
ensureRepeatedBoolIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, repeatedBool_);
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* repeated bool repeated_bool = 13 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedBool() {
repeatedBool_ = emptyBooleanList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
private java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return A list containing the repeatedNestedEnum.
*/
public java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return The count of repeatedNestedEnum.
*/
public int getRepeatedNestedEnumCount() {
return repeatedNestedEnum_.size();
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param index The index of the element to return.
* @return The repeatedNestedEnum at the given index.
*/
public com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum getRepeatedNestedEnum(int index) {
return repeatedNestedEnum_converter_.convert(repeatedNestedEnum_.get(index));
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param index The index to set the value at.
* @param value The repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnum(
int index, com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param value The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnum(com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param values The repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnum(
java.lang.Iterable extends com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum> values) {
ensureRepeatedNestedEnumIsMutable();
for (com.google.protobuf.PackedFieldTestProto.TestAllTypes.NestedEnum value : values) {
repeatedNestedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return This builder for chaining.
*/
public Builder clearRepeatedNestedEnum() {
repeatedNestedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @return A list containing the enum numeric values on the wire for repeatedNestedEnum.
*/
public java.util.Listrepeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param index The index of the value to return.
* @return The enum numeric value on the wire of repeatedNestedEnum at the given index.
*/
public int getRepeatedNestedEnumValue(int index) {
return repeatedNestedEnum_.get(index);
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param index The index to set the value at.
* @param value The enum numeric value on the wire for repeatedNestedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedNestedEnumValue(
int index, int value) {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.set(index, value);
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param value The enum numeric value on the wire for repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedNestedEnumValue(int value) {
ensureRepeatedNestedEnumIsMutable();
repeatedNestedEnum_.add(value);
onChanged();
return this;
}
/**
* repeated .packed_field_test.TestAllTypes.NestedEnum repeated_nested_enum = 14 [packed = false];
* @param values The enum numeric values on the wire for repeatedNestedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedNestedEnumValue(
java.lang.IterableZERO = 0;
*/
ZERO(0),
/**
* ONE = 1;
*/
ONE(1),
/**
* TWO = 2;
*/
TWO(2),
;
/**
* ZERO = 0;
*/
public static final int ZERO_VALUE = 0;
/**
* ONE = 1;
*/
public static final int ONE_VALUE = 1;
/**
* TWO = 2;
*/
public static final int TWO_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Proto2TestEnum valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Proto2TestEnum forNumber(int value) {
switch (value) {
case 0: return ZERO;
case 1: return ONE;
case 2: return TWO;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap* An enum containing a subset of the values of Proto2TestEnum, to test * parsing unknown packed enum values ** * Protobuf enum {@code proto2_unknown_enum_values.Proto2TestEnumSubset} */ public enum Proto2TestEnumSubset implements com.google.protobuf.ProtocolMessageEnum { /** *
TESTENUM_SUBSET_ZERO = 0;
*/
TESTENUM_SUBSET_ZERO(0),
/**
*
* No enum value with number 2.
*
*
* TESTENUM_SUBSET_ONE = 1;
*/
TESTENUM_SUBSET_ONE(1),
;
/**
* TESTENUM_SUBSET_ZERO = 0;
*/
public static final int TESTENUM_SUBSET_ZERO_VALUE = 0;
/**
*
* No enum value with number 2.
*
*
* TESTENUM_SUBSET_ONE = 1;
*/
public static final int TESTENUM_SUBSET_ONE_VALUE = 1;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Proto2TestEnumSubset valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Proto2TestEnumSubset forNumber(int value) {
switch (value) {
case 0: return TESTENUM_SUBSET_ZERO;
case 1: return TESTENUM_SUBSET_ONE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMaprepeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @return A list containing the repeatedPackedEnum.
*/
java.util.Listrepeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @return The count of repeatedPackedEnum.
*/
int getRepeatedPackedEnumCount();
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @param index The index of the element to return.
* @return The repeatedPackedEnum at the given index.
*/
com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnum getRepeatedPackedEnum(int index);
}
/**
* Protobuf type {@code proto2_unknown_enum_values.Proto2EnumMessage}
*/
public static final class Proto2EnumMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto2_unknown_enum_values.Proto2EnumMessage)
Proto2EnumMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Proto2EnumMessage.newBuilder() to construct.
private Proto2EnumMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Proto2EnumMessage() {
repeatedPackedEnum_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Proto2EnumMessage();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.protobuf.Proto2UnknownEnumValuesTestProto.internal_static_proto2_unknown_enum_values_Proto2EnumMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.protobuf.Proto2UnknownEnumValuesTestProto.internal_static_proto2_unknown_enum_values_Proto2EnumMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage.class, com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage.Builder.class);
}
public static final int REPEATED_PACKED_ENUM_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.Listrepeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @return A list containing the repeatedPackedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @return The count of repeatedPackedEnum.
*/
@java.lang.Override
public int getRepeatedPackedEnumCount() {
return repeatedPackedEnum_.size();
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @param index The index of the element to return.
* @return The repeatedPackedEnum at the given index.
*/
@java.lang.Override
public com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnum getRepeatedPackedEnum(int index) {
return repeatedPackedEnum_converter_.convert(repeatedPackedEnum_.get(index));
}
private int repeatedPackedEnumMemoizedSerializedSize;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getRepeatedPackedEnumList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(repeatedPackedEnumMemoizedSerializedSize);
}
for (int i = 0; i < repeatedPackedEnum_.size(); i++) {
output.writeEnumNoTag(repeatedPackedEnum_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < repeatedPackedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedPackedEnum_.get(i));
}
size += dataSize;
if (!getRepeatedPackedEnumList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}repeatedPackedEnumMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage)) {
return super.equals(obj);
}
com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage other = (com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage) obj;
if (!repeatedPackedEnum_.equals(other.repeatedPackedEnum_)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRepeatedPackedEnumCount() > 0) {
hash = (37 * hash) + REPEATED_PACKED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedPackedEnum_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_unknown_enum_values.Proto2EnumMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrepeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @return A list containing the repeatedPackedEnum.
*/
public java.util.Listrepeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @return The count of repeatedPackedEnum.
*/
public int getRepeatedPackedEnumCount() {
return repeatedPackedEnum_.size();
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @param index The index of the element to return.
* @return The repeatedPackedEnum at the given index.
*/
public com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnum getRepeatedPackedEnum(int index) {
return repeatedPackedEnum_converter_.convert(repeatedPackedEnum_.get(index));
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @param index The index to set the value at.
* @param value The repeatedPackedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedPackedEnum(
int index, com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedPackedEnumIsMutable();
repeatedPackedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @param value The repeatedPackedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedPackedEnum(com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedPackedEnumIsMutable();
repeatedPackedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @param values The repeatedPackedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedPackedEnum(
java.lang.Iterable extends com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnum> values) {
ensureRepeatedPackedEnumIsMutable();
for (com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnum value : values) {
repeatedPackedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnum repeated_packed_enum = 1 [packed = true];
* @return This builder for chaining.
*/
public Builder clearRepeatedPackedEnum() {
repeatedPackedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unknown_enum_values.Proto2EnumMessage)
}
// @@protoc_insertion_point(class_scope:proto2_unknown_enum_values.Proto2EnumMessage)
private static final com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage();
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parserrepeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @return A list containing the repeatedPackedEnum.
*/
java.util.Listrepeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @return The count of repeatedPackedEnum.
*/
int getRepeatedPackedEnumCount();
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @param index The index of the element to return.
* @return The repeatedPackedEnum at the given index.
*/
com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnumSubset getRepeatedPackedEnum(int index);
}
/**
* * Test messages for packed enum, with identical field number as * Proto2Message, to test parsing unknown packed enums. ** * Protobuf type {@code proto2_unknown_enum_values.Proto2EnumMessageWithEnumSubset} */ public static final class Proto2EnumMessageWithEnumSubset extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto2_unknown_enum_values.Proto2EnumMessageWithEnumSubset) Proto2EnumMessageWithEnumSubsetOrBuilder { private static final long serialVersionUID = 0L; // Use Proto2EnumMessageWithEnumSubset.newBuilder() to construct. private Proto2EnumMessageWithEnumSubset(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private Proto2EnumMessageWithEnumSubset() { repeatedPackedEnum_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Proto2EnumMessageWithEnumSubset(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.Proto2UnknownEnumValuesTestProto.internal_static_proto2_unknown_enum_values_Proto2EnumMessageWithEnumSubset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.Proto2UnknownEnumValuesTestProto.internal_static_proto2_unknown_enum_values_Proto2EnumMessageWithEnumSubset_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset.class, com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset.Builder.class); } public static final int REPEATED_PACKED_ENUM_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List
repeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @return A list containing the repeatedPackedEnum.
*/
@java.lang.Override
public java.util.Listrepeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @return The count of repeatedPackedEnum.
*/
@java.lang.Override
public int getRepeatedPackedEnumCount() {
return repeatedPackedEnum_.size();
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @param index The index of the element to return.
* @return The repeatedPackedEnum at the given index.
*/
@java.lang.Override
public com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnumSubset getRepeatedPackedEnum(int index) {
return repeatedPackedEnum_converter_.convert(repeatedPackedEnum_.get(index));
}
private int repeatedPackedEnumMemoizedSerializedSize;
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getRepeatedPackedEnumList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(repeatedPackedEnumMemoizedSerializedSize);
}
for (int i = 0; i < repeatedPackedEnum_.size(); i++) {
output.writeEnumNoTag(repeatedPackedEnum_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < repeatedPackedEnum_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(repeatedPackedEnum_.get(i));
}
size += dataSize;
if (!getRepeatedPackedEnumList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}repeatedPackedEnumMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset)) {
return super.equals(obj);
}
com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset other = (com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset) obj;
if (!repeatedPackedEnum_.equals(other.repeatedPackedEnum_)) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getRepeatedPackedEnumCount() > 0) {
hash = (37 * hash) + REPEATED_PACKED_ENUM_FIELD_NUMBER;
hash = (53 * hash) + repeatedPackedEnum_.hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Test messages for packed enum, with identical field number as
* Proto2Message, to test parsing unknown packed enums.
*
*
* Protobuf type {@code proto2_unknown_enum_values.Proto2EnumMessageWithEnumSubset}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builderrepeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @return A list containing the repeatedPackedEnum.
*/
public java.util.Listrepeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @return The count of repeatedPackedEnum.
*/
public int getRepeatedPackedEnumCount() {
return repeatedPackedEnum_.size();
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @param index The index of the element to return.
* @return The repeatedPackedEnum at the given index.
*/
public com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnumSubset getRepeatedPackedEnum(int index) {
return repeatedPackedEnum_converter_.convert(repeatedPackedEnum_.get(index));
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @param index The index to set the value at.
* @param value The repeatedPackedEnum to set.
* @return This builder for chaining.
*/
public Builder setRepeatedPackedEnum(
int index, com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnumSubset value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedPackedEnumIsMutable();
repeatedPackedEnum_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @param value The repeatedPackedEnum to add.
* @return This builder for chaining.
*/
public Builder addRepeatedPackedEnum(com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnumSubset value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepeatedPackedEnumIsMutable();
repeatedPackedEnum_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @param values The repeatedPackedEnum to add.
* @return This builder for chaining.
*/
public Builder addAllRepeatedPackedEnum(
java.lang.Iterable extends com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnumSubset> values) {
ensureRepeatedPackedEnumIsMutable();
for (com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2TestEnumSubset value : values) {
repeatedPackedEnum_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .proto2_unknown_enum_values.Proto2TestEnumSubset repeated_packed_enum = 1 [packed = true];
* @return This builder for chaining.
*/
public Builder clearRepeatedPackedEnum() {
repeatedPackedEnum_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:proto2_unknown_enum_values.Proto2EnumMessageWithEnumSubset)
}
// @@protoc_insertion_point(class_scope:proto2_unknown_enum_values.Proto2EnumMessageWithEnumSubset)
private static final com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset();
}
public static com.google.protobuf.Proto2UnknownEnumValuesTestProto.Proto2EnumMessageWithEnumSubset getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
* java.lang.Object
*
*
* optional bool class = 1;
* @return Whether the class field is set.
*/
boolean hasClass_();
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @return The class.
*/
boolean getClass_();
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool default_instance_for_type = 2;
* @return Whether the defaultInstanceForType field is set.
*/
boolean hasDefaultInstanceForType_();
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool default_instance_for_type = 2;
* @return The defaultInstanceForType.
*/
boolean getDefaultInstanceForType_();
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool parser_for_type = 3;
* @return Whether the parserForType field is set.
*/
boolean hasParserForType_();
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool parser_for_type = 3;
* @return The parserForType.
*/
boolean getParserForType_();
/**
* optional bool serialized_size = 4;
* @return Whether the serializedSize field is set.
*/
boolean hasSerializedSize_();
/**
* optional bool serialized_size = 4;
* @return The serializedSize.
*/
boolean getSerializedSize_();
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool all_fields = 5;
* @return Whether the allFields field is set.
*/
boolean hasAllFields_();
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool all_fields = 5;
* @return The allFields.
*/
boolean getAllFields_();
/**
* optional bool descriptor_for_type = 6;
* @return Whether the descriptorForType field is set.
*/
boolean hasDescriptorForType_();
/**
* optional bool descriptor_for_type = 6;
* @return The descriptorForType.
*/
boolean getDescriptorForType_();
/**
* optional bool initialization_error_string = 7;
* @return Whether the initializationErrorString field is set.
*/
boolean hasInitializationErrorString_();
/**
* optional bool initialization_error_string = 7;
* @return The initializationErrorString.
*/
boolean getInitializationErrorString_();
/**
* optional bool unknown_fields = 8;
* @return Whether the unknownFields field is set.
*/
boolean hasUnknownFields_();
/**
* optional bool unknown_fields = 8;
* @return The unknownFields.
*/
boolean getUnknownFields_();
/**
*
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cached_size = 9;
* @return Whether the cachedSize field is set.
*/
boolean hasCachedSize_();
/**
*
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cached_size = 9;
* @return The cachedSize.
*/
boolean getCachedSize_();
}
/**
* * Message with field names using underscores that conflict with accessors in * the base message class in java. See kForbiddenWordList in * src/google/protobuf/compiler/java/java_helpers.cc ** * Protobuf type {@code io_protocol_tests.ForbiddenWordsUnderscoreMessage} */ public static final class ForbiddenWordsUnderscoreMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io_protocol_tests.ForbiddenWordsUnderscoreMessage) ForbiddenWordsUnderscoreMessageOrBuilder { private static final long serialVersionUID = 0L; // Use ForbiddenWordsUnderscoreMessage.newBuilder() to construct. private ForbiddenWordsUnderscoreMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private ForbiddenWordsUnderscoreMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForbiddenWordsUnderscoreMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.TestBadIdentifiersProto.internal_static_io_protocol_tests_ForbiddenWordsUnderscoreMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.TestBadIdentifiersProto.internal_static_io_protocol_tests_ForbiddenWordsUnderscoreMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage.class, com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage.Builder.class); } private int bitField0_; public static final int CLASS_FIELD_NUMBER = 1; private boolean class__ = false; /** *
* java.lang.Object
*
*
* optional bool class = 1;
* @return Whether the class field is set.
*/
@java.lang.Override
public boolean hasClass_() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @return The class.
*/
@java.lang.Override
public boolean getClass_() {
return class__;
}
public static final int DEFAULT_INSTANCE_FOR_TYPE_FIELD_NUMBER = 2;
private boolean defaultInstanceForType__ = false;
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool default_instance_for_type = 2;
* @return Whether the defaultInstanceForType field is set.
*/
@java.lang.Override
public boolean hasDefaultInstanceForType_() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool default_instance_for_type = 2;
* @return The defaultInstanceForType.
*/
@java.lang.Override
public boolean getDefaultInstanceForType_() {
return defaultInstanceForType__;
}
public static final int PARSER_FOR_TYPE_FIELD_NUMBER = 3;
private boolean parserForType__ = false;
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool parser_for_type = 3;
* @return Whether the parserForType field is set.
*/
@java.lang.Override
public boolean hasParserForType_() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool parser_for_type = 3;
* @return The parserForType.
*/
@java.lang.Override
public boolean getParserForType_() {
return parserForType__;
}
public static final int SERIALIZED_SIZE_FIELD_NUMBER = 4;
private boolean serializedSize__ = false;
/**
* optional bool serialized_size = 4;
* @return Whether the serializedSize field is set.
*/
@java.lang.Override
public boolean hasSerializedSize_() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool serialized_size = 4;
* @return The serializedSize.
*/
@java.lang.Override
public boolean getSerializedSize_() {
return serializedSize__;
}
public static final int ALL_FIELDS_FIELD_NUMBER = 5;
private boolean allFields__ = false;
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool all_fields = 5;
* @return Whether the allFields field is set.
*/
@java.lang.Override
public boolean hasAllFields_() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool all_fields = 5;
* @return The allFields.
*/
@java.lang.Override
public boolean getAllFields_() {
return allFields__;
}
public static final int DESCRIPTOR_FOR_TYPE_FIELD_NUMBER = 6;
private boolean descriptorForType__ = false;
/**
* optional bool descriptor_for_type = 6;
* @return Whether the descriptorForType field is set.
*/
@java.lang.Override
public boolean hasDescriptorForType_() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool descriptor_for_type = 6;
* @return The descriptorForType.
*/
@java.lang.Override
public boolean getDescriptorForType_() {
return descriptorForType__;
}
public static final int INITIALIZATION_ERROR_STRING_FIELD_NUMBER = 7;
private boolean initializationErrorString__ = false;
/**
* optional bool initialization_error_string = 7;
* @return Whether the initializationErrorString field is set.
*/
@java.lang.Override
public boolean hasInitializationErrorString_() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool initialization_error_string = 7;
* @return The initializationErrorString.
*/
@java.lang.Override
public boolean getInitializationErrorString_() {
return initializationErrorString__;
}
public static final int UNKNOWN_FIELDS_FIELD_NUMBER = 8;
private boolean unknownFields__ = false;
/**
* optional bool unknown_fields = 8;
* @return Whether the unknownFields field is set.
*/
@java.lang.Override
public boolean hasUnknownFields_() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool unknown_fields = 8;
* @return The unknownFields.
*/
@java.lang.Override
public boolean getUnknownFields_() {
return unknownFields__;
}
public static final int CACHED_SIZE_FIELD_NUMBER = 9;
private boolean cachedSize__ = false;
/**
*
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cached_size = 9;
* @return Whether the cachedSize field is set.
*/
@java.lang.Override
public boolean hasCachedSize_() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cached_size = 9;
* @return The cachedSize.
*/
@java.lang.Override
public boolean getCachedSize_() {
return cachedSize__;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, class__);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, defaultInstanceForType__);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, parserForType__);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, serializedSize__);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, allFields__);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(6, descriptorForType__);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, initializationErrorString__);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(8, unknownFields__);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeBool(9, cachedSize__);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, class__);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, defaultInstanceForType__);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, parserForType__);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, serializedSize__);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, allFields__);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, descriptorForType__);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, initializationErrorString__);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, unknownFields__);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, cachedSize__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage)) {
return super.equals(obj);
}
com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage other = (com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage) obj;
if (hasClass_() != other.hasClass_()) return false;
if (hasClass_()) {
if (getClass_()
!= other.getClass_()) return false;
}
if (hasDefaultInstanceForType_() != other.hasDefaultInstanceForType_()) return false;
if (hasDefaultInstanceForType_()) {
if (getDefaultInstanceForType_()
!= other.getDefaultInstanceForType_()) return false;
}
if (hasParserForType_() != other.hasParserForType_()) return false;
if (hasParserForType_()) {
if (getParserForType_()
!= other.getParserForType_()) return false;
}
if (hasSerializedSize_() != other.hasSerializedSize_()) return false;
if (hasSerializedSize_()) {
if (getSerializedSize_()
!= other.getSerializedSize_()) return false;
}
if (hasAllFields_() != other.hasAllFields_()) return false;
if (hasAllFields_()) {
if (getAllFields_()
!= other.getAllFields_()) return false;
}
if (hasDescriptorForType_() != other.hasDescriptorForType_()) return false;
if (hasDescriptorForType_()) {
if (getDescriptorForType_()
!= other.getDescriptorForType_()) return false;
}
if (hasInitializationErrorString_() != other.hasInitializationErrorString_()) return false;
if (hasInitializationErrorString_()) {
if (getInitializationErrorString_()
!= other.getInitializationErrorString_()) return false;
}
if (hasUnknownFields_() != other.hasUnknownFields_()) return false;
if (hasUnknownFields_()) {
if (getUnknownFields_()
!= other.getUnknownFields_()) return false;
}
if (hasCachedSize_() != other.hasCachedSize_()) return false;
if (hasCachedSize_()) {
if (getCachedSize_()
!= other.getCachedSize_()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasClass_()) {
hash = (37 * hash) + CLASS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getClass_());
}
if (hasDefaultInstanceForType_()) {
hash = (37 * hash) + DEFAULT_INSTANCE_FOR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDefaultInstanceForType_());
}
if (hasParserForType_()) {
hash = (37 * hash) + PARSER_FOR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getParserForType_());
}
if (hasSerializedSize_()) {
hash = (37 * hash) + SERIALIZED_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSerializedSize_());
}
if (hasAllFields_()) {
hash = (37 * hash) + ALL_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllFields_());
}
if (hasDescriptorForType_()) {
hash = (37 * hash) + DESCRIPTOR_FOR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDescriptorForType_());
}
if (hasInitializationErrorString_()) {
hash = (37 * hash) + INITIALIZATION_ERROR_STRING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInitializationErrorString_());
}
if (hasUnknownFields_()) {
hash = (37 * hash) + UNKNOWN_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUnknownFields_());
}
if (hasCachedSize_()) {
hash = (37 * hash) + CACHED_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCachedSize_());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message with field names using underscores that conflict with accessors in
* the base message class in java. See kForbiddenWordList in
* src/google/protobuf/compiler/java/java_helpers.cc
*
*
* Protobuf type {@code io_protocol_tests.ForbiddenWordsUnderscoreMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
* java.lang.Object
*
*
* optional bool class = 1;
* @return Whether the class field is set.
*/
@java.lang.Override
public boolean hasClass_() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @return The class.
*/
@java.lang.Override
public boolean getClass_() {
return class__;
}
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @param value The class to set.
* @return This builder for chaining.
*/
public Builder setClass_(boolean value) {
class__ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @return This builder for chaining.
*/
public Builder clearClass_() {
bitField0_ = (bitField0_ & ~0x00000001);
class__ = false;
onChanged();
return this;
}
private boolean defaultInstanceForType__ ;
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool default_instance_for_type = 2;
* @return Whether the defaultInstanceForType field is set.
*/
@java.lang.Override
public boolean hasDefaultInstanceForType_() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool default_instance_for_type = 2;
* @return The defaultInstanceForType.
*/
@java.lang.Override
public boolean getDefaultInstanceForType_() {
return defaultInstanceForType__;
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool default_instance_for_type = 2;
* @param value The defaultInstanceForType to set.
* @return This builder for chaining.
*/
public Builder setDefaultInstanceForType_(boolean value) {
defaultInstanceForType__ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool default_instance_for_type = 2;
* @return This builder for chaining.
*/
public Builder clearDefaultInstanceForType_() {
bitField0_ = (bitField0_ & ~0x00000002);
defaultInstanceForType__ = false;
onChanged();
return this;
}
private boolean parserForType__ ;
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool parser_for_type = 3;
* @return Whether the parserForType field is set.
*/
@java.lang.Override
public boolean hasParserForType_() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool parser_for_type = 3;
* @return The parserForType.
*/
@java.lang.Override
public boolean getParserForType_() {
return parserForType__;
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool parser_for_type = 3;
* @param value The parserForType to set.
* @return This builder for chaining.
*/
public Builder setParserForType_(boolean value) {
parserForType__ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool parser_for_type = 3;
* @return This builder for chaining.
*/
public Builder clearParserForType_() {
bitField0_ = (bitField0_ & ~0x00000004);
parserForType__ = false;
onChanged();
return this;
}
private boolean serializedSize__ ;
/**
* optional bool serialized_size = 4;
* @return Whether the serializedSize field is set.
*/
@java.lang.Override
public boolean hasSerializedSize_() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool serialized_size = 4;
* @return The serializedSize.
*/
@java.lang.Override
public boolean getSerializedSize_() {
return serializedSize__;
}
/**
* optional bool serialized_size = 4;
* @param value The serializedSize to set.
* @return This builder for chaining.
*/
public Builder setSerializedSize_(boolean value) {
serializedSize__ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional bool serialized_size = 4;
* @return This builder for chaining.
*/
public Builder clearSerializedSize_() {
bitField0_ = (bitField0_ & ~0x00000008);
serializedSize__ = false;
onChanged();
return this;
}
private boolean allFields__ ;
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool all_fields = 5;
* @return Whether the allFields field is set.
*/
@java.lang.Override
public boolean hasAllFields_() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool all_fields = 5;
* @return The allFields.
*/
@java.lang.Override
public boolean getAllFields_() {
return allFields__;
}
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool all_fields = 5;
* @param value The allFields to set.
* @return This builder for chaining.
*/
public Builder setAllFields_(boolean value) {
allFields__ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool all_fields = 5;
* @return This builder for chaining.
*/
public Builder clearAllFields_() {
bitField0_ = (bitField0_ & ~0x00000010);
allFields__ = false;
onChanged();
return this;
}
private boolean descriptorForType__ ;
/**
* optional bool descriptor_for_type = 6;
* @return Whether the descriptorForType field is set.
*/
@java.lang.Override
public boolean hasDescriptorForType_() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool descriptor_for_type = 6;
* @return The descriptorForType.
*/
@java.lang.Override
public boolean getDescriptorForType_() {
return descriptorForType__;
}
/**
* optional bool descriptor_for_type = 6;
* @param value The descriptorForType to set.
* @return This builder for chaining.
*/
public Builder setDescriptorForType_(boolean value) {
descriptorForType__ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional bool descriptor_for_type = 6;
* @return This builder for chaining.
*/
public Builder clearDescriptorForType_() {
bitField0_ = (bitField0_ & ~0x00000020);
descriptorForType__ = false;
onChanged();
return this;
}
private boolean initializationErrorString__ ;
/**
* optional bool initialization_error_string = 7;
* @return Whether the initializationErrorString field is set.
*/
@java.lang.Override
public boolean hasInitializationErrorString_() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool initialization_error_string = 7;
* @return The initializationErrorString.
*/
@java.lang.Override
public boolean getInitializationErrorString_() {
return initializationErrorString__;
}
/**
* optional bool initialization_error_string = 7;
* @param value The initializationErrorString to set.
* @return This builder for chaining.
*/
public Builder setInitializationErrorString_(boolean value) {
initializationErrorString__ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional bool initialization_error_string = 7;
* @return This builder for chaining.
*/
public Builder clearInitializationErrorString_() {
bitField0_ = (bitField0_ & ~0x00000040);
initializationErrorString__ = false;
onChanged();
return this;
}
private boolean unknownFields__ ;
/**
* optional bool unknown_fields = 8;
* @return Whether the unknownFields field is set.
*/
@java.lang.Override
public boolean hasUnknownFields_() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional bool unknown_fields = 8;
* @return The unknownFields.
*/
@java.lang.Override
public boolean getUnknownFields_() {
return unknownFields__;
}
/**
* optional bool unknown_fields = 8;
* @param value The unknownFields to set.
* @return This builder for chaining.
*/
public Builder setUnknownFields_(boolean value) {
unknownFields__ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional bool unknown_fields = 8;
* @return This builder for chaining.
*/
public Builder clearUnknownFields_() {
bitField0_ = (bitField0_ & ~0x00000080);
unknownFields__ = false;
onChanged();
return this;
}
private boolean cachedSize__ ;
/**
*
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cached_size = 9;
* @return Whether the cachedSize field is set.
*/
@java.lang.Override
public boolean hasCachedSize_() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cached_size = 9;
* @return The cachedSize.
*/
@java.lang.Override
public boolean getCachedSize_() {
return cachedSize__;
}
/**
*
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cached_size = 9;
* @param value The cachedSize to set.
* @return This builder for chaining.
*/
public Builder setCachedSize_(boolean value) {
cachedSize__ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cached_size = 9;
* @return This builder for chaining.
*/
public Builder clearCachedSize_() {
bitField0_ = (bitField0_ & ~0x00000100);
cachedSize__ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io_protocol_tests.ForbiddenWordsUnderscoreMessage)
}
// @@protoc_insertion_point(class_scope:io_protocol_tests.ForbiddenWordsUnderscoreMessage)
private static final com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage();
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsUnderscoreMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
* java.lang.Object
*
*
* optional bool _class = 1;
* @return Whether the class field is set.
*/
boolean hasClass_();
/**
*
* java.lang.Object
*
*
* optional bool _class = 1;
* @return The class.
*/
boolean getClass_();
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool _default_instance_for_type = 2;
* @return Whether the defaultInstanceForType field is set.
*/
boolean hasDefaultInstanceForType_();
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool _default_instance_for_type = 2;
* @return The defaultInstanceForType.
*/
boolean getDefaultInstanceForType_();
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool _parser_for_type = 3;
* @return Whether the parserForType field is set.
*/
boolean hasParserForType_();
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool _parser_for_type = 3;
* @return The parserForType.
*/
boolean getParserForType_();
/**
* optional bool _serialized_size = 4;
* @return Whether the serializedSize field is set.
*/
boolean hasSerializedSize_();
/**
* optional bool _serialized_size = 4;
* @return The serializedSize.
*/
boolean getSerializedSize_();
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool _all_fields = 5;
* @return Whether the allFields field is set.
*/
boolean hasAllFields_();
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool _all_fields = 5;
* @return The allFields.
*/
boolean getAllFields_();
/**
* optional bool _descriptor_for_type = 6;
* @return Whether the descriptorForType field is set.
*/
boolean hasDescriptorForType_();
/**
* optional bool _descriptor_for_type = 6;
* @return The descriptorForType.
*/
boolean getDescriptorForType_();
/**
* optional bool _initialization_error_string = 7;
* @return Whether the initializationErrorString field is set.
*/
boolean hasInitializationErrorString_();
/**
* optional bool _initialization_error_string = 7;
* @return The initializationErrorString.
*/
boolean getInitializationErrorString_();
/**
*
* TODO: re-enable
* optional bool _unknown_fields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool _cached_size = 9;
* @return Whether the cachedSize field is set.
*/
boolean hasCachedSize_();
/**
*
* TODO: re-enable
* optional bool _unknown_fields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool _cached_size = 9;
* @return The cachedSize.
*/
boolean getCachedSize_();
}
/**
* * Message with field names using leading underscores that conflict with * accessors in the base message class in java. See kForbiddenWordList in * src/google/protobuf/compiler/java/java_helpers.cc ** * Protobuf type {@code io_protocol_tests.ForbiddenWordsLeadingUnderscoreMessage} */ public static final class ForbiddenWordsLeadingUnderscoreMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io_protocol_tests.ForbiddenWordsLeadingUnderscoreMessage) ForbiddenWordsLeadingUnderscoreMessageOrBuilder { private static final long serialVersionUID = 0L; // Use ForbiddenWordsLeadingUnderscoreMessage.newBuilder() to construct. private ForbiddenWordsLeadingUnderscoreMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private ForbiddenWordsLeadingUnderscoreMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForbiddenWordsLeadingUnderscoreMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.TestBadIdentifiersProto.internal_static_io_protocol_tests_ForbiddenWordsLeadingUnderscoreMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.TestBadIdentifiersProto.internal_static_io_protocol_tests_ForbiddenWordsLeadingUnderscoreMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage.class, com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage.Builder.class); } private int bitField0_; public static final int _CLASS_FIELD_NUMBER = 1; private boolean Class__ = false; /** *
* java.lang.Object
*
*
* optional bool _class = 1;
* @return Whether the class field is set.
*/
@java.lang.Override
public boolean hasClass_() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* java.lang.Object
*
*
* optional bool _class = 1;
* @return The class.
*/
@java.lang.Override
public boolean getClass_() {
return Class__;
}
public static final int _DEFAULT_INSTANCE_FOR_TYPE_FIELD_NUMBER = 2;
private boolean DefaultInstanceForType__ = false;
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool _default_instance_for_type = 2;
* @return Whether the defaultInstanceForType field is set.
*/
@java.lang.Override
public boolean hasDefaultInstanceForType_() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool _default_instance_for_type = 2;
* @return The defaultInstanceForType.
*/
@java.lang.Override
public boolean getDefaultInstanceForType_() {
return DefaultInstanceForType__;
}
public static final int _PARSER_FOR_TYPE_FIELD_NUMBER = 3;
private boolean ParserForType__ = false;
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool _parser_for_type = 3;
* @return Whether the parserForType field is set.
*/
@java.lang.Override
public boolean hasParserForType_() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool _parser_for_type = 3;
* @return The parserForType.
*/
@java.lang.Override
public boolean getParserForType_() {
return ParserForType__;
}
public static final int _SERIALIZED_SIZE_FIELD_NUMBER = 4;
private boolean SerializedSize__ = false;
/**
* optional bool _serialized_size = 4;
* @return Whether the serializedSize field is set.
*/
@java.lang.Override
public boolean hasSerializedSize_() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool _serialized_size = 4;
* @return The serializedSize.
*/
@java.lang.Override
public boolean getSerializedSize_() {
return SerializedSize__;
}
public static final int _ALL_FIELDS_FIELD_NUMBER = 5;
private boolean AllFields__ = false;
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool _all_fields = 5;
* @return Whether the allFields field is set.
*/
@java.lang.Override
public boolean hasAllFields_() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool _all_fields = 5;
* @return The allFields.
*/
@java.lang.Override
public boolean getAllFields_() {
return AllFields__;
}
public static final int _DESCRIPTOR_FOR_TYPE_FIELD_NUMBER = 6;
private boolean DescriptorForType__ = false;
/**
* optional bool _descriptor_for_type = 6;
* @return Whether the descriptorForType field is set.
*/
@java.lang.Override
public boolean hasDescriptorForType_() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool _descriptor_for_type = 6;
* @return The descriptorForType.
*/
@java.lang.Override
public boolean getDescriptorForType_() {
return DescriptorForType__;
}
public static final int _INITIALIZATION_ERROR_STRING_FIELD_NUMBER = 7;
private boolean InitializationErrorString__ = false;
/**
* optional bool _initialization_error_string = 7;
* @return Whether the initializationErrorString field is set.
*/
@java.lang.Override
public boolean hasInitializationErrorString_() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool _initialization_error_string = 7;
* @return The initializationErrorString.
*/
@java.lang.Override
public boolean getInitializationErrorString_() {
return InitializationErrorString__;
}
public static final int _CACHED_SIZE_FIELD_NUMBER = 9;
private boolean CachedSize__ = false;
/**
*
* TODO: re-enable
* optional bool _unknown_fields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool _cached_size = 9;
* @return Whether the cachedSize field is set.
*/
@java.lang.Override
public boolean hasCachedSize_() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* TODO: re-enable
* optional bool _unknown_fields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool _cached_size = 9;
* @return The cachedSize.
*/
@java.lang.Override
public boolean getCachedSize_() {
return CachedSize__;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, Class__);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, DefaultInstanceForType__);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, ParserForType__);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, SerializedSize__);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, AllFields__);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(6, DescriptorForType__);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, InitializationErrorString__);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(9, CachedSize__);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, Class__);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, DefaultInstanceForType__);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, ParserForType__);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, SerializedSize__);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, AllFields__);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, DescriptorForType__);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, InitializationErrorString__);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, CachedSize__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage)) {
return super.equals(obj);
}
com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage other = (com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage) obj;
if (hasClass_() != other.hasClass_()) return false;
if (hasClass_()) {
if (getClass_()
!= other.getClass_()) return false;
}
if (hasDefaultInstanceForType_() != other.hasDefaultInstanceForType_()) return false;
if (hasDefaultInstanceForType_()) {
if (getDefaultInstanceForType_()
!= other.getDefaultInstanceForType_()) return false;
}
if (hasParserForType_() != other.hasParserForType_()) return false;
if (hasParserForType_()) {
if (getParserForType_()
!= other.getParserForType_()) return false;
}
if (hasSerializedSize_() != other.hasSerializedSize_()) return false;
if (hasSerializedSize_()) {
if (getSerializedSize_()
!= other.getSerializedSize_()) return false;
}
if (hasAllFields_() != other.hasAllFields_()) return false;
if (hasAllFields_()) {
if (getAllFields_()
!= other.getAllFields_()) return false;
}
if (hasDescriptorForType_() != other.hasDescriptorForType_()) return false;
if (hasDescriptorForType_()) {
if (getDescriptorForType_()
!= other.getDescriptorForType_()) return false;
}
if (hasInitializationErrorString_() != other.hasInitializationErrorString_()) return false;
if (hasInitializationErrorString_()) {
if (getInitializationErrorString_()
!= other.getInitializationErrorString_()) return false;
}
if (hasCachedSize_() != other.hasCachedSize_()) return false;
if (hasCachedSize_()) {
if (getCachedSize_()
!= other.getCachedSize_()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasClass_()) {
hash = (37 * hash) + _CLASS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getClass_());
}
if (hasDefaultInstanceForType_()) {
hash = (37 * hash) + _DEFAULT_INSTANCE_FOR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDefaultInstanceForType_());
}
if (hasParserForType_()) {
hash = (37 * hash) + _PARSER_FOR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getParserForType_());
}
if (hasSerializedSize_()) {
hash = (37 * hash) + _SERIALIZED_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSerializedSize_());
}
if (hasAllFields_()) {
hash = (37 * hash) + _ALL_FIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllFields_());
}
if (hasDescriptorForType_()) {
hash = (37 * hash) + _DESCRIPTOR_FOR_TYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDescriptorForType_());
}
if (hasInitializationErrorString_()) {
hash = (37 * hash) + _INITIALIZATION_ERROR_STRING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInitializationErrorString_());
}
if (hasCachedSize_()) {
hash = (37 * hash) + _CACHED_SIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCachedSize_());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message with field names using leading underscores that conflict with
* accessors in the base message class in java. See kForbiddenWordList in
* src/google/protobuf/compiler/java/java_helpers.cc
*
*
* Protobuf type {@code io_protocol_tests.ForbiddenWordsLeadingUnderscoreMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
* java.lang.Object
*
*
* optional bool _class = 1;
* @return Whether the class field is set.
*/
@java.lang.Override
public boolean hasClass_() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* java.lang.Object
*
*
* optional bool _class = 1;
* @return The class.
*/
@java.lang.Override
public boolean getClass_() {
return Class__;
}
/**
*
* java.lang.Object
*
*
* optional bool _class = 1;
* @param value The class to set.
* @return This builder for chaining.
*/
public Builder setClass_(boolean value) {
Class__ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* java.lang.Object
*
*
* optional bool _class = 1;
* @return This builder for chaining.
*/
public Builder clearClass_() {
bitField0_ = (bitField0_ & ~0x00000001);
Class__ = false;
onChanged();
return this;
}
private boolean DefaultInstanceForType__ ;
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool _default_instance_for_type = 2;
* @return Whether the defaultInstanceForType field is set.
*/
@java.lang.Override
public boolean hasDefaultInstanceForType_() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool _default_instance_for_type = 2;
* @return The defaultInstanceForType.
*/
@java.lang.Override
public boolean getDefaultInstanceForType_() {
return DefaultInstanceForType__;
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool _default_instance_for_type = 2;
* @param value The defaultInstanceForType to set.
* @return This builder for chaining.
*/
public Builder setDefaultInstanceForType_(boolean value) {
DefaultInstanceForType__ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool _default_instance_for_type = 2;
* @return This builder for chaining.
*/
public Builder clearDefaultInstanceForType_() {
bitField0_ = (bitField0_ & ~0x00000002);
DefaultInstanceForType__ = false;
onChanged();
return this;
}
private boolean ParserForType__ ;
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool _parser_for_type = 3;
* @return Whether the parserForType field is set.
*/
@java.lang.Override
public boolean hasParserForType_() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool _parser_for_type = 3;
* @return The parserForType.
*/
@java.lang.Override
public boolean getParserForType_() {
return ParserForType__;
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool _parser_for_type = 3;
* @param value The parserForType to set.
* @return This builder for chaining.
*/
public Builder setParserForType_(boolean value) {
ParserForType__ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool _parser_for_type = 3;
* @return This builder for chaining.
*/
public Builder clearParserForType_() {
bitField0_ = (bitField0_ & ~0x00000004);
ParserForType__ = false;
onChanged();
return this;
}
private boolean SerializedSize__ ;
/**
* optional bool _serialized_size = 4;
* @return Whether the serializedSize field is set.
*/
@java.lang.Override
public boolean hasSerializedSize_() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool _serialized_size = 4;
* @return The serializedSize.
*/
@java.lang.Override
public boolean getSerializedSize_() {
return SerializedSize__;
}
/**
* optional bool _serialized_size = 4;
* @param value The serializedSize to set.
* @return This builder for chaining.
*/
public Builder setSerializedSize_(boolean value) {
SerializedSize__ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional bool _serialized_size = 4;
* @return This builder for chaining.
*/
public Builder clearSerializedSize_() {
bitField0_ = (bitField0_ & ~0x00000008);
SerializedSize__ = false;
onChanged();
return this;
}
private boolean AllFields__ ;
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool _all_fields = 5;
* @return Whether the allFields field is set.
*/
@java.lang.Override
public boolean hasAllFields_() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool _all_fields = 5;
* @return The allFields.
*/
@java.lang.Override
public boolean getAllFields_() {
return AllFields__;
}
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool _all_fields = 5;
* @param value The allFields to set.
* @return This builder for chaining.
*/
public Builder setAllFields_(boolean value) {
AllFields__ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageOrBuilder
*
*
* optional bool _all_fields = 5;
* @return This builder for chaining.
*/
public Builder clearAllFields_() {
bitField0_ = (bitField0_ & ~0x00000010);
AllFields__ = false;
onChanged();
return this;
}
private boolean DescriptorForType__ ;
/**
* optional bool _descriptor_for_type = 6;
* @return Whether the descriptorForType field is set.
*/
@java.lang.Override
public boolean hasDescriptorForType_() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool _descriptor_for_type = 6;
* @return The descriptorForType.
*/
@java.lang.Override
public boolean getDescriptorForType_() {
return DescriptorForType__;
}
/**
* optional bool _descriptor_for_type = 6;
* @param value The descriptorForType to set.
* @return This builder for chaining.
*/
public Builder setDescriptorForType_(boolean value) {
DescriptorForType__ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional bool _descriptor_for_type = 6;
* @return This builder for chaining.
*/
public Builder clearDescriptorForType_() {
bitField0_ = (bitField0_ & ~0x00000020);
DescriptorForType__ = false;
onChanged();
return this;
}
private boolean InitializationErrorString__ ;
/**
* optional bool _initialization_error_string = 7;
* @return Whether the initializationErrorString field is set.
*/
@java.lang.Override
public boolean hasInitializationErrorString_() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool _initialization_error_string = 7;
* @return The initializationErrorString.
*/
@java.lang.Override
public boolean getInitializationErrorString_() {
return InitializationErrorString__;
}
/**
* optional bool _initialization_error_string = 7;
* @param value The initializationErrorString to set.
* @return This builder for chaining.
*/
public Builder setInitializationErrorString_(boolean value) {
InitializationErrorString__ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional bool _initialization_error_string = 7;
* @return This builder for chaining.
*/
public Builder clearInitializationErrorString_() {
bitField0_ = (bitField0_ & ~0x00000040);
InitializationErrorString__ = false;
onChanged();
return this;
}
private boolean CachedSize__ ;
/**
*
* TODO: re-enable
* optional bool _unknown_fields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool _cached_size = 9;
* @return Whether the cachedSize field is set.
*/
@java.lang.Override
public boolean hasCachedSize_() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* TODO: re-enable
* optional bool _unknown_fields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool _cached_size = 9;
* @return The cachedSize.
*/
@java.lang.Override
public boolean getCachedSize_() {
return CachedSize__;
}
/**
*
* TODO: re-enable
* optional bool _unknown_fields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool _cached_size = 9;
* @param value The cachedSize to set.
* @return This builder for chaining.
*/
public Builder setCachedSize_(boolean value) {
CachedSize__ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* TODO: re-enable
* optional bool _unknown_fields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool _cached_size = 9;
* @return This builder for chaining.
*/
public Builder clearCachedSize_() {
bitField0_ = (bitField0_ & ~0x00000080);
CachedSize__ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io_protocol_tests.ForbiddenWordsLeadingUnderscoreMessage)
}
// @@protoc_insertion_point(class_scope:io_protocol_tests.ForbiddenWordsLeadingUnderscoreMessage)
private static final com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage();
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsLeadingUnderscoreMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
* java.lang.Object
*
*
* optional bool class = 1;
* @return Whether the class field is set.
*/
boolean hasClass_();
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @return The class.
*/
boolean getClass_();
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool defaultInstanceForType = 2;
* @return Whether the defaultInstanceForType field is set.
*/
boolean hasDefaultInstanceForType_();
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool defaultInstanceForType = 2;
* @return The defaultInstanceForType.
*/
boolean getDefaultInstanceForType_();
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool serializedSize = 3;
* @return Whether the serializedSize field is set.
*/
boolean hasSerializedSize_();
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool serializedSize = 3;
* @return The serializedSize.
*/
boolean getSerializedSize_();
/**
* optional bool parserForType = 4;
* @return Whether the parserForType field is set.
*/
boolean hasParserForType_();
/**
* optional bool parserForType = 4;
* @return The parserForType.
*/
boolean getParserForType_();
/**
*
* com.google.protobuf.MessageOrBuilder:
*
*
* optional bool initializationErrorString = 5;
* @return Whether the initializationErrorString field is set.
*/
boolean hasInitializationErrorString_();
/**
*
* com.google.protobuf.MessageOrBuilder:
*
*
* optional bool initializationErrorString = 5;
* @return The initializationErrorString.
*/
boolean getInitializationErrorString_();
/**
* optional bool descriptorForType = 6;
* @return Whether the descriptorForType field is set.
*/
boolean hasDescriptorForType_();
/**
* optional bool descriptorForType = 6;
* @return The descriptorForType.
*/
boolean getDescriptorForType_();
/**
* optional bool allFields = 7;
* @return Whether the allFields field is set.
*/
boolean hasAllFields_();
/**
* optional bool allFields = 7;
* @return The allFields.
*/
boolean getAllFields_();
/**
*
* TODO: re-enable
* optional bool unknownFields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cachedSize = 9;
* @return Whether the cachedSize field is set.
*/
boolean hasCachedSize_();
/**
*
* TODO: re-enable
* optional bool unknownFields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cachedSize = 9;
* @return The cachedSize.
*/
boolean getCachedSize_();
}
/**
* * Message with field names in camel case that conflict with accessors in the * base message class in java. See kForbiddenWordList in * src/google/protobuf/compiler/java/java_helpers.cc ** * Protobuf type {@code io_protocol_tests.ForbiddenWordsCamelMessage} */ public static final class ForbiddenWordsCamelMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io_protocol_tests.ForbiddenWordsCamelMessage) ForbiddenWordsCamelMessageOrBuilder { private static final long serialVersionUID = 0L; // Use ForbiddenWordsCamelMessage.newBuilder() to construct. private ForbiddenWordsCamelMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private ForbiddenWordsCamelMessage() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ForbiddenWordsCamelMessage(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.protobuf.TestBadIdentifiersProto.internal_static_io_protocol_tests_ForbiddenWordsCamelMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.protobuf.TestBadIdentifiersProto.internal_static_io_protocol_tests_ForbiddenWordsCamelMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage.class, com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage.Builder.class); } private int bitField0_; public static final int CLASS_FIELD_NUMBER = 1; private boolean class__ = false; /** *
* java.lang.Object
*
*
* optional bool class = 1;
* @return Whether the class field is set.
*/
@java.lang.Override
public boolean hasClass_() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @return The class.
*/
@java.lang.Override
public boolean getClass_() {
return class__;
}
public static final int DEFAULTINSTANCEFORTYPE_FIELD_NUMBER = 2;
private boolean defaultInstanceForType__ = false;
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool defaultInstanceForType = 2;
* @return Whether the defaultInstanceForType field is set.
*/
@java.lang.Override
public boolean hasDefaultInstanceForType_() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool defaultInstanceForType = 2;
* @return The defaultInstanceForType.
*/
@java.lang.Override
public boolean getDefaultInstanceForType_() {
return defaultInstanceForType__;
}
public static final int SERIALIZEDSIZE_FIELD_NUMBER = 3;
private boolean serializedSize__ = false;
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool serializedSize = 3;
* @return Whether the serializedSize field is set.
*/
@java.lang.Override
public boolean hasSerializedSize_() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool serializedSize = 3;
* @return The serializedSize.
*/
@java.lang.Override
public boolean getSerializedSize_() {
return serializedSize__;
}
public static final int PARSERFORTYPE_FIELD_NUMBER = 4;
private boolean parserForType__ = false;
/**
* optional bool parserForType = 4;
* @return Whether the parserForType field is set.
*/
@java.lang.Override
public boolean hasParserForType_() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool parserForType = 4;
* @return The parserForType.
*/
@java.lang.Override
public boolean getParserForType_() {
return parserForType__;
}
public static final int INITIALIZATIONERRORSTRING_FIELD_NUMBER = 5;
private boolean initializationErrorString__ = false;
/**
*
* com.google.protobuf.MessageOrBuilder:
*
*
* optional bool initializationErrorString = 5;
* @return Whether the initializationErrorString field is set.
*/
@java.lang.Override
public boolean hasInitializationErrorString_() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* com.google.protobuf.MessageOrBuilder:
*
*
* optional bool initializationErrorString = 5;
* @return The initializationErrorString.
*/
@java.lang.Override
public boolean getInitializationErrorString_() {
return initializationErrorString__;
}
public static final int DESCRIPTORFORTYPE_FIELD_NUMBER = 6;
private boolean descriptorForType__ = false;
/**
* optional bool descriptorForType = 6;
* @return Whether the descriptorForType field is set.
*/
@java.lang.Override
public boolean hasDescriptorForType_() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool descriptorForType = 6;
* @return The descriptorForType.
*/
@java.lang.Override
public boolean getDescriptorForType_() {
return descriptorForType__;
}
public static final int ALLFIELDS_FIELD_NUMBER = 7;
private boolean allFields__ = false;
/**
* optional bool allFields = 7;
* @return Whether the allFields field is set.
*/
@java.lang.Override
public boolean hasAllFields_() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool allFields = 7;
* @return The allFields.
*/
@java.lang.Override
public boolean getAllFields_() {
return allFields__;
}
public static final int CACHEDSIZE_FIELD_NUMBER = 9;
private boolean cachedSize__ = false;
/**
*
* TODO: re-enable
* optional bool unknownFields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cachedSize = 9;
* @return Whether the cachedSize field is set.
*/
@java.lang.Override
public boolean hasCachedSize_() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* TODO: re-enable
* optional bool unknownFields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cachedSize = 9;
* @return The cachedSize.
*/
@java.lang.Override
public boolean getCachedSize_() {
return cachedSize__;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, class__);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, defaultInstanceForType__);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, serializedSize__);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(4, parserForType__);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(5, initializationErrorString__);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(6, descriptorForType__);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(7, allFields__);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(9, cachedSize__);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, class__);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, defaultInstanceForType__);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, serializedSize__);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, parserForType__);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, initializationErrorString__);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, descriptorForType__);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, allFields__);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, cachedSize__);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage)) {
return super.equals(obj);
}
com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage other = (com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage) obj;
if (hasClass_() != other.hasClass_()) return false;
if (hasClass_()) {
if (getClass_()
!= other.getClass_()) return false;
}
if (hasDefaultInstanceForType_() != other.hasDefaultInstanceForType_()) return false;
if (hasDefaultInstanceForType_()) {
if (getDefaultInstanceForType_()
!= other.getDefaultInstanceForType_()) return false;
}
if (hasSerializedSize_() != other.hasSerializedSize_()) return false;
if (hasSerializedSize_()) {
if (getSerializedSize_()
!= other.getSerializedSize_()) return false;
}
if (hasParserForType_() != other.hasParserForType_()) return false;
if (hasParserForType_()) {
if (getParserForType_()
!= other.getParserForType_()) return false;
}
if (hasInitializationErrorString_() != other.hasInitializationErrorString_()) return false;
if (hasInitializationErrorString_()) {
if (getInitializationErrorString_()
!= other.getInitializationErrorString_()) return false;
}
if (hasDescriptorForType_() != other.hasDescriptorForType_()) return false;
if (hasDescriptorForType_()) {
if (getDescriptorForType_()
!= other.getDescriptorForType_()) return false;
}
if (hasAllFields_() != other.hasAllFields_()) return false;
if (hasAllFields_()) {
if (getAllFields_()
!= other.getAllFields_()) return false;
}
if (hasCachedSize_() != other.hasCachedSize_()) return false;
if (hasCachedSize_()) {
if (getCachedSize_()
!= other.getCachedSize_()) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasClass_()) {
hash = (37 * hash) + CLASS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getClass_());
}
if (hasDefaultInstanceForType_()) {
hash = (37 * hash) + DEFAULTINSTANCEFORTYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDefaultInstanceForType_());
}
if (hasSerializedSize_()) {
hash = (37 * hash) + SERIALIZEDSIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSerializedSize_());
}
if (hasParserForType_()) {
hash = (37 * hash) + PARSERFORTYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getParserForType_());
}
if (hasInitializationErrorString_()) {
hash = (37 * hash) + INITIALIZATIONERRORSTRING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getInitializationErrorString_());
}
if (hasDescriptorForType_()) {
hash = (37 * hash) + DESCRIPTORFORTYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDescriptorForType_());
}
if (hasAllFields_()) {
hash = (37 * hash) + ALLFIELDS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllFields_());
}
if (hasCachedSize_()) {
hash = (37 * hash) + CACHEDSIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getCachedSize_());
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message with field names in camel case that conflict with accessors in the
* base message class in java. See kForbiddenWordList in
* src/google/protobuf/compiler/java/java_helpers.cc
*
*
* Protobuf type {@code io_protocol_tests.ForbiddenWordsCamelMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder
* java.lang.Object
*
*
* optional bool class = 1;
* @return Whether the class field is set.
*/
@java.lang.Override
public boolean hasClass_() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @return The class.
*/
@java.lang.Override
public boolean getClass_() {
return class__;
}
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @param value The class to set.
* @return This builder for chaining.
*/
public Builder setClass_(boolean value) {
class__ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* java.lang.Object
*
*
* optional bool class = 1;
* @return This builder for chaining.
*/
public Builder clearClass_() {
bitField0_ = (bitField0_ & ~0x00000001);
class__ = false;
onChanged();
return this;
}
private boolean defaultInstanceForType__ ;
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool defaultInstanceForType = 2;
* @return Whether the defaultInstanceForType field is set.
*/
@java.lang.Override
public boolean hasDefaultInstanceForType_() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool defaultInstanceForType = 2;
* @return The defaultInstanceForType.
*/
@java.lang.Override
public boolean getDefaultInstanceForType_() {
return defaultInstanceForType__;
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool defaultInstanceForType = 2;
* @param value The defaultInstanceForType to set.
* @return This builder for chaining.
*/
public Builder setDefaultInstanceForType_(boolean value) {
defaultInstanceForType__ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageLiteOrBuilder
*
*
* optional bool defaultInstanceForType = 2;
* @return This builder for chaining.
*/
public Builder clearDefaultInstanceForType_() {
bitField0_ = (bitField0_ & ~0x00000002);
defaultInstanceForType__ = false;
onChanged();
return this;
}
private boolean serializedSize__ ;
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool serializedSize = 3;
* @return Whether the serializedSize field is set.
*/
@java.lang.Override
public boolean hasSerializedSize_() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool serializedSize = 3;
* @return The serializedSize.
*/
@java.lang.Override
public boolean getSerializedSize_() {
return serializedSize__;
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool serializedSize = 3;
* @param value The serializedSize to set.
* @return This builder for chaining.
*/
public Builder setSerializedSize_(boolean value) {
serializedSize__ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageLite
*
*
* optional bool serializedSize = 3;
* @return This builder for chaining.
*/
public Builder clearSerializedSize_() {
bitField0_ = (bitField0_ & ~0x00000004);
serializedSize__ = false;
onChanged();
return this;
}
private boolean parserForType__ ;
/**
* optional bool parserForType = 4;
* @return Whether the parserForType field is set.
*/
@java.lang.Override
public boolean hasParserForType_() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional bool parserForType = 4;
* @return The parserForType.
*/
@java.lang.Override
public boolean getParserForType_() {
return parserForType__;
}
/**
* optional bool parserForType = 4;
* @param value The parserForType to set.
* @return This builder for chaining.
*/
public Builder setParserForType_(boolean value) {
parserForType__ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional bool parserForType = 4;
* @return This builder for chaining.
*/
public Builder clearParserForType_() {
bitField0_ = (bitField0_ & ~0x00000008);
parserForType__ = false;
onChanged();
return this;
}
private boolean initializationErrorString__ ;
/**
*
* com.google.protobuf.MessageOrBuilder:
*
*
* optional bool initializationErrorString = 5;
* @return Whether the initializationErrorString field is set.
*/
@java.lang.Override
public boolean hasInitializationErrorString_() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* com.google.protobuf.MessageOrBuilder:
*
*
* optional bool initializationErrorString = 5;
* @return The initializationErrorString.
*/
@java.lang.Override
public boolean getInitializationErrorString_() {
return initializationErrorString__;
}
/**
*
* com.google.protobuf.MessageOrBuilder:
*
*
* optional bool initializationErrorString = 5;
* @param value The initializationErrorString to set.
* @return This builder for chaining.
*/
public Builder setInitializationErrorString_(boolean value) {
initializationErrorString__ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* com.google.protobuf.MessageOrBuilder:
*
*
* optional bool initializationErrorString = 5;
* @return This builder for chaining.
*/
public Builder clearInitializationErrorString_() {
bitField0_ = (bitField0_ & ~0x00000010);
initializationErrorString__ = false;
onChanged();
return this;
}
private boolean descriptorForType__ ;
/**
* optional bool descriptorForType = 6;
* @return Whether the descriptorForType field is set.
*/
@java.lang.Override
public boolean hasDescriptorForType_() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool descriptorForType = 6;
* @return The descriptorForType.
*/
@java.lang.Override
public boolean getDescriptorForType_() {
return descriptorForType__;
}
/**
* optional bool descriptorForType = 6;
* @param value The descriptorForType to set.
* @return This builder for chaining.
*/
public Builder setDescriptorForType_(boolean value) {
descriptorForType__ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional bool descriptorForType = 6;
* @return This builder for chaining.
*/
public Builder clearDescriptorForType_() {
bitField0_ = (bitField0_ & ~0x00000020);
descriptorForType__ = false;
onChanged();
return this;
}
private boolean allFields__ ;
/**
* optional bool allFields = 7;
* @return Whether the allFields field is set.
*/
@java.lang.Override
public boolean hasAllFields_() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool allFields = 7;
* @return The allFields.
*/
@java.lang.Override
public boolean getAllFields_() {
return allFields__;
}
/**
* optional bool allFields = 7;
* @param value The allFields to set.
* @return This builder for chaining.
*/
public Builder setAllFields_(boolean value) {
allFields__ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional bool allFields = 7;
* @return This builder for chaining.
*/
public Builder clearAllFields_() {
bitField0_ = (bitField0_ & ~0x00000040);
allFields__ = false;
onChanged();
return this;
}
private boolean cachedSize__ ;
/**
*
* TODO: re-enable
* optional bool unknownFields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cachedSize = 9;
* @return Whether the cachedSize field is set.
*/
@java.lang.Override
public boolean hasCachedSize_() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* TODO: re-enable
* optional bool unknownFields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cachedSize = 9;
* @return The cachedSize.
*/
@java.lang.Override
public boolean getCachedSize_() {
return cachedSize__;
}
/**
*
* TODO: re-enable
* optional bool unknownFields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cachedSize = 9;
* @param value The cachedSize to set.
* @return This builder for chaining.
*/
public Builder setCachedSize_(boolean value) {
cachedSize__ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* TODO: re-enable
* optional bool unknownFields = 8;
* obsolete. kept for backwards compatibility of generated code
*
*
* optional bool cachedSize = 9;
* @return This builder for chaining.
*/
public Builder clearCachedSize_() {
bitField0_ = (bitField0_ & ~0x00000080);
cachedSize__ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io_protocol_tests.ForbiddenWordsCamelMessage)
}
// @@protoc_insertion_point(class_scope:io_protocol_tests.ForbiddenWordsCamelMessage)
private static final com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage();
}
public static com.google.protobuf.TestBadIdentifiersProto.ForbiddenWordsCamelMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser