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.Pb3Test Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pb3_test.proto
package org.apache.flink.formats.protobuf.testproto;
/**
* Protobuf type {@code org.apache.flink.formats.protobuf.testproto.Pb3Test}
*/
public final class Pb3Test extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.apache.flink.formats.protobuf.testproto.Pb3Test)
Pb3TestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Pb3Test.newBuilder() to construct.
private Pb3Test(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private Pb3Test() {
c_ = "";
f_ = 0;
h_ = java.util.Collections.emptyList();
i_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Pb3Test();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Pb3Test(
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: {
a_ = input.readInt32();
break;
}
case 16: {
b_ = input.readInt64();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
c_ = s;
break;
}
case 37: {
d_ = input.readFloat();
break;
}
case 41: {
e_ = input.readDouble();
break;
}
case 48: {
int rawValue = input.readEnum();
f_ = rawValue;
break;
}
case 58: {
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder subBuilder = null;
if (g_ != null) {
subBuilder = g_.toBuilder();
}
g_ = input.readMessage(org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(g_);
g_ = subBuilder.buildPartial();
}
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
h_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
h_.add(
input.readMessage(org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.parser(), extensionRegistry));
break;
}
case 74: {
i_ = input.readBytes();
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
map1_ = com.google.protobuf.MapField.newMapField(
Map1DefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
map1__ = input.readMessage(
Map1DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
map1_.getMutableMap().put(
map1__.getKey(), map1__.getValue());
break;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
map2_ = com.google.protobuf.MapField.newMapField(
Map2DefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000004;
}
com.google.protobuf.MapEntry
map2__ = input.readMessage(
Map2DefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
map2_.getMutableMap().put(
map2__.getKey(), map2__.getValue());
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
h_ = java.util.Collections.unmodifiableList(h_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 10:
return internalGetMap1();
case 11:
return internalGetMap2();
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.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.flink.formats.protobuf.testproto.Pb3Test.class, org.apache.flink.formats.protobuf.testproto.Pb3Test.Builder.class);
}
/**
* Protobuf enum {@code org.apache.flink.formats.protobuf.testproto.Pb3Test.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),
UNRECOGNIZED(-1),
;
/**
* 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() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static 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.Pb3Test.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.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
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.Pb3Test.Corpus)
}
public interface InnerMessageTestOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest)
com.google.protobuf.MessageOrBuilder {
/**
* int32 a = 1;
* @return The a.
*/
int getA();
/**
* int64 b = 2;
* @return The b.
*/
long getB();
}
/**
* Protobuf type {@code org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest}
*/
public static final class InnerMessageTest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.apache.flink.formats.protobuf.testproto.Pb3Test.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();
}
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: {
a_ = input.readInt32();
break;
}
case 16: {
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.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_InnerMessageTest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_InnerMessageTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.class, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder.class);
}
public static final int A_FIELD_NUMBER = 1;
private int a_;
/**
* int32 a = 1;
* @return The a.
*/
public int getA() {
return a_;
}
public static final int B_FIELD_NUMBER = 2;
private long b_;
/**
* 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 (a_ != 0) {
output.writeInt32(1, a_);
}
if (b_ != 0L) {
output.writeInt64(2, b_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (a_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, a_);
}
if (b_ != 0L) {
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.Pb3Test.InnerMessageTest)) {
return super.equals(obj);
}
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest other = (org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest) obj;
if (getA()
!= other.getA()) return false;
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();
hash = (37 * hash) + A_FIELD_NUMBER;
hash = (53 * hash) + getA();
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.Pb3Test.InnerMessageTest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test.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.Pb3Test.InnerMessageTest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test.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.Pb3Test.InnerMessageTest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test.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.Pb3Test.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.Pb3Test.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.Pb3Test.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.Pb3Test.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.Pb3Test.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.Pb3Test.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.Pb3Test.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.Pb3Test.InnerMessageTest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest)
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_InnerMessageTest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_InnerMessageTest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.class, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder.class);
}
// Construct using org.apache.flink.formats.protobuf.testproto.Pb3Test.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;
b_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_InnerMessageTest_descriptor;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getDefaultInstanceForType() {
return org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.getDefaultInstance();
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest build() {
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest buildPartial() {
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest result = new org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest(this);
result.a_ = a_;
result.b_ = b_;
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.Pb3Test.InnerMessageTest) {
return mergeFrom((org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest other) {
if (other == org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.getDefaultInstance()) return this;
if (other.getA() != 0) {
setA(other.getA());
}
if (other.getB() != 0L) {
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.Pb3Test.InnerMessageTest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int a_ ;
/**
* int32 a = 1;
* @return The a.
*/
public int getA() {
return a_;
}
/**
* int32 a = 1;
* @param value The a to set.
* @return This builder for chaining.
*/
public Builder setA(int value) {
a_ = value;
onChanged();
return this;
}
/**
* int32 a = 1;
* @return This builder for chaining.
*/
public Builder clearA() {
a_ = 0;
onChanged();
return this;
}
private long b_ ;
/**
* int64 b = 2;
* @return The b.
*/
public long getB() {
return b_;
}
/**
* int64 b = 2;
* @param value The b to set.
* @return This builder for chaining.
*/
public Builder setB(long value) {
b_ = value;
onChanged();
return this;
}
/**
* int64 b = 2;
* @return This builder for chaining.
*/
public Builder clearB() {
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.Pb3Test.InnerMessageTest)
}
// @@protoc_insertion_point(class_scope:org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest)
private static final org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest();
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private 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.Pb3Test.InnerMessageTest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int A_FIELD_NUMBER = 1;
private int a_;
/**
* int32 a = 1;
* @return The a.
*/
public int getA() {
return a_;
}
public static final int B_FIELD_NUMBER = 2;
private long b_;
/**
* int64 b = 2;
* @return The b.
*/
public long getB() {
return b_;
}
public static final int C_FIELD_NUMBER = 3;
private volatile java.lang.Object c_;
/**
* string c = 3;
* @return The c.
*/
public java.lang.String getC() {
java.lang.Object ref = c_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
c_ = s;
return s;
}
}
/**
* string c = 3;
* @return The bytes for c.
*/
public com.google.protobuf.ByteString
getCBytes() {
java.lang.Object ref = c_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
c_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int D_FIELD_NUMBER = 4;
private float d_;
/**
* float d = 4;
* @return The d.
*/
public float getD() {
return d_;
}
public static final int E_FIELD_NUMBER = 5;
private double e_;
/**
* double e = 5;
* @return The e.
*/
public double getE() {
return e_;
}
public static final int F_FIELD_NUMBER = 6;
private int f_;
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus f = 6;
* @return The enum numeric value on the wire for f.
*/
public int getFValue() {
return f_;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus f = 6;
* @return The f.
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus getF() {
@SuppressWarnings("deprecation")
org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus result = org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus.valueOf(f_);
return result == null ? org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus.UNRECOGNIZED : result;
}
public static final int G_FIELD_NUMBER = 7;
private org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g_;
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
* @return Whether the g field is set.
*/
public boolean hasG() {
return g_ != null;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
* @return The g.
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getG() {
return g_ == null ? org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.getDefaultInstance() : g_;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder getGOrBuilder() {
return getG();
}
public static final int H_FIELD_NUMBER = 8;
private java.util.List h_;
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public java.util.List getHList() {
return h_;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public java.util.List
getHOrBuilderList() {
return h_;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public int getHCount() {
return h_.size();
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getH(int index) {
return h_.get(index);
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder getHOrBuilder(
int index) {
return h_.get(index);
}
public static final int I_FIELD_NUMBER = 9;
private com.google.protobuf.ByteString i_;
/**
* bytes i = 9;
* @return The i.
*/
public com.google.protobuf.ByteString getI() {
return i_;
}
public static final int MAP1_FIELD_NUMBER = 10;
private static final class Map1DefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_Map1Entry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> map1_;
private com.google.protobuf.MapField
internalGetMap1() {
if (map1_ == null) {
return com.google.protobuf.MapField.emptyMapField(
Map1DefaultEntryHolder.defaultEntry);
}
return map1_;
}
public int getMap1Count() {
return internalGetMap1().getMap().size();
}
/**
* map<string, string> map1 = 10;
*/
public boolean containsMap1(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMap1().getMap().containsKey(key);
}
/**
* Use {@link #getMap1Map()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMap1() {
return getMap1Map();
}
/**
* map<string, string> map1 = 10;
*/
public java.util.Map getMap1Map() {
return internalGetMap1().getMap();
}
/**
* map<string, string> map1 = 10;
*/
public java.lang.String getMap1OrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap1().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> map1 = 10;
*/
public java.lang.String getMap1OrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap1().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int MAP2_FIELD_NUMBER = 11;
private static final class Map2DefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_Map2Entry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2_;
private com.google.protobuf.MapField
internalGetMap2() {
if (map2_ == null) {
return com.google.protobuf.MapField.emptyMapField(
Map2DefaultEntryHolder.defaultEntry);
}
return map2_;
}
public int getMap2Count() {
return internalGetMap2().getMap().size();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public boolean containsMap2(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMap2().getMap().containsKey(key);
}
/**
* Use {@link #getMap2Map()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMap2() {
return getMap2Map();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public java.util.Map getMap2Map() {
return internalGetMap2().getMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getMap2OrDefault(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap2().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getMap2OrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap2().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (a_ != 0) {
output.writeInt32(1, a_);
}
if (b_ != 0L) {
output.writeInt64(2, b_);
}
if (!getCBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, c_);
}
if (d_ != 0F) {
output.writeFloat(4, d_);
}
if (e_ != 0D) {
output.writeDouble(5, e_);
}
if (f_ != org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus.UNIVERSAL.getNumber()) {
output.writeEnum(6, f_);
}
if (g_ != null) {
output.writeMessage(7, getG());
}
for (int i = 0; i < h_.size(); i++) {
output.writeMessage(8, h_.get(i));
}
if (!i_.isEmpty()) {
output.writeBytes(9, i_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMap1(),
Map1DefaultEntryHolder.defaultEntry,
10);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMap2(),
Map2DefaultEntryHolder.defaultEntry,
11);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (a_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, a_);
}
if (b_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, b_);
}
if (!getCBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, c_);
}
if (d_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(4, d_);
}
if (e_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, e_);
}
if (f_ != org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus.UNIVERSAL.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, f_);
}
if (g_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getG());
}
for (int i = 0; i < h_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, h_.get(i));
}
if (!i_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(9, i_);
}
for (java.util.Map.Entry entry
: internalGetMap1().getMap().entrySet()) {
com.google.protobuf.MapEntry
map1__ = Map1DefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, map1__);
}
for (java.util.Map.Entry entry
: internalGetMap2().getMap().entrySet()) {
com.google.protobuf.MapEntry
map2__ = Map2DefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, map2__);
}
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.Pb3Test)) {
return super.equals(obj);
}
org.apache.flink.formats.protobuf.testproto.Pb3Test other = (org.apache.flink.formats.protobuf.testproto.Pb3Test) obj;
if (getA()
!= other.getA()) return false;
if (getB()
!= other.getB()) return false;
if (!getC()
.equals(other.getC())) return false;
if (java.lang.Float.floatToIntBits(getD())
!= java.lang.Float.floatToIntBits(
other.getD())) return false;
if (java.lang.Double.doubleToLongBits(getE())
!= java.lang.Double.doubleToLongBits(
other.getE())) return false;
if (f_ != other.f_) return false;
if (hasG() != other.hasG()) return false;
if (hasG()) {
if (!getG()
.equals(other.getG())) return false;
}
if (!getHList()
.equals(other.getHList())) return false;
if (!getI()
.equals(other.getI())) return false;
if (!internalGetMap1().equals(
other.internalGetMap1())) return false;
if (!internalGetMap2().equals(
other.internalGetMap2())) 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();
hash = (37 * hash) + A_FIELD_NUMBER;
hash = (53 * hash) + getA();
hash = (37 * hash) + B_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getB());
hash = (37 * hash) + C_FIELD_NUMBER;
hash = (53 * hash) + getC().hashCode();
hash = (37 * hash) + D_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getD());
hash = (37 * hash) + E_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getE()));
hash = (37 * hash) + F_FIELD_NUMBER;
hash = (53 * hash) + f_;
if (hasG()) {
hash = (37 * hash) + G_FIELD_NUMBER;
hash = (53 * hash) + getG().hashCode();
}
if (getHCount() > 0) {
hash = (37 * hash) + H_FIELD_NUMBER;
hash = (53 * hash) + getHList().hashCode();
}
hash = (37 * hash) + I_FIELD_NUMBER;
hash = (53 * hash) + getI().hashCode();
if (!internalGetMap1().getMap().isEmpty()) {
hash = (37 * hash) + MAP1_FIELD_NUMBER;
hash = (53 * hash) + internalGetMap1().hashCode();
}
if (!internalGetMap2().getMap().isEmpty()) {
hash = (37 * hash) + MAP2_FIELD_NUMBER;
hash = (53 * hash) + internalGetMap2().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test 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.Pb3Test parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test 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.Pb3Test parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test 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.Pb3Test 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.Pb3Test 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.Pb3Test 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.Pb3Test 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.Pb3Test 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.Pb3Test 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.Pb3Test 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.Pb3Test}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:org.apache.flink.formats.protobuf.testproto.Pb3Test)
org.apache.flink.formats.protobuf.testproto.Pb3TestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 10:
return internalGetMap1();
case 11:
return internalGetMap2();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 10:
return internalGetMutableMap1();
case 11:
return internalGetMutableMap2();
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.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.flink.formats.protobuf.testproto.Pb3Test.class, org.apache.flink.formats.protobuf.testproto.Pb3Test.Builder.class);
}
// Construct using org.apache.flink.formats.protobuf.testproto.Pb3Test.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getHFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
a_ = 0;
b_ = 0L;
c_ = "";
d_ = 0F;
e_ = 0D;
f_ = 0;
if (gBuilder_ == null) {
g_ = null;
} else {
g_ = null;
gBuilder_ = null;
}
if (hBuilder_ == null) {
h_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
hBuilder_.clear();
}
i_ = com.google.protobuf.ByteString.EMPTY;
internalGetMutableMap1().clear();
internalGetMutableMap2().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.apache.flink.formats.protobuf.testproto.Pb3TestOuterClass.internal_static_org_apache_flink_formats_protobuf_testproto_Pb3Test_descriptor;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.Pb3Test getDefaultInstanceForType() {
return org.apache.flink.formats.protobuf.testproto.Pb3Test.getDefaultInstance();
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.Pb3Test build() {
org.apache.flink.formats.protobuf.testproto.Pb3Test result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.flink.formats.protobuf.testproto.Pb3Test buildPartial() {
org.apache.flink.formats.protobuf.testproto.Pb3Test result = new org.apache.flink.formats.protobuf.testproto.Pb3Test(this);
int from_bitField0_ = bitField0_;
result.a_ = a_;
result.b_ = b_;
result.c_ = c_;
result.d_ = d_;
result.e_ = e_;
result.f_ = f_;
if (gBuilder_ == null) {
result.g_ = g_;
} else {
result.g_ = gBuilder_.build();
}
if (hBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
h_ = java.util.Collections.unmodifiableList(h_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.h_ = h_;
} else {
result.h_ = hBuilder_.build();
}
result.i_ = i_;
result.map1_ = internalGetMap1();
result.map1_.makeImmutable();
result.map2_ = internalGetMap2();
result.map2_.makeImmutable();
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.Pb3Test) {
return mergeFrom((org.apache.flink.formats.protobuf.testproto.Pb3Test)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.flink.formats.protobuf.testproto.Pb3Test other) {
if (other == org.apache.flink.formats.protobuf.testproto.Pb3Test.getDefaultInstance()) return this;
if (other.getA() != 0) {
setA(other.getA());
}
if (other.getB() != 0L) {
setB(other.getB());
}
if (!other.getC().isEmpty()) {
c_ = other.c_;
onChanged();
}
if (other.getD() != 0F) {
setD(other.getD());
}
if (other.getE() != 0D) {
setE(other.getE());
}
if (other.f_ != 0) {
setFValue(other.getFValue());
}
if (other.hasG()) {
mergeG(other.getG());
}
if (hBuilder_ == null) {
if (!other.h_.isEmpty()) {
if (h_.isEmpty()) {
h_ = other.h_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHIsMutable();
h_.addAll(other.h_);
}
onChanged();
}
} else {
if (!other.h_.isEmpty()) {
if (hBuilder_.isEmpty()) {
hBuilder_.dispose();
hBuilder_ = null;
h_ = other.h_;
bitField0_ = (bitField0_ & ~0x00000001);
hBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getHFieldBuilder() : null;
} else {
hBuilder_.addAllMessages(other.h_);
}
}
}
if (other.getI() != com.google.protobuf.ByteString.EMPTY) {
setI(other.getI());
}
internalGetMutableMap1().mergeFrom(
other.internalGetMap1());
internalGetMutableMap2().mergeFrom(
other.internalGetMap2());
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.Pb3Test parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.flink.formats.protobuf.testproto.Pb3Test) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int a_ ;
/**
* int32 a = 1;
* @return The a.
*/
public int getA() {
return a_;
}
/**
* int32 a = 1;
* @param value The a to set.
* @return This builder for chaining.
*/
public Builder setA(int value) {
a_ = value;
onChanged();
return this;
}
/**
* int32 a = 1;
* @return This builder for chaining.
*/
public Builder clearA() {
a_ = 0;
onChanged();
return this;
}
private long b_ ;
/**
* int64 b = 2;
* @return The b.
*/
public long getB() {
return b_;
}
/**
* int64 b = 2;
* @param value The b to set.
* @return This builder for chaining.
*/
public Builder setB(long value) {
b_ = value;
onChanged();
return this;
}
/**
* int64 b = 2;
* @return This builder for chaining.
*/
public Builder clearB() {
b_ = 0L;
onChanged();
return this;
}
private java.lang.Object c_ = "";
/**
* string c = 3;
* @return The c.
*/
public java.lang.String getC() {
java.lang.Object ref = c_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
c_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string c = 3;
* @return The bytes for c.
*/
public com.google.protobuf.ByteString
getCBytes() {
java.lang.Object ref = c_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
c_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string c = 3;
* @param value The c to set.
* @return This builder for chaining.
*/
public Builder setC(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
c_ = value;
onChanged();
return this;
}
/**
* string c = 3;
* @return This builder for chaining.
*/
public Builder clearC() {
c_ = getDefaultInstance().getC();
onChanged();
return this;
}
/**
* string c = 3;
* @param value The bytes for c to set.
* @return This builder for chaining.
*/
public Builder setCBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
c_ = value;
onChanged();
return this;
}
private float d_ ;
/**
* float d = 4;
* @return The d.
*/
public float getD() {
return d_;
}
/**
* float d = 4;
* @param value The d to set.
* @return This builder for chaining.
*/
public Builder setD(float value) {
d_ = value;
onChanged();
return this;
}
/**
* float d = 4;
* @return This builder for chaining.
*/
public Builder clearD() {
d_ = 0F;
onChanged();
return this;
}
private double e_ ;
/**
* double e = 5;
* @return The e.
*/
public double getE() {
return e_;
}
/**
* double e = 5;
* @param value The e to set.
* @return This builder for chaining.
*/
public Builder setE(double value) {
e_ = value;
onChanged();
return this;
}
/**
* double e = 5;
* @return This builder for chaining.
*/
public Builder clearE() {
e_ = 0D;
onChanged();
return this;
}
private int f_ = 0;
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus f = 6;
* @return The enum numeric value on the wire for f.
*/
public int getFValue() {
return f_;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus f = 6;
* @param value The enum numeric value on the wire for f to set.
* @return This builder for chaining.
*/
public Builder setFValue(int value) {
f_ = value;
onChanged();
return this;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus f = 6;
* @return The f.
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus getF() {
@SuppressWarnings("deprecation")
org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus result = org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus.valueOf(f_);
return result == null ? org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus.UNRECOGNIZED : result;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus f = 6;
* @param value The f to set.
* @return This builder for chaining.
*/
public Builder setF(org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus value) {
if (value == null) {
throw new NullPointerException();
}
f_ = value.getNumber();
onChanged();
return this;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.Corpus f = 6;
* @return This builder for chaining.
*/
public Builder clearF() {
f_ = 0;
onChanged();
return this;
}
private org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g_;
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder> gBuilder_;
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
* @return Whether the g field is set.
*/
public boolean hasG() {
return gBuilder_ != null || g_ != null;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
* @return The g.
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getG() {
if (gBuilder_ == null) {
return g_ == null ? org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.getDefaultInstance() : g_;
} else {
return gBuilder_.getMessage();
}
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
*/
public Builder setG(org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest value) {
if (gBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
g_ = value;
onChanged();
} else {
gBuilder_.setMessage(value);
}
return this;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
*/
public Builder setG(
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder builderForValue) {
if (gBuilder_ == null) {
g_ = builderForValue.build();
onChanged();
} else {
gBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
*/
public Builder mergeG(org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest value) {
if (gBuilder_ == null) {
if (g_ != null) {
g_ =
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.newBuilder(g_).mergeFrom(value).buildPartial();
} else {
g_ = value;
}
onChanged();
} else {
gBuilder_.mergeFrom(value);
}
return this;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
*/
public Builder clearG() {
if (gBuilder_ == null) {
g_ = null;
onChanged();
} else {
g_ = null;
gBuilder_ = null;
}
return this;
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder getGBuilder() {
onChanged();
return getGFieldBuilder().getBuilder();
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder getGOrBuilder() {
if (gBuilder_ != null) {
return gBuilder_.getMessageOrBuilder();
} else {
return g_ == null ?
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.getDefaultInstance() : g_;
}
}
/**
* .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest g = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder>
getGFieldBuilder() {
if (gBuilder_ == null) {
gBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder>(
getG(),
getParentForChildren(),
isClean());
g_ = null;
}
return gBuilder_;
}
private java.util.List h_ =
java.util.Collections.emptyList();
private void ensureHIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
h_ = new java.util.ArrayList(h_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder> hBuilder_;
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public java.util.List getHList() {
if (hBuilder_ == null) {
return java.util.Collections.unmodifiableList(h_);
} else {
return hBuilder_.getMessageList();
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public int getHCount() {
if (hBuilder_ == null) {
return h_.size();
} else {
return hBuilder_.getCount();
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getH(int index) {
if (hBuilder_ == null) {
return h_.get(index);
} else {
return hBuilder_.getMessage(index);
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder setH(
int index, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest value) {
if (hBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHIsMutable();
h_.set(index, value);
onChanged();
} else {
hBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder setH(
int index, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder builderForValue) {
if (hBuilder_ == null) {
ensureHIsMutable();
h_.set(index, builderForValue.build());
onChanged();
} else {
hBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder addH(org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest value) {
if (hBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHIsMutable();
h_.add(value);
onChanged();
} else {
hBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder addH(
int index, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest value) {
if (hBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHIsMutable();
h_.add(index, value);
onChanged();
} else {
hBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder addH(
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder builderForValue) {
if (hBuilder_ == null) {
ensureHIsMutable();
h_.add(builderForValue.build());
onChanged();
} else {
hBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder addH(
int index, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder builderForValue) {
if (hBuilder_ == null) {
ensureHIsMutable();
h_.add(index, builderForValue.build());
onChanged();
} else {
hBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder addAllH(
java.lang.Iterable values) {
if (hBuilder_ == null) {
ensureHIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, h_);
onChanged();
} else {
hBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder clearH() {
if (hBuilder_ == null) {
h_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
hBuilder_.clear();
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public Builder removeH(int index) {
if (hBuilder_ == null) {
ensureHIsMutable();
h_.remove(index);
onChanged();
} else {
hBuilder_.remove(index);
}
return this;
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder getHBuilder(
int index) {
return getHFieldBuilder().getBuilder(index);
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder getHOrBuilder(
int index) {
if (hBuilder_ == null) {
return h_.get(index); } else {
return hBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public java.util.List
getHOrBuilderList() {
if (hBuilder_ != null) {
return hBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(h_);
}
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder addHBuilder() {
return getHFieldBuilder().addBuilder(
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.getDefaultInstance());
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder addHBuilder(
int index) {
return getHFieldBuilder().addBuilder(
index, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.getDefaultInstance());
}
/**
* repeated .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest h = 8;
*/
public java.util.List
getHBuilderList() {
return getHFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder>
getHFieldBuilder() {
if (hBuilder_ == null) {
hBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest.Builder, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTestOrBuilder>(
h_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
h_ = null;
}
return hBuilder_;
}
private com.google.protobuf.ByteString i_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes i = 9;
* @return The i.
*/
public com.google.protobuf.ByteString getI() {
return i_;
}
/**
* bytes i = 9;
* @param value The i to set.
* @return This builder for chaining.
*/
public Builder setI(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
i_ = value;
onChanged();
return this;
}
/**
* bytes i = 9;
* @return This builder for chaining.
*/
public Builder clearI() {
i_ = getDefaultInstance().getI();
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> map1_;
private com.google.protobuf.MapField
internalGetMap1() {
if (map1_ == null) {
return com.google.protobuf.MapField.emptyMapField(
Map1DefaultEntryHolder.defaultEntry);
}
return map1_;
}
private com.google.protobuf.MapField
internalGetMutableMap1() {
onChanged();;
if (map1_ == null) {
map1_ = com.google.protobuf.MapField.newMapField(
Map1DefaultEntryHolder.defaultEntry);
}
if (!map1_.isMutable()) {
map1_ = map1_.copy();
}
return map1_;
}
public int getMap1Count() {
return internalGetMap1().getMap().size();
}
/**
* map<string, string> map1 = 10;
*/
public boolean containsMap1(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMap1().getMap().containsKey(key);
}
/**
* Use {@link #getMap1Map()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMap1() {
return getMap1Map();
}
/**
* map<string, string> map1 = 10;
*/
public java.util.Map getMap1Map() {
return internalGetMap1().getMap();
}
/**
* map<string, string> map1 = 10;
*/
public java.lang.String getMap1OrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap1().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> map1 = 10;
*/
public java.lang.String getMap1OrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap1().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMap1() {
internalGetMutableMap1().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> map1 = 10;
*/
public Builder removeMap1(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMap1().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMap1() {
return internalGetMutableMap1().getMutableMap();
}
/**
* map<string, string> map1 = 10;
*/
public Builder putMap1(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMap1().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> map1 = 10;
*/
public Builder putAllMap1(
java.util.Map values) {
internalGetMutableMap1().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2_;
private com.google.protobuf.MapField
internalGetMap2() {
if (map2_ == null) {
return com.google.protobuf.MapField.emptyMapField(
Map2DefaultEntryHolder.defaultEntry);
}
return map2_;
}
private com.google.protobuf.MapField
internalGetMutableMap2() {
onChanged();;
if (map2_ == null) {
map2_ = com.google.protobuf.MapField.newMapField(
Map2DefaultEntryHolder.defaultEntry);
}
if (!map2_.isMutable()) {
map2_ = map2_.copy();
}
return map2_;
}
public int getMap2Count() {
return internalGetMap2().getMap().size();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public boolean containsMap2(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMap2().getMap().containsKey(key);
}
/**
* Use {@link #getMap2Map()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMap2() {
return getMap2Map();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public java.util.Map getMap2Map() {
return internalGetMap2().getMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getMap2OrDefault(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap2().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest getMap2OrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMap2().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMap2() {
internalGetMutableMap2().getMutableMap()
.clear();
return this;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public Builder removeMap2(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMap2().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMap2() {
return internalGetMutableMap2().getMutableMap();
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public Builder putMap2(
java.lang.String key,
org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMap2().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .org.apache.flink.formats.protobuf.testproto.Pb3Test.InnerMessageTest> map2 = 11;
*/
public Builder putAllMap2(
java.util.Map values) {
internalGetMutableMap2().getMutableMap()
.putAll(values);
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.Pb3Test)
}
// @@protoc_insertion_point(class_scope:org.apache.flink.formats.protobuf.testproto.Pb3Test)
private static final org.apache.flink.formats.protobuf.testproto.Pb3Test DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.flink.formats.protobuf.testproto.Pb3Test();
}
public static org.apache.flink.formats.protobuf.testproto.Pb3Test getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Pb3Test parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Pb3Test(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.Pb3Test getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}