Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.apache.flink.formats.protobuf.testproto.NullTest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: null_test.proto
package org.apache.flink.formats.protobuf.testproto;
/**
* Protobuf type {@code org.apache.flink.formats.protobuf.testproto.NullTest}
*/
public final class NullTest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.apache.flink.formats.protobuf.testproto.NullTest)
NullTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use NullTest.newBuilder() to construct.
private NullTest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private NullTest() {
stringArray_ = com.google.protobuf.LazyStringArrayList.EMPTY;
intArray_ = emptyIntList();
longArray_ = emptyLongList();
booleanArray_ = emptyBooleanList();
floatArray_ = emptyFloatList();
doubleArray_ = emptyDoubleList();
enumArray_ = java.util.Collections.emptyList();
messageArray_ = java.util.Collections.emptyList();
bytesArray_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NullTest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NullTest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
stringMap_ = com.google.protobuf.MapField.newMapField(
StringMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
stringMap__ = input.readMessage(
StringMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
stringMap_.getMutableMap().put(
stringMap__.getKey(), stringMap__.getValue());
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
intMap_ = com.google.protobuf.MapField.newMapField(
IntMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
intMap__ = input.readMessage(
IntMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
intMap_.getMutableMap().put(
intMap__.getKey(), intMap__.getValue());
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
longMap_ = com.google.protobuf.MapField.newMapField(
LongMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
longMap__ = input.readMessage(
LongMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
longMap_.getMutableMap().put(
longMap__.getKey(), longMap__.getValue());
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
booleanMap_ = com.google.protobuf.MapField.newMapField(
BooleanMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000008;
}
com.google.protobuf.MapEntry
booleanMap__ = input.readMessage(
BooleanMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
booleanMap_.getMutableMap().put(
booleanMap__.getKey(), booleanMap__.getValue());
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
floatMap_ = com.google.protobuf.MapField.newMapField(
FloatMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000010;
}
com.google.protobuf.MapEntry
floatMap__ = input.readMessage(
FloatMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
floatMap_.getMutableMap().put(
floatMap__.getKey(), floatMap__.getValue());
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
doubleMap_ = com.google.protobuf.MapField.newMapField(
DoubleMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000020;
}
com.google.protobuf.MapEntry
doubleMap__ = input.readMessage(
DoubleMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
doubleMap_.getMutableMap().put(
doubleMap__.getKey(), doubleMap__.getValue());
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
enumMap_ = com.google.protobuf.MapField.newMapField(
EnumMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000040;
}
com.google.protobuf.ByteString bytes = input.readBytes();
com.google.protobuf.MapEntry
enumMap__ = EnumMapDefaultEntryHolder.defaultEntry.getParserForType().parseFrom(bytes);
if (org.apache.flink.formats.protobuf.testproto.NullTest.Corpus.forNumber(enumMap__.getValue()) == null) {
unknownFields.mergeLengthDelimitedField(7, bytes);
} else {
enumMap_.getMutableMap().put(
enumMap__.getKey(), enumMap__.getValue());
}
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
messageMap_ = com.google.protobuf.MapField.newMapField(
MessageMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000080;
}
com.google.protobuf.MapEntry
messageMap__ = input.readMessage(
MessageMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
messageMap_.getMutableMap().put(
messageMap__.getKey(), messageMap__.getValue());
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000100) != 0)) {
bytesMap_ = com.google.protobuf.MapField.newMapField(
BytesMapDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000100;
}
com.google.protobuf.MapEntry
bytesMap__ = input.readMessage(
BytesMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
bytesMap_.getMutableMap().put(
bytesMap__.getKey(), bytesMap__.getValue());
break;
}
case 82: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
stringArray_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000200;
}
stringArray_.add(bs);
break;
}
case 88: {
if (!((mutable_bitField0_ & 0x00000400) != 0)) {
intArray_ = newIntList();
mutable_bitField0_ |= 0x00000400;
}
intArray_.addInt(input.readInt32());
break;
}
case 90: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000400) != 0) && input.getBytesUntilLimit() > 0) {
intArray_ = newIntList();
mutable_bitField0_ |= 0x00000400;
}
while (input.getBytesUntilLimit() > 0) {
intArray_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
case 96: {
if (!((mutable_bitField0_ & 0x00000800) != 0)) {
longArray_ = newLongList();
mutable_bitField0_ |= 0x00000800;
}
longArray_.addLong(input.readInt64());
break;
}
case 98: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000800) != 0) && input.getBytesUntilLimit() > 0) {
longArray_ = newLongList();
mutable_bitField0_ |= 0x00000800;
}
while (input.getBytesUntilLimit() > 0) {
longArray_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
}
case 104: {
if (!((mutable_bitField0_ & 0x00001000) != 0)) {
booleanArray_ = newBooleanList();
mutable_bitField0_ |= 0x00001000;
}
booleanArray_.addBoolean(input.readBool());
break;
}
case 106: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00001000) != 0) && input.getBytesUntilLimit() > 0) {
booleanArray_ = newBooleanList();
mutable_bitField0_ |= 0x00001000;
}
while (input.getBytesUntilLimit() > 0) {
booleanArray_.addBoolean(input.readBool());
}
input.popLimit(limit);
break;
}
case 117: {
if (!((mutable_bitField0_ & 0x00002000) != 0)) {
floatArray_ = newFloatList();
mutable_bitField0_ |= 0x00002000;
}
floatArray_.addFloat(input.readFloat());
break;
}
case 114: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00002000) != 0) && input.getBytesUntilLimit() > 0) {
floatArray_ = newFloatList();
mutable_bitField0_ |= 0x00002000;
}
while (input.getBytesUntilLimit() > 0) {
floatArray_.addFloat(input.readFloat());
}
input.popLimit(limit);
break;
}
case 121: {
if (!((mutable_bitField0_ & 0x00004000) != 0)) {
doubleArray_ = newDoubleList();
mutable_bitField0_ |= 0x00004000;
}
doubleArray_.addDouble(input.readDouble());
break;
}
case 122: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00004000) != 0) && input.getBytesUntilLimit() > 0) {
doubleArray_ = newDoubleList();
mutable_bitField0_ |= 0x00004000;
}
while (input.getBytesUntilLimit() > 0) {
doubleArray_.addDouble(input.readDouble());
}
input.popLimit(limit);
break;
}
case 128: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus value = org.apache.flink.formats.protobuf.testproto.NullTest.Corpus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(16, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00008000) != 0)) {
enumArray_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
enumArray_.add(rawValue);
}
break;
}
case 130: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus value = org.apache.flink.formats.protobuf.testproto.NullTest.Corpus.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(16, rawValue);
} else {
if (!((mutable_bitField0_ & 0x00008000) != 0)) {
enumArray_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00008000;
}
enumArray_.add(rawValue);
}
}
input.popLimit(oldLimit);
break;
}
case 138: {
if (!((mutable_bitField0_ & 0x00010000) != 0)) {
messageArray_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00010000;
}
messageArray_.add(
input.readMessage(org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.PARSER, extensionRegistry));
break;
}
case 146: {
if (!((mutable_bitField0_ & 0x00020000) != 0)) {
bytesArray_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00020000;
}
bytesArray_.add(input.readBytes());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000200) != 0)) {
stringArray_ = stringArray_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000400) != 0)) {
intArray_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000800) != 0)) {
longArray_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00001000) != 0)) {
booleanArray_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00002000) != 0)) {
floatArray_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00004000) != 0)) {
doubleArray_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00008000) != 0)) {
enumArray_ = java.util.Collections.unmodifiableList(enumArray_);
}
if (((mutable_bitField0_ & 0x00010000) != 0)) {
messageArray_ = java.util.Collections.unmodifiableList(messageArray_);
}
if (((mutable_bitField0_ & 0x00020000) != 0)) {
bytesArray_ = java.util.Collections.unmodifiableList(bytesArray_); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetStringMap();
case 2:
return internalGetIntMap();
case 3:
return internalGetLongMap();
case 4:
return internalGetBooleanMap();
case 5:
return internalGetFloatMap();
case 6:
return internalGetDoubleMap();
case 7:
return internalGetEnumMap();
case 8:
return internalGetMessageMap();
case 9:
return internalGetBytesMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.flink.formats.protobuf.testproto.NullTest.class, org.apache.flink.formats.protobuf.testproto.NullTest.Builder.class);
}
/**
* Protobuf enum {@code org.apache.flink.formats.protobuf.testproto.NullTest.Corpus}
*/
public enum Corpus
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNIVERSAL = 0;
*/
UNIVERSAL(0),
/**
* WEB = 1;
*/
WEB(1),
/**
* IMAGES = 2;
*/
IMAGES(2),
/**
* LOCAL = 3;
*/
LOCAL(3),
/**
* NEWS = 4;
*/
NEWS(4),
/**
* PRODUCTS = 5;
*/
PRODUCTS(5),
/**
* VIDEO = 7;
*/
VIDEO(7),
;
/**
* UNIVERSAL = 0;
*/
public static final int UNIVERSAL_VALUE = 0;
/**
* WEB = 1;
*/
public static final int WEB_VALUE = 1;
/**
* IMAGES = 2;
*/
public static final int IMAGES_VALUE = 2;
/**
* LOCAL = 3;
*/
public static final int LOCAL_VALUE = 3;
/**
* NEWS = 4;
*/
public static final int NEWS_VALUE = 4;
/**
* PRODUCTS = 5;
*/
public static final int PRODUCTS_VALUE = 5;
/**
* VIDEO = 7;
*/
public static final int VIDEO_VALUE = 7;
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 Corpus 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 Corpus forNumber(int value) {
switch (value) {
case 0: return UNIVERSAL;
case 1: return WEB;
case 2: return IMAGES;
case 3: return LOCAL;
case 4: return NEWS;
case 5: return PRODUCTS;
case 7: return VIDEO;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Corpus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Corpus findValueByNumber(int number) {
return Corpus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.apache.flink.formats.protobuf.testproto.NullTest.getDescriptor().getEnumTypes().get(0);
}
private static final Corpus[] VALUES = values();
public static Corpus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Corpus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:org.apache.flink.formats.protobuf.testproto.NullTest.Corpus)
}
public interface InnerMessageTestOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 a = 1;
* @return Whether the a field is set.
*/
boolean hasA();
/**
* optional int32 a = 1;
* @return The a.
*/
int getA();
/**
* optional int64 b = 2;
* @return Whether the b field is set.
*/
boolean hasB();
/**
* optional int64 b = 2;
* @return The b.
*/
long getB();
}
/**
* Protobuf type {@code org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest}
*/
public static final class InnerMessageTest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest)
InnerMessageTestOrBuilder {
private static final long serialVersionUID = 0L;
// Use InnerMessageTest.newBuilder() to construct.
private InnerMessageTest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private InnerMessageTest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InnerMessageTest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InnerMessageTest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
a_ = input.readInt32();
break;
}
case 16: {
bitField0_ |= 0x00000002;
b_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_InnerMessageTest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_InnerMessageTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.class, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder.class);
}
private int bitField0_;
public static final int A_FIELD_NUMBER = 1;
private int a_;
/**
* optional int32 a = 1;
* @return Whether the a field is set.
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 a = 1;
* @return The a.
*/
public int getA() {
return a_;
}
public static final int B_FIELD_NUMBER = 2;
private long b_;
/**
* optional int64 b = 2;
* @return Whether the b field is set.
*/
public boolean hasB() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 b = 2;
* @return The b.
*/
public long getB() {
return b_;
}
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.writeInt32(1, a_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt64(2, b_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, a_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, b_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest)) {
return super.equals(obj);
}
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest other = (org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest) obj;
if (hasA() != other.hasA()) return false;
if (hasA()) {
if (getA()
!= other.getA()) return false;
}
if (hasB() != other.hasB()) return false;
if (hasB()) {
if (getB()
!= other.getB()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasA()) {
hash = (37 * hash) + A_FIELD_NUMBER;
hash = (53 * hash) + getA();
}
if (hasB()) {
hash = (37 * hash) + B_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getB());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest 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 org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest 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 org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest 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(org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest 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 org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest)
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_InnerMessageTest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_InnerMessageTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.class, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder.class);
}
// Construct using org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
a_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
b_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_InnerMessageTest_descriptor;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getDefaultInstanceForType() {
return org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.getDefaultInstance();
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest build() {
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest buildPartial() {
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest result = new org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.a_ = a_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.b_ = b_;
to_bitField0_ |= 0x00000002;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest) {
return mergeFrom((org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest other) {
if (other == org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.getDefaultInstance()) return this;
if (other.hasA()) {
setA(other.getA());
}
if (other.hasB()) {
setB(other.getB());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int a_ ;
/**
* optional int32 a = 1;
* @return Whether the a field is set.
*/
public boolean hasA() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 a = 1;
* @return The a.
*/
public int getA() {
return a_;
}
/**
* optional int32 a = 1;
* @param value The a to set.
* @return This builder for chaining.
*/
public Builder setA(int value) {
bitField0_ |= 0x00000001;
a_ = value;
onChanged();
return this;
}
/**
* optional int32 a = 1;
* @return This builder for chaining.
*/
public Builder clearA() {
bitField0_ = (bitField0_ & ~0x00000001);
a_ = 0;
onChanged();
return this;
}
private long b_ ;
/**
* optional int64 b = 2;
* @return Whether the b field is set.
*/
public boolean hasB() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int64 b = 2;
* @return The b.
*/
public long getB() {
return b_;
}
/**
* optional int64 b = 2;
* @param value The b to set.
* @return This builder for chaining.
*/
public Builder setB(long value) {
bitField0_ |= 0x00000002;
b_ = value;
onChanged();
return this;
}
/**
* optional int64 b = 2;
* @return This builder for chaining.
*/
public Builder clearB() {
bitField0_ = (bitField0_ & ~0x00000002);
b_ = 0L;
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:org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest)
}
// @@protoc_insertion_point(class_scope:org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest)
private static final org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest();
}
public static org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InnerMessageTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InnerMessageTest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int STRING_MAP_FIELD_NUMBER = 1;
private static final class StringMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_StringMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> stringMap_;
private com.google.protobuf.MapField
internalGetStringMap() {
if (stringMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
StringMapDefaultEntryHolder.defaultEntry);
}
return stringMap_;
}
public int getStringMapCount() {
return internalGetStringMap().getMap().size();
}
/**
* map<string, string> string_map = 1;
*/
public boolean containsStringMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetStringMap().getMap().containsKey(key);
}
/**
* Use {@link #getStringMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getStringMap() {
return getStringMapMap();
}
/**
* map<string, string> string_map = 1;
*/
public java.util.Map getStringMapMap() {
return internalGetStringMap().getMap();
}
/**
* map<string, string> string_map = 1;
*/
public java.lang.String getStringMapOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetStringMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> string_map = 1;
*/
public java.lang.String getStringMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetStringMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int INT_MAP_FIELD_NUMBER = 2;
private static final class IntMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Integer, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_IntMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.INT32,
0,
com.google.protobuf.WireFormat.FieldType.INT32,
0);
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> intMap_;
private com.google.protobuf.MapField
internalGetIntMap() {
if (intMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
IntMapDefaultEntryHolder.defaultEntry);
}
return intMap_;
}
public int getIntMapCount() {
return internalGetIntMap().getMap().size();
}
/**
* map<int32, int32> int_map = 2;
*/
public boolean containsIntMap(
int key) {
return internalGetIntMap().getMap().containsKey(key);
}
/**
* Use {@link #getIntMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getIntMap() {
return getIntMapMap();
}
/**
* map<int32, int32> int_map = 2;
*/
public java.util.Map getIntMapMap() {
return internalGetIntMap().getMap();
}
/**
* map<int32, int32> int_map = 2;
*/
public int getIntMapOrDefault(
int key,
int defaultValue) {
java.util.Map map =
internalGetIntMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int32, int32> int_map = 2;
*/
public int getIntMapOrThrow(
int key) {
java.util.Map map =
internalGetIntMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int LONG_MAP_FIELD_NUMBER = 3;
private static final class LongMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Long, java.lang.Long> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_LongMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.INT64,
0L,
com.google.protobuf.WireFormat.FieldType.INT64,
0L);
}
private com.google.protobuf.MapField<
java.lang.Long, java.lang.Long> longMap_;
private com.google.protobuf.MapField
internalGetLongMap() {
if (longMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LongMapDefaultEntryHolder.defaultEntry);
}
return longMap_;
}
public int getLongMapCount() {
return internalGetLongMap().getMap().size();
}
/**
* map<int64, int64> long_map = 3;
*/
public boolean containsLongMap(
long key) {
return internalGetLongMap().getMap().containsKey(key);
}
/**
* Use {@link #getLongMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getLongMap() {
return getLongMapMap();
}
/**
* map<int64, int64> long_map = 3;
*/
public java.util.Map getLongMapMap() {
return internalGetLongMap().getMap();
}
/**
* map<int64, int64> long_map = 3;
*/
public long getLongMapOrDefault(
long key,
long defaultValue) {
java.util.Map map =
internalGetLongMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, int64> long_map = 3;
*/
public long getLongMapOrThrow(
long key) {
java.util.Map map =
internalGetLongMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int BOOLEAN_MAP_FIELD_NUMBER = 4;
private static final class BooleanMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.Boolean, java.lang.Boolean> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_BooleanMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.BOOL,
false,
com.google.protobuf.WireFormat.FieldType.BOOL,
false);
}
private com.google.protobuf.MapField<
java.lang.Boolean, java.lang.Boolean> booleanMap_;
private com.google.protobuf.MapField
internalGetBooleanMap() {
if (booleanMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
BooleanMapDefaultEntryHolder.defaultEntry);
}
return booleanMap_;
}
public int getBooleanMapCount() {
return internalGetBooleanMap().getMap().size();
}
/**
* map<bool, bool> boolean_map = 4;
*/
public boolean containsBooleanMap(
boolean key) {
return internalGetBooleanMap().getMap().containsKey(key);
}
/**
* Use {@link #getBooleanMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getBooleanMap() {
return getBooleanMapMap();
}
/**
* map<bool, bool> boolean_map = 4;
*/
public java.util.Map getBooleanMapMap() {
return internalGetBooleanMap().getMap();
}
/**
* map<bool, bool> boolean_map = 4;
*/
public boolean getBooleanMapOrDefault(
boolean key,
boolean defaultValue) {
java.util.Map map =
internalGetBooleanMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<bool, bool> boolean_map = 4;
*/
public boolean getBooleanMapOrThrow(
boolean key) {
java.util.Map map =
internalGetBooleanMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int FLOAT_MAP_FIELD_NUMBER = 5;
private static final class FloatMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Float> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_FloatMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.FLOAT,
0F);
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Float> floatMap_;
private com.google.protobuf.MapField
internalGetFloatMap() {
if (floatMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FloatMapDefaultEntryHolder.defaultEntry);
}
return floatMap_;
}
public int getFloatMapCount() {
return internalGetFloatMap().getMap().size();
}
/**
* map<string, float> float_map = 5;
*/
public boolean containsFloatMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetFloatMap().getMap().containsKey(key);
}
/**
* Use {@link #getFloatMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getFloatMap() {
return getFloatMapMap();
}
/**
* map<string, float> float_map = 5;
*/
public java.util.Map getFloatMapMap() {
return internalGetFloatMap().getMap();
}
/**
* map<string, float> float_map = 5;
*/
public float getFloatMapOrDefault(
java.lang.String key,
float defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFloatMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, float> float_map = 5;
*/
public float getFloatMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFloatMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DOUBLE_MAP_FIELD_NUMBER = 6;
private static final class DoubleMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Double> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_DoubleMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.DOUBLE,
0D);
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Double> doubleMap_;
private com.google.protobuf.MapField
internalGetDoubleMap() {
if (doubleMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DoubleMapDefaultEntryHolder.defaultEntry);
}
return doubleMap_;
}
public int getDoubleMapCount() {
return internalGetDoubleMap().getMap().size();
}
/**
* map<string, double> double_map = 6;
*/
public boolean containsDoubleMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetDoubleMap().getMap().containsKey(key);
}
/**
* Use {@link #getDoubleMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getDoubleMap() {
return getDoubleMapMap();
}
/**
* map<string, double> double_map = 6;
*/
public java.util.Map getDoubleMapMap() {
return internalGetDoubleMap().getMap();
}
/**
* map<string, double> double_map = 6;
*/
public double getDoubleMapOrDefault(
java.lang.String key,
double defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetDoubleMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, double> double_map = 6;
*/
public double getDoubleMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetDoubleMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ENUM_MAP_FIELD_NUMBER = 7;
private static final class EnumMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_EnumMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.ENUM,
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus.UNIVERSAL.getNumber());
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Integer> enumMap_;
private com.google.protobuf.MapField
internalGetEnumMap() {
if (enumMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EnumMapDefaultEntryHolder.defaultEntry);
}
return enumMap_;
}
private static final
com.google.protobuf.Internal.MapAdapter.Converter<
java.lang.Integer, org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enumMapValueConverter =
com.google.protobuf.Internal.MapAdapter.newEnumConverter(
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus.internalGetValueMap(),
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus.UNIVERSAL);
private static final java.util.Map
internalGetAdaptedEnumMapMap(
java.util.Map map) {
return new com.google.protobuf.Internal.MapAdapter<
java.lang.String, org.apache.flink.formats.protobuf.testproto.NullTest.Corpus, java.lang.Integer>(
map, enumMapValueConverter);
}
public int getEnumMapCount() {
return internalGetEnumMap().getMap().size();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public boolean containsEnumMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetEnumMap().getMap().containsKey(key);
}
/**
* Use {@link #getEnumMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map
getEnumMap() {
return getEnumMapMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public java.util.Map
getEnumMapMap() {
return internalGetAdaptedEnumMapMap(
internalGetEnumMap().getMap());}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.Corpus getEnumMapOrDefault(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetEnumMap().getMap();
return map.containsKey(key)
? enumMapValueConverter.doForward(map.get(key))
: defaultValue;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.Corpus getEnumMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetEnumMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return enumMapValueConverter.doForward(map.get(key));
}
public static final int MESSAGE_MAP_FIELD_NUMBER = 8;
private static final class MessageMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_MessageMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> messageMap_;
private com.google.protobuf.MapField
internalGetMessageMap() {
if (messageMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MessageMapDefaultEntryHolder.defaultEntry);
}
return messageMap_;
}
public int getMessageMapCount() {
return internalGetMessageMap().getMap().size();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public boolean containsMessageMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMessageMap().getMap().containsKey(key);
}
/**
* Use {@link #getMessageMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMessageMap() {
return getMessageMapMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public java.util.Map getMessageMapMap() {
return internalGetMessageMap().getMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getMessageMapOrDefault(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMessageMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getMessageMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMessageMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int BYTES_MAP_FIELD_NUMBER = 9;
private static final class BytesMapDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.protobuf.ByteString> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_BytesMapEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.BYTES,
com.google.protobuf.ByteString.EMPTY);
}
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.ByteString> bytesMap_;
private com.google.protobuf.MapField
internalGetBytesMap() {
if (bytesMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
BytesMapDefaultEntryHolder.defaultEntry);
}
return bytesMap_;
}
public int getBytesMapCount() {
return internalGetBytesMap().getMap().size();
}
/**
* map<string, bytes> bytes_map = 9;
*/
public boolean containsBytesMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetBytesMap().getMap().containsKey(key);
}
/**
* Use {@link #getBytesMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getBytesMap() {
return getBytesMapMap();
}
/**
* map<string, bytes> bytes_map = 9;
*/
public java.util.Map getBytesMapMap() {
return internalGetBytesMap().getMap();
}
/**
* map<string, bytes> bytes_map = 9;
*/
public com.google.protobuf.ByteString getBytesMapOrDefault(
java.lang.String key,
com.google.protobuf.ByteString defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetBytesMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, bytes> bytes_map = 9;
*/
public com.google.protobuf.ByteString getBytesMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetBytesMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int STRING_ARRAY_FIELD_NUMBER = 10;
private com.google.protobuf.LazyStringList stringArray_;
/**
* repeated string string_array = 10;
* @return A list containing the stringArray.
*/
public com.google.protobuf.ProtocolStringList
getStringArrayList() {
return stringArray_;
}
/**
* repeated string string_array = 10;
* @return The count of stringArray.
*/
public int getStringArrayCount() {
return stringArray_.size();
}
/**
* repeated string string_array = 10;
* @param index The index of the element to return.
* @return The stringArray at the given index.
*/
public java.lang.String getStringArray(int index) {
return stringArray_.get(index);
}
/**
* repeated string string_array = 10;
* @param index The index of the value to return.
* @return The bytes of the stringArray at the given index.
*/
public com.google.protobuf.ByteString
getStringArrayBytes(int index) {
return stringArray_.getByteString(index);
}
public static final int INT_ARRAY_FIELD_NUMBER = 11;
private com.google.protobuf.Internal.IntList intArray_;
/**
* repeated int32 int_array = 11;
* @return A list containing the intArray.
*/
public java.util.List
getIntArrayList() {
return intArray_;
}
/**
* repeated int32 int_array = 11;
* @return The count of intArray.
*/
public int getIntArrayCount() {
return intArray_.size();
}
/**
* repeated int32 int_array = 11;
* @param index The index of the element to return.
* @return The intArray at the given index.
*/
public int getIntArray(int index) {
return intArray_.getInt(index);
}
public static final int LONG_ARRAY_FIELD_NUMBER = 12;
private com.google.protobuf.Internal.LongList longArray_;
/**
* repeated int64 long_array = 12;
* @return A list containing the longArray.
*/
public java.util.List
getLongArrayList() {
return longArray_;
}
/**
* repeated int64 long_array = 12;
* @return The count of longArray.
*/
public int getLongArrayCount() {
return longArray_.size();
}
/**
* repeated int64 long_array = 12;
* @param index The index of the element to return.
* @return The longArray at the given index.
*/
public long getLongArray(int index) {
return longArray_.getLong(index);
}
public static final int BOOLEAN_ARRAY_FIELD_NUMBER = 13;
private com.google.protobuf.Internal.BooleanList booleanArray_;
/**
* repeated bool boolean_array = 13;
* @return A list containing the booleanArray.
*/
public java.util.List
getBooleanArrayList() {
return booleanArray_;
}
/**
* repeated bool boolean_array = 13;
* @return The count of booleanArray.
*/
public int getBooleanArrayCount() {
return booleanArray_.size();
}
/**
* repeated bool boolean_array = 13;
* @param index The index of the element to return.
* @return The booleanArray at the given index.
*/
public boolean getBooleanArray(int index) {
return booleanArray_.getBoolean(index);
}
public static final int FLOAT_ARRAY_FIELD_NUMBER = 14;
private com.google.protobuf.Internal.FloatList floatArray_;
/**
* repeated float float_array = 14;
* @return A list containing the floatArray.
*/
public java.util.List
getFloatArrayList() {
return floatArray_;
}
/**
* repeated float float_array = 14;
* @return The count of floatArray.
*/
public int getFloatArrayCount() {
return floatArray_.size();
}
/**
* repeated float float_array = 14;
* @param index The index of the element to return.
* @return The floatArray at the given index.
*/
public float getFloatArray(int index) {
return floatArray_.getFloat(index);
}
public static final int DOUBLE_ARRAY_FIELD_NUMBER = 15;
private com.google.protobuf.Internal.DoubleList doubleArray_;
/**
* repeated double double_array = 15;
* @return A list containing the doubleArray.
*/
public java.util.List
getDoubleArrayList() {
return doubleArray_;
}
/**
* repeated double double_array = 15;
* @return The count of doubleArray.
*/
public int getDoubleArrayCount() {
return doubleArray_.size();
}
/**
* repeated double double_array = 15;
* @param index The index of the element to return.
* @return The doubleArray at the given index.
*/
public double getDoubleArray(int index) {
return doubleArray_.getDouble(index);
}
public static final int ENUM_ARRAY_FIELD_NUMBER = 16;
private java.util.List enumArray_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enumArray_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, org.apache.flink.formats.protobuf.testproto.NullTest.Corpus>() {
public org.apache.flink.formats.protobuf.testproto.NullTest.Corpus convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus result = org.apache.flink.formats.protobuf.testproto.NullTest.Corpus.valueOf(from);
return result == null ? org.apache.flink.formats.protobuf.testproto.NullTest.Corpus.UNIVERSAL : result;
}
};
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @return A list containing the enumArray.
*/
public java.util.List getEnumArrayList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, org.apache.flink.formats.protobuf.testproto.NullTest.Corpus>(enumArray_, enumArray_converter_);
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @return The count of enumArray.
*/
public int getEnumArrayCount() {
return enumArray_.size();
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @param index The index of the element to return.
* @return The enumArray at the given index.
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.Corpus getEnumArray(int index) {
return enumArray_converter_.convert(enumArray_.get(index));
}
public static final int MESSAGE_ARRAY_FIELD_NUMBER = 17;
private java.util.List messageArray_;
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public java.util.List getMessageArrayList() {
return messageArray_;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public java.util.List
getMessageArrayOrBuilderList() {
return messageArray_;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public int getMessageArrayCount() {
return messageArray_.size();
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getMessageArray(int index) {
return messageArray_.get(index);
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTestOrBuilder getMessageArrayOrBuilder(
int index) {
return messageArray_.get(index);
}
public static final int BYTES_ARRAY_FIELD_NUMBER = 18;
private java.util.List bytesArray_;
/**
* repeated bytes bytes_array = 18;
* @return A list containing the bytesArray.
*/
public java.util.List
getBytesArrayList() {
return bytesArray_;
}
/**
* repeated bytes bytes_array = 18;
* @return The count of bytesArray.
*/
public int getBytesArrayCount() {
return bytesArray_.size();
}
/**
* repeated bytes bytes_array = 18;
* @param index The index of the element to return.
* @return The bytesArray at the given index.
*/
public com.google.protobuf.ByteString getBytesArray(int index) {
return bytesArray_.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 {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetStringMap(),
StringMapDefaultEntryHolder.defaultEntry,
1);
com.google.protobuf.GeneratedMessageV3
.serializeIntegerMapTo(
output,
internalGetIntMap(),
IntMapDefaultEntryHolder.defaultEntry,
2);
com.google.protobuf.GeneratedMessageV3
.serializeLongMapTo(
output,
internalGetLongMap(),
LongMapDefaultEntryHolder.defaultEntry,
3);
com.google.protobuf.GeneratedMessageV3
.serializeBooleanMapTo(
output,
internalGetBooleanMap(),
BooleanMapDefaultEntryHolder.defaultEntry,
4);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetFloatMap(),
FloatMapDefaultEntryHolder.defaultEntry,
5);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetDoubleMap(),
DoubleMapDefaultEntryHolder.defaultEntry,
6);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetEnumMap(),
EnumMapDefaultEntryHolder.defaultEntry,
7);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMessageMap(),
MessageMapDefaultEntryHolder.defaultEntry,
8);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetBytesMap(),
BytesMapDefaultEntryHolder.defaultEntry,
9);
for (int i = 0; i < stringArray_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, stringArray_.getRaw(i));
}
for (int i = 0; i < intArray_.size(); i++) {
output.writeInt32(11, intArray_.getInt(i));
}
for (int i = 0; i < longArray_.size(); i++) {
output.writeInt64(12, longArray_.getLong(i));
}
for (int i = 0; i < booleanArray_.size(); i++) {
output.writeBool(13, booleanArray_.getBoolean(i));
}
for (int i = 0; i < floatArray_.size(); i++) {
output.writeFloat(14, floatArray_.getFloat(i));
}
for (int i = 0; i < doubleArray_.size(); i++) {
output.writeDouble(15, doubleArray_.getDouble(i));
}
for (int i = 0; i < enumArray_.size(); i++) {
output.writeEnum(16, enumArray_.get(i));
}
for (int i = 0; i < messageArray_.size(); i++) {
output.writeMessage(17, messageArray_.get(i));
}
for (int i = 0; i < bytesArray_.size(); i++) {
output.writeBytes(18, bytesArray_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetStringMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
stringMap__ = StringMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, stringMap__);
}
for (java.util.Map.Entry entry
: internalGetIntMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
intMap__ = IntMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, intMap__);
}
for (java.util.Map.Entry entry
: internalGetLongMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
longMap__ = LongMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, longMap__);
}
for (java.util.Map.Entry entry
: internalGetBooleanMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
booleanMap__ = BooleanMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, booleanMap__);
}
for (java.util.Map.Entry entry
: internalGetFloatMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
floatMap__ = FloatMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, floatMap__);
}
for (java.util.Map.Entry entry
: internalGetDoubleMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
doubleMap__ = DoubleMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, doubleMap__);
}
for (java.util.Map.Entry entry
: internalGetEnumMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
enumMap__ = EnumMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, enumMap__);
}
for (java.util.Map.Entry entry
: internalGetMessageMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
messageMap__ = MessageMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, messageMap__);
}
for (java.util.Map.Entry entry
: internalGetBytesMap().getMap().entrySet()) {
com.google.protobuf.MapEntry
bytesMap__ = BytesMapDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, bytesMap__);
}
{
int dataSize = 0;
for (int i = 0; i < stringArray_.size(); i++) {
dataSize += computeStringSizeNoTag(stringArray_.getRaw(i));
}
size += dataSize;
size += 1 * getStringArrayList().size();
}
{
int dataSize = 0;
for (int i = 0; i < intArray_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(intArray_.getInt(i));
}
size += dataSize;
size += 1 * getIntArrayList().size();
}
{
int dataSize = 0;
for (int i = 0; i < longArray_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(longArray_.getLong(i));
}
size += dataSize;
size += 1 * getLongArrayList().size();
}
{
int dataSize = 0;
dataSize = 1 * getBooleanArrayList().size();
size += dataSize;
size += 1 * getBooleanArrayList().size();
}
{
int dataSize = 0;
dataSize = 4 * getFloatArrayList().size();
size += dataSize;
size += 1 * getFloatArrayList().size();
}
{
int dataSize = 0;
dataSize = 8 * getDoubleArrayList().size();
size += dataSize;
size += 1 * getDoubleArrayList().size();
}
{
int dataSize = 0;
for (int i = 0; i < enumArray_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(enumArray_.get(i));
}
size += dataSize;
size += 2 * enumArray_.size();
}
for (int i = 0; i < messageArray_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(17, messageArray_.get(i));
}
{
int dataSize = 0;
for (int i = 0; i < bytesArray_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(bytesArray_.get(i));
}
size += dataSize;
size += 2 * getBytesArrayList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.apache.flink.formats.protobuf.testproto.NullTest)) {
return super.equals(obj);
}
org.apache.flink.formats.protobuf.testproto.NullTest other = (org.apache.flink.formats.protobuf.testproto.NullTest) obj;
if (!internalGetStringMap().equals(
other.internalGetStringMap())) return false;
if (!internalGetIntMap().equals(
other.internalGetIntMap())) return false;
if (!internalGetLongMap().equals(
other.internalGetLongMap())) return false;
if (!internalGetBooleanMap().equals(
other.internalGetBooleanMap())) return false;
if (!internalGetFloatMap().equals(
other.internalGetFloatMap())) return false;
if (!internalGetDoubleMap().equals(
other.internalGetDoubleMap())) return false;
if (!internalGetEnumMap().equals(
other.internalGetEnumMap())) return false;
if (!internalGetMessageMap().equals(
other.internalGetMessageMap())) return false;
if (!internalGetBytesMap().equals(
other.internalGetBytesMap())) return false;
if (!getStringArrayList()
.equals(other.getStringArrayList())) return false;
if (!getIntArrayList()
.equals(other.getIntArrayList())) return false;
if (!getLongArrayList()
.equals(other.getLongArrayList())) return false;
if (!getBooleanArrayList()
.equals(other.getBooleanArrayList())) return false;
if (!getFloatArrayList()
.equals(other.getFloatArrayList())) return false;
if (!getDoubleArrayList()
.equals(other.getDoubleArrayList())) return false;
if (!enumArray_.equals(other.enumArray_)) return false;
if (!getMessageArrayList()
.equals(other.getMessageArrayList())) return false;
if (!getBytesArrayList()
.equals(other.getBytesArrayList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetStringMap().getMap().isEmpty()) {
hash = (37 * hash) + STRING_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetStringMap().hashCode();
}
if (!internalGetIntMap().getMap().isEmpty()) {
hash = (37 * hash) + INT_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetIntMap().hashCode();
}
if (!internalGetLongMap().getMap().isEmpty()) {
hash = (37 * hash) + LONG_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetLongMap().hashCode();
}
if (!internalGetBooleanMap().getMap().isEmpty()) {
hash = (37 * hash) + BOOLEAN_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetBooleanMap().hashCode();
}
if (!internalGetFloatMap().getMap().isEmpty()) {
hash = (37 * hash) + FLOAT_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetFloatMap().hashCode();
}
if (!internalGetDoubleMap().getMap().isEmpty()) {
hash = (37 * hash) + DOUBLE_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetDoubleMap().hashCode();
}
if (!internalGetEnumMap().getMap().isEmpty()) {
hash = (37 * hash) + ENUM_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetEnumMap().hashCode();
}
if (!internalGetMessageMap().getMap().isEmpty()) {
hash = (37 * hash) + MESSAGE_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetMessageMap().hashCode();
}
if (!internalGetBytesMap().getMap().isEmpty()) {
hash = (37 * hash) + BYTES_MAP_FIELD_NUMBER;
hash = (53 * hash) + internalGetBytesMap().hashCode();
}
if (getStringArrayCount() > 0) {
hash = (37 * hash) + STRING_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getStringArrayList().hashCode();
}
if (getIntArrayCount() > 0) {
hash = (37 * hash) + INT_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getIntArrayList().hashCode();
}
if (getLongArrayCount() > 0) {
hash = (37 * hash) + LONG_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getLongArrayList().hashCode();
}
if (getBooleanArrayCount() > 0) {
hash = (37 * hash) + BOOLEAN_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getBooleanArrayList().hashCode();
}
if (getFloatArrayCount() > 0) {
hash = (37 * hash) + FLOAT_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getFloatArrayList().hashCode();
}
if (getDoubleArrayCount() > 0) {
hash = (37 * hash) + DOUBLE_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getDoubleArrayList().hashCode();
}
if (getEnumArrayCount() > 0) {
hash = (37 * hash) + ENUM_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + enumArray_.hashCode();
}
if (getMessageArrayCount() > 0) {
hash = (37 * hash) + MESSAGE_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getMessageArrayList().hashCode();
}
if (getBytesArrayCount() > 0) {
hash = (37 * hash) + BYTES_ARRAY_FIELD_NUMBER;
hash = (53 * hash) + getBytesArrayList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.flink.formats.protobuf.testproto.NullTest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest 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 org.apache.flink.formats.protobuf.testproto.NullTest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest 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 org.apache.flink.formats.protobuf.testproto.NullTest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.apache.flink.formats.protobuf.testproto.NullTest 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(org.apache.flink.formats.protobuf.testproto.NullTest 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 org.apache.flink.formats.protobuf.testproto.NullTest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:org.apache.flink.formats.protobuf.testproto.NullTest)
org.apache.flink.formats.protobuf.testproto.NullTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetStringMap();
case 2:
return internalGetIntMap();
case 3:
return internalGetLongMap();
case 4:
return internalGetBooleanMap();
case 5:
return internalGetFloatMap();
case 6:
return internalGetDoubleMap();
case 7:
return internalGetEnumMap();
case 8:
return internalGetMessageMap();
case 9:
return internalGetBytesMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableStringMap();
case 2:
return internalGetMutableIntMap();
case 3:
return internalGetMutableLongMap();
case 4:
return internalGetMutableBooleanMap();
case 5:
return internalGetMutableFloatMap();
case 6:
return internalGetMutableDoubleMap();
case 7:
return internalGetMutableEnumMap();
case 8:
return internalGetMutableMessageMap();
case 9:
return internalGetMutableBytesMap();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.flink.formats.protobuf.testproto.NullTest.class, org.apache.flink.formats.protobuf.testproto.NullTest.Builder.class);
}
// Construct using org.apache.flink.formats.protobuf.testproto.NullTest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getMessageArrayFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
internalGetMutableStringMap().clear();
internalGetMutableIntMap().clear();
internalGetMutableLongMap().clear();
internalGetMutableBooleanMap().clear();
internalGetMutableFloatMap().clear();
internalGetMutableDoubleMap().clear();
internalGetMutableEnumMap().clear();
internalGetMutableMessageMap().clear();
internalGetMutableBytesMap().clear();
stringArray_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
intArray_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000400);
longArray_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000800);
booleanArray_ = emptyBooleanList();
bitField0_ = (bitField0_ & ~0x00001000);
floatArray_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00002000);
doubleArray_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00004000);
enumArray_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
if (messageArrayBuilder_ == null) {
messageArray_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
} else {
messageArrayBuilder_.clear();
}
bytesArray_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00020000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.flink.formats.protobuf.testproto.NullTestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_NullTest_descriptor;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.NullTest getDefaultInstanceForType() {
return org.apache.flink.formats.protobuf.testproto.NullTest.getDefaultInstance();
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.NullTest build() {
org.apache.flink.formats.protobuf.testproto.NullTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.NullTest buildPartial() {
org.apache.flink.formats.protobuf.testproto.NullTest result = new org.apache.flink.formats.protobuf.testproto.NullTest(this);
int from_bitField0_ = bitField0_;
result.stringMap_ = internalGetStringMap();
result.stringMap_.makeImmutable();
result.intMap_ = internalGetIntMap();
result.intMap_.makeImmutable();
result.longMap_ = internalGetLongMap();
result.longMap_.makeImmutable();
result.booleanMap_ = internalGetBooleanMap();
result.booleanMap_.makeImmutable();
result.floatMap_ = internalGetFloatMap();
result.floatMap_.makeImmutable();
result.doubleMap_ = internalGetDoubleMap();
result.doubleMap_.makeImmutable();
result.enumMap_ = internalGetEnumMap();
result.enumMap_.makeImmutable();
result.messageMap_ = internalGetMessageMap();
result.messageMap_.makeImmutable();
result.bytesMap_ = internalGetBytesMap();
result.bytesMap_.makeImmutable();
if (((bitField0_ & 0x00000200) != 0)) {
stringArray_ = stringArray_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000200);
}
result.stringArray_ = stringArray_;
if (((bitField0_ & 0x00000400) != 0)) {
intArray_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000400);
}
result.intArray_ = intArray_;
if (((bitField0_ & 0x00000800) != 0)) {
longArray_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000800);
}
result.longArray_ = longArray_;
if (((bitField0_ & 0x00001000) != 0)) {
booleanArray_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00001000);
}
result.booleanArray_ = booleanArray_;
if (((bitField0_ & 0x00002000) != 0)) {
floatArray_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00002000);
}
result.floatArray_ = floatArray_;
if (((bitField0_ & 0x00004000) != 0)) {
doubleArray_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00004000);
}
result.doubleArray_ = doubleArray_;
if (((bitField0_ & 0x00008000) != 0)) {
enumArray_ = java.util.Collections.unmodifiableList(enumArray_);
bitField0_ = (bitField0_ & ~0x00008000);
}
result.enumArray_ = enumArray_;
if (messageArrayBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0)) {
messageArray_ = java.util.Collections.unmodifiableList(messageArray_);
bitField0_ = (bitField0_ & ~0x00010000);
}
result.messageArray_ = messageArray_;
} else {
result.messageArray_ = messageArrayBuilder_.build();
}
if (((bitField0_ & 0x00020000) != 0)) {
bytesArray_ = java.util.Collections.unmodifiableList(bytesArray_);
bitField0_ = (bitField0_ & ~0x00020000);
}
result.bytesArray_ = bytesArray_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.apache.flink.formats.protobuf.testproto.NullTest) {
return mergeFrom((org.apache.flink.formats.protobuf.testproto.NullTest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.flink.formats.protobuf.testproto.NullTest other) {
if (other == org.apache.flink.formats.protobuf.testproto.NullTest.getDefaultInstance()) return this;
internalGetMutableStringMap().mergeFrom(
other.internalGetStringMap());
internalGetMutableIntMap().mergeFrom(
other.internalGetIntMap());
internalGetMutableLongMap().mergeFrom(
other.internalGetLongMap());
internalGetMutableBooleanMap().mergeFrom(
other.internalGetBooleanMap());
internalGetMutableFloatMap().mergeFrom(
other.internalGetFloatMap());
internalGetMutableDoubleMap().mergeFrom(
other.internalGetDoubleMap());
internalGetMutableEnumMap().mergeFrom(
other.internalGetEnumMap());
internalGetMutableMessageMap().mergeFrom(
other.internalGetMessageMap());
internalGetMutableBytesMap().mergeFrom(
other.internalGetBytesMap());
if (!other.stringArray_.isEmpty()) {
if (stringArray_.isEmpty()) {
stringArray_ = other.stringArray_;
bitField0_ = (bitField0_ & ~0x00000200);
} else {
ensureStringArrayIsMutable();
stringArray_.addAll(other.stringArray_);
}
onChanged();
}
if (!other.intArray_.isEmpty()) {
if (intArray_.isEmpty()) {
intArray_ = other.intArray_;
bitField0_ = (bitField0_ & ~0x00000400);
} else {
ensureIntArrayIsMutable();
intArray_.addAll(other.intArray_);
}
onChanged();
}
if (!other.longArray_.isEmpty()) {
if (longArray_.isEmpty()) {
longArray_ = other.longArray_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureLongArrayIsMutable();
longArray_.addAll(other.longArray_);
}
onChanged();
}
if (!other.booleanArray_.isEmpty()) {
if (booleanArray_.isEmpty()) {
booleanArray_ = other.booleanArray_;
bitField0_ = (bitField0_ & ~0x00001000);
} else {
ensureBooleanArrayIsMutable();
booleanArray_.addAll(other.booleanArray_);
}
onChanged();
}
if (!other.floatArray_.isEmpty()) {
if (floatArray_.isEmpty()) {
floatArray_ = other.floatArray_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureFloatArrayIsMutable();
floatArray_.addAll(other.floatArray_);
}
onChanged();
}
if (!other.doubleArray_.isEmpty()) {
if (doubleArray_.isEmpty()) {
doubleArray_ = other.doubleArray_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureDoubleArrayIsMutable();
doubleArray_.addAll(other.doubleArray_);
}
onChanged();
}
if (!other.enumArray_.isEmpty()) {
if (enumArray_.isEmpty()) {
enumArray_ = other.enumArray_;
bitField0_ = (bitField0_ & ~0x00008000);
} else {
ensureEnumArrayIsMutable();
enumArray_.addAll(other.enumArray_);
}
onChanged();
}
if (messageArrayBuilder_ == null) {
if (!other.messageArray_.isEmpty()) {
if (messageArray_.isEmpty()) {
messageArray_ = other.messageArray_;
bitField0_ = (bitField0_ & ~0x00010000);
} else {
ensureMessageArrayIsMutable();
messageArray_.addAll(other.messageArray_);
}
onChanged();
}
} else {
if (!other.messageArray_.isEmpty()) {
if (messageArrayBuilder_.isEmpty()) {
messageArrayBuilder_.dispose();
messageArrayBuilder_ = null;
messageArray_ = other.messageArray_;
bitField0_ = (bitField0_ & ~0x00010000);
messageArrayBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMessageArrayFieldBuilder() : null;
} else {
messageArrayBuilder_.addAllMessages(other.messageArray_);
}
}
}
if (!other.bytesArray_.isEmpty()) {
if (bytesArray_.isEmpty()) {
bytesArray_ = other.bytesArray_;
bitField0_ = (bitField0_ & ~0x00020000);
} else {
ensureBytesArrayIsMutable();
bytesArray_.addAll(other.bytesArray_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.flink.formats.protobuf.testproto.NullTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.flink.formats.protobuf.testproto.NullTest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> stringMap_;
private com.google.protobuf.MapField
internalGetStringMap() {
if (stringMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
StringMapDefaultEntryHolder.defaultEntry);
}
return stringMap_;
}
private com.google.protobuf.MapField
internalGetMutableStringMap() {
onChanged();;
if (stringMap_ == null) {
stringMap_ = com.google.protobuf.MapField.newMapField(
StringMapDefaultEntryHolder.defaultEntry);
}
if (!stringMap_.isMutable()) {
stringMap_ = stringMap_.copy();
}
return stringMap_;
}
public int getStringMapCount() {
return internalGetStringMap().getMap().size();
}
/**
* map<string, string> string_map = 1;
*/
public boolean containsStringMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetStringMap().getMap().containsKey(key);
}
/**
* Use {@link #getStringMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getStringMap() {
return getStringMapMap();
}
/**
* map<string, string> string_map = 1;
*/
public java.util.Map getStringMapMap() {
return internalGetStringMap().getMap();
}
/**
* map<string, string> string_map = 1;
*/
public java.lang.String getStringMapOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetStringMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> string_map = 1;
*/
public java.lang.String getStringMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetStringMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearStringMap() {
internalGetMutableStringMap().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> string_map = 1;
*/
public Builder removeStringMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableStringMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableStringMap() {
return internalGetMutableStringMap().getMutableMap();
}
/**
* map<string, string> string_map = 1;
*/
public Builder putStringMap(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableStringMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> string_map = 1;
*/
public Builder putAllStringMap(
java.util.Map values) {
internalGetMutableStringMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.Integer, java.lang.Integer> intMap_;
private com.google.protobuf.MapField
internalGetIntMap() {
if (intMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
IntMapDefaultEntryHolder.defaultEntry);
}
return intMap_;
}
private com.google.protobuf.MapField
internalGetMutableIntMap() {
onChanged();;
if (intMap_ == null) {
intMap_ = com.google.protobuf.MapField.newMapField(
IntMapDefaultEntryHolder.defaultEntry);
}
if (!intMap_.isMutable()) {
intMap_ = intMap_.copy();
}
return intMap_;
}
public int getIntMapCount() {
return internalGetIntMap().getMap().size();
}
/**
* map<int32, int32> int_map = 2;
*/
public boolean containsIntMap(
int key) {
return internalGetIntMap().getMap().containsKey(key);
}
/**
* Use {@link #getIntMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getIntMap() {
return getIntMapMap();
}
/**
* map<int32, int32> int_map = 2;
*/
public java.util.Map getIntMapMap() {
return internalGetIntMap().getMap();
}
/**
* map<int32, int32> int_map = 2;
*/
public int getIntMapOrDefault(
int key,
int defaultValue) {
java.util.Map map =
internalGetIntMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int32, int32> int_map = 2;
*/
public int getIntMapOrThrow(
int key) {
java.util.Map map =
internalGetIntMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearIntMap() {
internalGetMutableIntMap().getMutableMap()
.clear();
return this;
}
/**
* map<int32, int32> int_map = 2;
*/
public Builder removeIntMap(
int key) {
internalGetMutableIntMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableIntMap() {
return internalGetMutableIntMap().getMutableMap();
}
/**
* map<int32, int32> int_map = 2;
*/
public Builder putIntMap(
int key,
int value) {
internalGetMutableIntMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int32, int32> int_map = 2;
*/
public Builder putAllIntMap(
java.util.Map values) {
internalGetMutableIntMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.Long, java.lang.Long> longMap_;
private com.google.protobuf.MapField
internalGetLongMap() {
if (longMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
LongMapDefaultEntryHolder.defaultEntry);
}
return longMap_;
}
private com.google.protobuf.MapField
internalGetMutableLongMap() {
onChanged();;
if (longMap_ == null) {
longMap_ = com.google.protobuf.MapField.newMapField(
LongMapDefaultEntryHolder.defaultEntry);
}
if (!longMap_.isMutable()) {
longMap_ = longMap_.copy();
}
return longMap_;
}
public int getLongMapCount() {
return internalGetLongMap().getMap().size();
}
/**
* map<int64, int64> long_map = 3;
*/
public boolean containsLongMap(
long key) {
return internalGetLongMap().getMap().containsKey(key);
}
/**
* Use {@link #getLongMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getLongMap() {
return getLongMapMap();
}
/**
* map<int64, int64> long_map = 3;
*/
public java.util.Map getLongMapMap() {
return internalGetLongMap().getMap();
}
/**
* map<int64, int64> long_map = 3;
*/
public long getLongMapOrDefault(
long key,
long defaultValue) {
java.util.Map map =
internalGetLongMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<int64, int64> long_map = 3;
*/
public long getLongMapOrThrow(
long key) {
java.util.Map map =
internalGetLongMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLongMap() {
internalGetMutableLongMap().getMutableMap()
.clear();
return this;
}
/**
* map<int64, int64> long_map = 3;
*/
public Builder removeLongMap(
long key) {
internalGetMutableLongMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableLongMap() {
return internalGetMutableLongMap().getMutableMap();
}
/**
* map<int64, int64> long_map = 3;
*/
public Builder putLongMap(
long key,
long value) {
internalGetMutableLongMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<int64, int64> long_map = 3;
*/
public Builder putAllLongMap(
java.util.Map values) {
internalGetMutableLongMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.Boolean, java.lang.Boolean> booleanMap_;
private com.google.protobuf.MapField
internalGetBooleanMap() {
if (booleanMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
BooleanMapDefaultEntryHolder.defaultEntry);
}
return booleanMap_;
}
private com.google.protobuf.MapField
internalGetMutableBooleanMap() {
onChanged();;
if (booleanMap_ == null) {
booleanMap_ = com.google.protobuf.MapField.newMapField(
BooleanMapDefaultEntryHolder.defaultEntry);
}
if (!booleanMap_.isMutable()) {
booleanMap_ = booleanMap_.copy();
}
return booleanMap_;
}
public int getBooleanMapCount() {
return internalGetBooleanMap().getMap().size();
}
/**
* map<bool, bool> boolean_map = 4;
*/
public boolean containsBooleanMap(
boolean key) {
return internalGetBooleanMap().getMap().containsKey(key);
}
/**
* Use {@link #getBooleanMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getBooleanMap() {
return getBooleanMapMap();
}
/**
* map<bool, bool> boolean_map = 4;
*/
public java.util.Map getBooleanMapMap() {
return internalGetBooleanMap().getMap();
}
/**
* map<bool, bool> boolean_map = 4;
*/
public boolean getBooleanMapOrDefault(
boolean key,
boolean defaultValue) {
java.util.Map map =
internalGetBooleanMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<bool, bool> boolean_map = 4;
*/
public boolean getBooleanMapOrThrow(
boolean key) {
java.util.Map map =
internalGetBooleanMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearBooleanMap() {
internalGetMutableBooleanMap().getMutableMap()
.clear();
return this;
}
/**
* map<bool, bool> boolean_map = 4;
*/
public Builder removeBooleanMap(
boolean key) {
internalGetMutableBooleanMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableBooleanMap() {
return internalGetMutableBooleanMap().getMutableMap();
}
/**
* map<bool, bool> boolean_map = 4;
*/
public Builder putBooleanMap(
boolean key,
boolean value) {
internalGetMutableBooleanMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<bool, bool> boolean_map = 4;
*/
public Builder putAllBooleanMap(
java.util.Map values) {
internalGetMutableBooleanMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Float> floatMap_;
private com.google.protobuf.MapField
internalGetFloatMap() {
if (floatMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
FloatMapDefaultEntryHolder.defaultEntry);
}
return floatMap_;
}
private com.google.protobuf.MapField
internalGetMutableFloatMap() {
onChanged();;
if (floatMap_ == null) {
floatMap_ = com.google.protobuf.MapField.newMapField(
FloatMapDefaultEntryHolder.defaultEntry);
}
if (!floatMap_.isMutable()) {
floatMap_ = floatMap_.copy();
}
return floatMap_;
}
public int getFloatMapCount() {
return internalGetFloatMap().getMap().size();
}
/**
* map<string, float> float_map = 5;
*/
public boolean containsFloatMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetFloatMap().getMap().containsKey(key);
}
/**
* Use {@link #getFloatMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getFloatMap() {
return getFloatMapMap();
}
/**
* map<string, float> float_map = 5;
*/
public java.util.Map getFloatMapMap() {
return internalGetFloatMap().getMap();
}
/**
* map<string, float> float_map = 5;
*/
public float getFloatMapOrDefault(
java.lang.String key,
float defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFloatMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, float> float_map = 5;
*/
public float getFloatMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetFloatMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearFloatMap() {
internalGetMutableFloatMap().getMutableMap()
.clear();
return this;
}
/**
* map<string, float> float_map = 5;
*/
public Builder removeFloatMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableFloatMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableFloatMap() {
return internalGetMutableFloatMap().getMutableMap();
}
/**
* map<string, float> float_map = 5;
*/
public Builder putFloatMap(
java.lang.String key,
float value) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableFloatMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, float> float_map = 5;
*/
public Builder putAllFloatMap(
java.util.Map values) {
internalGetMutableFloatMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Double> doubleMap_;
private com.google.protobuf.MapField
internalGetDoubleMap() {
if (doubleMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DoubleMapDefaultEntryHolder.defaultEntry);
}
return doubleMap_;
}
private com.google.protobuf.MapField
internalGetMutableDoubleMap() {
onChanged();;
if (doubleMap_ == null) {
doubleMap_ = com.google.protobuf.MapField.newMapField(
DoubleMapDefaultEntryHolder.defaultEntry);
}
if (!doubleMap_.isMutable()) {
doubleMap_ = doubleMap_.copy();
}
return doubleMap_;
}
public int getDoubleMapCount() {
return internalGetDoubleMap().getMap().size();
}
/**
* map<string, double> double_map = 6;
*/
public boolean containsDoubleMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetDoubleMap().getMap().containsKey(key);
}
/**
* Use {@link #getDoubleMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getDoubleMap() {
return getDoubleMapMap();
}
/**
* map<string, double> double_map = 6;
*/
public java.util.Map getDoubleMapMap() {
return internalGetDoubleMap().getMap();
}
/**
* map<string, double> double_map = 6;
*/
public double getDoubleMapOrDefault(
java.lang.String key,
double defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetDoubleMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, double> double_map = 6;
*/
public double getDoubleMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetDoubleMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearDoubleMap() {
internalGetMutableDoubleMap().getMutableMap()
.clear();
return this;
}
/**
* map<string, double> double_map = 6;
*/
public Builder removeDoubleMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableDoubleMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableDoubleMap() {
return internalGetMutableDoubleMap().getMutableMap();
}
/**
* map<string, double> double_map = 6;
*/
public Builder putDoubleMap(
java.lang.String key,
double value) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableDoubleMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, double> double_map = 6;
*/
public Builder putAllDoubleMap(
java.util.Map values) {
internalGetMutableDoubleMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Integer> enumMap_;
private com.google.protobuf.MapField
internalGetEnumMap() {
if (enumMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
EnumMapDefaultEntryHolder.defaultEntry);
}
return enumMap_;
}
private com.google.protobuf.MapField
internalGetMutableEnumMap() {
onChanged();;
if (enumMap_ == null) {
enumMap_ = com.google.protobuf.MapField.newMapField(
EnumMapDefaultEntryHolder.defaultEntry);
}
if (!enumMap_.isMutable()) {
enumMap_ = enumMap_.copy();
}
return enumMap_;
}
public int getEnumMapCount() {
return internalGetEnumMap().getMap().size();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public boolean containsEnumMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetEnumMap().getMap().containsKey(key);
}
/**
* Use {@link #getEnumMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map
getEnumMap() {
return getEnumMapMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public java.util.Map
getEnumMapMap() {
return internalGetAdaptedEnumMapMap(
internalGetEnumMap().getMap());}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.Corpus getEnumMapOrDefault(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetEnumMap().getMap();
return map.containsKey(key)
? enumMapValueConverter.doForward(map.get(key))
: defaultValue;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.Corpus getEnumMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetEnumMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return enumMapValueConverter.doForward(map.get(key));
}
public Builder clearEnumMap() {
internalGetMutableEnumMap().getMutableMap()
.clear();
return this;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public Builder removeEnumMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableEnumMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableEnumMap() {
return internalGetAdaptedEnumMapMap(
internalGetMutableEnumMap().getMutableMap());
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public Builder putEnumMap(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.NullTest.Corpus value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableEnumMap().getMutableMap()
.put(key, enumMapValueConverter.doBackward(value));
return this;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus> enum_map = 7;
*/
public Builder putAllEnumMap(
java.util.Map values) {
internalGetAdaptedEnumMapMap(
internalGetMutableEnumMap().getMutableMap())
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> messageMap_;
private com.google.protobuf.MapField
internalGetMessageMap() {
if (messageMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MessageMapDefaultEntryHolder.defaultEntry);
}
return messageMap_;
}
private com.google.protobuf.MapField
internalGetMutableMessageMap() {
onChanged();;
if (messageMap_ == null) {
messageMap_ = com.google.protobuf.MapField.newMapField(
MessageMapDefaultEntryHolder.defaultEntry);
}
if (!messageMap_.isMutable()) {
messageMap_ = messageMap_.copy();
}
return messageMap_;
}
public int getMessageMapCount() {
return internalGetMessageMap().getMap().size();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public boolean containsMessageMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMessageMap().getMap().containsKey(key);
}
/**
* Use {@link #getMessageMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMessageMap() {
return getMessageMapMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public java.util.Map getMessageMapMap() {
return internalGetMessageMap().getMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getMessageMapOrDefault(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMessageMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getMessageMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMessageMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMessageMap() {
internalGetMutableMessageMap().getMutableMap()
.clear();
return this;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public Builder removeMessageMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMessageMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMessageMap() {
return internalGetMutableMessageMap().getMutableMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public Builder putMessageMap(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMessageMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest> message_map = 8;
*/
public Builder putAllMessageMap(
java.util.Map values) {
internalGetMutableMessageMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, com.google.protobuf.ByteString> bytesMap_;
private com.google.protobuf.MapField
internalGetBytesMap() {
if (bytesMap_ == null) {
return com.google.protobuf.MapField.emptyMapField(
BytesMapDefaultEntryHolder.defaultEntry);
}
return bytesMap_;
}
private com.google.protobuf.MapField
internalGetMutableBytesMap() {
onChanged();;
if (bytesMap_ == null) {
bytesMap_ = com.google.protobuf.MapField.newMapField(
BytesMapDefaultEntryHolder.defaultEntry);
}
if (!bytesMap_.isMutable()) {
bytesMap_ = bytesMap_.copy();
}
return bytesMap_;
}
public int getBytesMapCount() {
return internalGetBytesMap().getMap().size();
}
/**
* map<string, bytes> bytes_map = 9;
*/
public boolean containsBytesMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetBytesMap().getMap().containsKey(key);
}
/**
* Use {@link #getBytesMapMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getBytesMap() {
return getBytesMapMap();
}
/**
* map<string, bytes> bytes_map = 9;
*/
public java.util.Map getBytesMapMap() {
return internalGetBytesMap().getMap();
}
/**
* map<string, bytes> bytes_map = 9;
*/
public com.google.protobuf.ByteString getBytesMapOrDefault(
java.lang.String key,
com.google.protobuf.ByteString defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetBytesMap().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, bytes> bytes_map = 9;
*/
public com.google.protobuf.ByteString getBytesMapOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetBytesMap().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearBytesMap() {
internalGetMutableBytesMap().getMutableMap()
.clear();
return this;
}
/**
* map<string, bytes> bytes_map = 9;
*/
public Builder removeBytesMap(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableBytesMap().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableBytesMap() {
return internalGetMutableBytesMap().getMutableMap();
}
/**
* map<string, bytes> bytes_map = 9;
*/
public Builder putBytesMap(
java.lang.String key,
com.google.protobuf.ByteString value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableBytesMap().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, bytes> bytes_map = 9;
*/
public Builder putAllBytesMap(
java.util.Map values) {
internalGetMutableBytesMap().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.LazyStringList stringArray_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStringArrayIsMutable() {
if (!((bitField0_ & 0x00000200) != 0)) {
stringArray_ = new com.google.protobuf.LazyStringArrayList(stringArray_);
bitField0_ |= 0x00000200;
}
}
/**
* repeated string string_array = 10;
* @return A list containing the stringArray.
*/
public com.google.protobuf.ProtocolStringList
getStringArrayList() {
return stringArray_.getUnmodifiableView();
}
/**
* repeated string string_array = 10;
* @return The count of stringArray.
*/
public int getStringArrayCount() {
return stringArray_.size();
}
/**
* repeated string string_array = 10;
* @param index The index of the element to return.
* @return The stringArray at the given index.
*/
public java.lang.String getStringArray(int index) {
return stringArray_.get(index);
}
/**
* repeated string string_array = 10;
* @param index The index of the value to return.
* @return The bytes of the stringArray at the given index.
*/
public com.google.protobuf.ByteString
getStringArrayBytes(int index) {
return stringArray_.getByteString(index);
}
/**
* repeated string string_array = 10;
* @param index The index to set the value at.
* @param value The stringArray to set.
* @return This builder for chaining.
*/
public Builder setStringArray(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringArrayIsMutable();
stringArray_.set(index, value);
onChanged();
return this;
}
/**
* repeated string string_array = 10;
* @param value The stringArray to add.
* @return This builder for chaining.
*/
public Builder addStringArray(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringArrayIsMutable();
stringArray_.add(value);
onChanged();
return this;
}
/**
* repeated string string_array = 10;
* @param values The stringArray to add.
* @return This builder for chaining.
*/
public Builder addAllStringArray(
java.lang.Iterable values) {
ensureStringArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, stringArray_);
onChanged();
return this;
}
/**
* repeated string string_array = 10;
* @return This builder for chaining.
*/
public Builder clearStringArray() {
stringArray_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* repeated string string_array = 10;
* @param value The bytes of the stringArray to add.
* @return This builder for chaining.
*/
public Builder addStringArrayBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureStringArrayIsMutable();
stringArray_.add(value);
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList intArray_ = emptyIntList();
private void ensureIntArrayIsMutable() {
if (!((bitField0_ & 0x00000400) != 0)) {
intArray_ = mutableCopy(intArray_);
bitField0_ |= 0x00000400;
}
}
/**
* repeated int32 int_array = 11;
* @return A list containing the intArray.
*/
public java.util.List
getIntArrayList() {
return ((bitField0_ & 0x00000400) != 0) ?
java.util.Collections.unmodifiableList(intArray_) : intArray_;
}
/**
* repeated int32 int_array = 11;
* @return The count of intArray.
*/
public int getIntArrayCount() {
return intArray_.size();
}
/**
* repeated int32 int_array = 11;
* @param index The index of the element to return.
* @return The intArray at the given index.
*/
public int getIntArray(int index) {
return intArray_.getInt(index);
}
/**
* repeated int32 int_array = 11;
* @param index The index to set the value at.
* @param value The intArray to set.
* @return This builder for chaining.
*/
public Builder setIntArray(
int index, int value) {
ensureIntArrayIsMutable();
intArray_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated int32 int_array = 11;
* @param value The intArray to add.
* @return This builder for chaining.
*/
public Builder addIntArray(int value) {
ensureIntArrayIsMutable();
intArray_.addInt(value);
onChanged();
return this;
}
/**
* repeated int32 int_array = 11;
* @param values The intArray to add.
* @return This builder for chaining.
*/
public Builder addAllIntArray(
java.lang.Iterable values) {
ensureIntArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, intArray_);
onChanged();
return this;
}
/**
* repeated int32 int_array = 11;
* @return This builder for chaining.
*/
public Builder clearIntArray() {
intArray_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList longArray_ = emptyLongList();
private void ensureLongArrayIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
longArray_ = mutableCopy(longArray_);
bitField0_ |= 0x00000800;
}
}
/**
* repeated int64 long_array = 12;
* @return A list containing the longArray.
*/
public java.util.List
getLongArrayList() {
return ((bitField0_ & 0x00000800) != 0) ?
java.util.Collections.unmodifiableList(longArray_) : longArray_;
}
/**
* repeated int64 long_array = 12;
* @return The count of longArray.
*/
public int getLongArrayCount() {
return longArray_.size();
}
/**
* repeated int64 long_array = 12;
* @param index The index of the element to return.
* @return The longArray at the given index.
*/
public long getLongArray(int index) {
return longArray_.getLong(index);
}
/**
* repeated int64 long_array = 12;
* @param index The index to set the value at.
* @param value The longArray to set.
* @return This builder for chaining.
*/
public Builder setLongArray(
int index, long value) {
ensureLongArrayIsMutable();
longArray_.setLong(index, value);
onChanged();
return this;
}
/**
* repeated int64 long_array = 12;
* @param value The longArray to add.
* @return This builder for chaining.
*/
public Builder addLongArray(long value) {
ensureLongArrayIsMutable();
longArray_.addLong(value);
onChanged();
return this;
}
/**
* repeated int64 long_array = 12;
* @param values The longArray to add.
* @return This builder for chaining.
*/
public Builder addAllLongArray(
java.lang.Iterable values) {
ensureLongArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, longArray_);
onChanged();
return this;
}
/**
* repeated int64 long_array = 12;
* @return This builder for chaining.
*/
public Builder clearLongArray() {
longArray_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
private com.google.protobuf.Internal.BooleanList booleanArray_ = emptyBooleanList();
private void ensureBooleanArrayIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
booleanArray_ = mutableCopy(booleanArray_);
bitField0_ |= 0x00001000;
}
}
/**
* repeated bool boolean_array = 13;
* @return A list containing the booleanArray.
*/
public java.util.List
getBooleanArrayList() {
return ((bitField0_ & 0x00001000) != 0) ?
java.util.Collections.unmodifiableList(booleanArray_) : booleanArray_;
}
/**
* repeated bool boolean_array = 13;
* @return The count of booleanArray.
*/
public int getBooleanArrayCount() {
return booleanArray_.size();
}
/**
* repeated bool boolean_array = 13;
* @param index The index of the element to return.
* @return The booleanArray at the given index.
*/
public boolean getBooleanArray(int index) {
return booleanArray_.getBoolean(index);
}
/**
* repeated bool boolean_array = 13;
* @param index The index to set the value at.
* @param value The booleanArray to set.
* @return This builder for chaining.
*/
public Builder setBooleanArray(
int index, boolean value) {
ensureBooleanArrayIsMutable();
booleanArray_.setBoolean(index, value);
onChanged();
return this;
}
/**
* repeated bool boolean_array = 13;
* @param value The booleanArray to add.
* @return This builder for chaining.
*/
public Builder addBooleanArray(boolean value) {
ensureBooleanArrayIsMutable();
booleanArray_.addBoolean(value);
onChanged();
return this;
}
/**
* repeated bool boolean_array = 13;
* @param values The booleanArray to add.
* @return This builder for chaining.
*/
public Builder addAllBooleanArray(
java.lang.Iterable values) {
ensureBooleanArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, booleanArray_);
onChanged();
return this;
}
/**
* repeated bool boolean_array = 13;
* @return This builder for chaining.
*/
public Builder clearBooleanArray() {
booleanArray_ = emptyBooleanList();
bitField0_ = (bitField0_ & ~0x00001000);
onChanged();
return this;
}
private com.google.protobuf.Internal.FloatList floatArray_ = emptyFloatList();
private void ensureFloatArrayIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
floatArray_ = mutableCopy(floatArray_);
bitField0_ |= 0x00002000;
}
}
/**
* repeated float float_array = 14;
* @return A list containing the floatArray.
*/
public java.util.List
getFloatArrayList() {
return ((bitField0_ & 0x00002000) != 0) ?
java.util.Collections.unmodifiableList(floatArray_) : floatArray_;
}
/**
* repeated float float_array = 14;
* @return The count of floatArray.
*/
public int getFloatArrayCount() {
return floatArray_.size();
}
/**
* repeated float float_array = 14;
* @param index The index of the element to return.
* @return The floatArray at the given index.
*/
public float getFloatArray(int index) {
return floatArray_.getFloat(index);
}
/**
* repeated float float_array = 14;
* @param index The index to set the value at.
* @param value The floatArray to set.
* @return This builder for chaining.
*/
public Builder setFloatArray(
int index, float value) {
ensureFloatArrayIsMutable();
floatArray_.setFloat(index, value);
onChanged();
return this;
}
/**
* repeated float float_array = 14;
* @param value The floatArray to add.
* @return This builder for chaining.
*/
public Builder addFloatArray(float value) {
ensureFloatArrayIsMutable();
floatArray_.addFloat(value);
onChanged();
return this;
}
/**
* repeated float float_array = 14;
* @param values The floatArray to add.
* @return This builder for chaining.
*/
public Builder addAllFloatArray(
java.lang.Iterable values) {
ensureFloatArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, floatArray_);
onChanged();
return this;
}
/**
* repeated float float_array = 14;
* @return This builder for chaining.
*/
public Builder clearFloatArray() {
floatArray_ = emptyFloatList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList doubleArray_ = emptyDoubleList();
private void ensureDoubleArrayIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
doubleArray_ = mutableCopy(doubleArray_);
bitField0_ |= 0x00004000;
}
}
/**
* repeated double double_array = 15;
* @return A list containing the doubleArray.
*/
public java.util.List
getDoubleArrayList() {
return ((bitField0_ & 0x00004000) != 0) ?
java.util.Collections.unmodifiableList(doubleArray_) : doubleArray_;
}
/**
* repeated double double_array = 15;
* @return The count of doubleArray.
*/
public int getDoubleArrayCount() {
return doubleArray_.size();
}
/**
* repeated double double_array = 15;
* @param index The index of the element to return.
* @return The doubleArray at the given index.
*/
public double getDoubleArray(int index) {
return doubleArray_.getDouble(index);
}
/**
* repeated double double_array = 15;
* @param index The index to set the value at.
* @param value The doubleArray to set.
* @return This builder for chaining.
*/
public Builder setDoubleArray(
int index, double value) {
ensureDoubleArrayIsMutable();
doubleArray_.setDouble(index, value);
onChanged();
return this;
}
/**
* repeated double double_array = 15;
* @param value The doubleArray to add.
* @return This builder for chaining.
*/
public Builder addDoubleArray(double value) {
ensureDoubleArrayIsMutable();
doubleArray_.addDouble(value);
onChanged();
return this;
}
/**
* repeated double double_array = 15;
* @param values The doubleArray to add.
* @return This builder for chaining.
*/
public Builder addAllDoubleArray(
java.lang.Iterable values) {
ensureDoubleArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, doubleArray_);
onChanged();
return this;
}
/**
* repeated double double_array = 15;
* @return This builder for chaining.
*/
public Builder clearDoubleArray() {
doubleArray_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
private java.util.List enumArray_ =
java.util.Collections.emptyList();
private void ensureEnumArrayIsMutable() {
if (!((bitField0_ & 0x00008000) != 0)) {
enumArray_ = new java.util.ArrayList(enumArray_);
bitField0_ |= 0x00008000;
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @return A list containing the enumArray.
*/
public java.util.List getEnumArrayList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, org.apache.flink.formats.protobuf.testproto.NullTest.Corpus>(enumArray_, enumArray_converter_);
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @return The count of enumArray.
*/
public int getEnumArrayCount() {
return enumArray_.size();
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @param index The index of the element to return.
* @return The enumArray at the given index.
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.Corpus getEnumArray(int index) {
return enumArray_converter_.convert(enumArray_.get(index));
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @param index The index to set the value at.
* @param value The enumArray to set.
* @return This builder for chaining.
*/
public Builder setEnumArray(
int index, org.apache.flink.formats.protobuf.testproto.NullTest.Corpus value) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumArrayIsMutable();
enumArray_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @param value The enumArray to add.
* @return This builder for chaining.
*/
public Builder addEnumArray(org.apache.flink.formats.protobuf.testproto.NullTest.Corpus value) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumArrayIsMutable();
enumArray_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @param values The enumArray to add.
* @return This builder for chaining.
*/
public Builder addAllEnumArray(
java.lang.Iterable values) {
ensureEnumArrayIsMutable();
for (org.apache.flink.formats.protobuf.testproto.NullTest.Corpus value : values) {
enumArray_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.Corpus enum_array = 16;
* @return This builder for chaining.
*/
public Builder clearEnumArray() {
enumArray_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00008000);
onChanged();
return this;
}
private java.util.List messageArray_ =
java.util.Collections.emptyList();
private void ensureMessageArrayIsMutable() {
if (!((bitField0_ & 0x00010000) != 0)) {
messageArray_ = new java.util.ArrayList(messageArray_);
bitField0_ |= 0x00010000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTestOrBuilder> messageArrayBuilder_;
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public java.util.List getMessageArrayList() {
if (messageArrayBuilder_ == null) {
return java.util.Collections.unmodifiableList(messageArray_);
} else {
return messageArrayBuilder_.getMessageList();
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public int getMessageArrayCount() {
if (messageArrayBuilder_ == null) {
return messageArray_.size();
} else {
return messageArrayBuilder_.getCount();
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest getMessageArray(int index) {
if (messageArrayBuilder_ == null) {
return messageArray_.get(index);
} else {
return messageArrayBuilder_.getMessage(index);
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder setMessageArray(
int index, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest value) {
if (messageArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageArrayIsMutable();
messageArray_.set(index, value);
onChanged();
} else {
messageArrayBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder setMessageArray(
int index, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder builderForValue) {
if (messageArrayBuilder_ == null) {
ensureMessageArrayIsMutable();
messageArray_.set(index, builderForValue.build());
onChanged();
} else {
messageArrayBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder addMessageArray(org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest value) {
if (messageArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageArrayIsMutable();
messageArray_.add(value);
onChanged();
} else {
messageArrayBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder addMessageArray(
int index, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest value) {
if (messageArrayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMessageArrayIsMutable();
messageArray_.add(index, value);
onChanged();
} else {
messageArrayBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder addMessageArray(
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder builderForValue) {
if (messageArrayBuilder_ == null) {
ensureMessageArrayIsMutable();
messageArray_.add(builderForValue.build());
onChanged();
} else {
messageArrayBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder addMessageArray(
int index, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder builderForValue) {
if (messageArrayBuilder_ == null) {
ensureMessageArrayIsMutable();
messageArray_.add(index, builderForValue.build());
onChanged();
} else {
messageArrayBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder addAllMessageArray(
java.lang.Iterable values) {
if (messageArrayBuilder_ == null) {
ensureMessageArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, messageArray_);
onChanged();
} else {
messageArrayBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder clearMessageArray() {
if (messageArrayBuilder_ == null) {
messageArray_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
} else {
messageArrayBuilder_.clear();
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public Builder removeMessageArray(int index) {
if (messageArrayBuilder_ == null) {
ensureMessageArrayIsMutable();
messageArray_.remove(index);
onChanged();
} else {
messageArrayBuilder_.remove(index);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder getMessageArrayBuilder(
int index) {
return getMessageArrayFieldBuilder().getBuilder(index);
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTestOrBuilder getMessageArrayOrBuilder(
int index) {
if (messageArrayBuilder_ == null) {
return messageArray_.get(index); } else {
return messageArrayBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public java.util.List
getMessageArrayOrBuilderList() {
if (messageArrayBuilder_ != null) {
return messageArrayBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(messageArray_);
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder addMessageArrayBuilder() {
return getMessageArrayFieldBuilder().addBuilder(
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.getDefaultInstance());
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder addMessageArrayBuilder(
int index) {
return getMessageArrayFieldBuilder().addBuilder(
index, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.getDefaultInstance());
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest message_array = 17;
*/
public java.util.List
getMessageArrayBuilderList() {
return getMessageArrayFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTestOrBuilder>
getMessageArrayFieldBuilder() {
if (messageArrayBuilder_ == null) {
messageArrayBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.NullTest.InnerMessageTestOrBuilder>(
messageArray_,
((bitField0_ & 0x00010000) != 0),
getParentForChildren(),
isClean());
messageArray_ = null;
}
return messageArrayBuilder_;
}
private java.util.List bytesArray_ = java.util.Collections.emptyList();
private void ensureBytesArrayIsMutable() {
if (!((bitField0_ & 0x00020000) != 0)) {
bytesArray_ = new java.util.ArrayList(bytesArray_);
bitField0_ |= 0x00020000;
}
}
/**
* repeated bytes bytes_array = 18;
* @return A list containing the bytesArray.
*/
public java.util.List
getBytesArrayList() {
return ((bitField0_ & 0x00020000) != 0) ?
java.util.Collections.unmodifiableList(bytesArray_) : bytesArray_;
}
/**
* repeated bytes bytes_array = 18;
* @return The count of bytesArray.
*/
public int getBytesArrayCount() {
return bytesArray_.size();
}
/**
* repeated bytes bytes_array = 18;
* @param index The index of the element to return.
* @return The bytesArray at the given index.
*/
public com.google.protobuf.ByteString getBytesArray(int index) {
return bytesArray_.get(index);
}
/**
* repeated bytes bytes_array = 18;
* @param index The index to set the value at.
* @param value The bytesArray to set.
* @return This builder for chaining.
*/
public Builder setBytesArray(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBytesArrayIsMutable();
bytesArray_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes bytes_array = 18;
* @param value The bytesArray to add.
* @return This builder for chaining.
*/
public Builder addBytesArray(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureBytesArrayIsMutable();
bytesArray_.add(value);
onChanged();
return this;
}
/**
* repeated bytes bytes_array = 18;
* @param values The bytesArray to add.
* @return This builder for chaining.
*/
public Builder addAllBytesArray(
java.lang.Iterable values) {
ensureBytesArrayIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, bytesArray_);
onChanged();
return this;
}
/**
* repeated bytes bytes_array = 18;
* @return This builder for chaining.
*/
public Builder clearBytesArray() {
bytesArray_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00020000);
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:org.apache.flink.formats.protobuf.testproto.NullTest)
}
// @@protoc_insertion_point(class_scope:org.apache.flink.formats.protobuf.testproto.NullTest)
private static final org.apache.flink.formats.protobuf.testproto.NullTest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.flink.formats.protobuf.testproto.NullTest();
}
public static org.apache.flink.formats.protobuf.testproto.NullTest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NullTest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NullTest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.NullTest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}