com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ProtoTestObjects.proto
package com.github.dozermapper.protobuf.vo.proto;
public final class ProtoTestObjects {
private ProtoTestObjects() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code ProtoEnum}
*/
public enum ProtoEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* VALUE0 = 0;
*/
VALUE0(0),
/**
* VALUE1 = 1;
*/
VALUE1(1),
/**
* VALUE2 = 2;
*/
VALUE2(2),
UNRECOGNIZED(-1),
;
/**
* VALUE0 = 0;
*/
public static final int VALUE0_VALUE = 0;
/**
* VALUE1 = 1;
*/
public static final int VALUE1_VALUE = 1;
/**
* VALUE2 = 2;
*/
public static final int VALUE2_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ProtoEnum valueOf(int value) {
return forNumber(value);
}
public static ProtoEnum forNumber(int value) {
switch (value) {
case 0: return VALUE0;
case 1: return VALUE1;
case 2: return VALUE2;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ProtoEnum> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ProtoEnum findValueByNumber(int number) {
return ProtoEnum.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 com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.getDescriptor().getEnumTypes().get(0);
}
private static final ProtoEnum[] VALUES = values();
public static ProtoEnum 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 ProtoEnum(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ProtoEnum)
}
public interface SimpleProtoTestObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:SimpleProtoTestObject)
com.google.protobuf.MessageOrBuilder {
/**
* string one = 1;
*/
java.lang.String getOne();
/**
* string one = 1;
*/
com.google.protobuf.ByteString
getOneBytes();
}
/**
* Protobuf type {@code SimpleProtoTestObject}
*/
public static final class SimpleProtoTestObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:SimpleProtoTestObject)
SimpleProtoTestObjectOrBuilder {
// Use SimpleProtoTestObject.newBuilder() to construct.
private SimpleProtoTestObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SimpleProtoTestObject() {
one_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private SimpleProtoTestObject(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
one_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder.class);
}
public static final int ONE_FIELD_NUMBER = 1;
private volatile java.lang.Object one_;
/**
* string one = 1;
*/
public java.lang.String getOne() {
java.lang.Object ref = one_;
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();
one_ = s;
return s;
}
}
/**
* string one = 1;
*/
public com.google.protobuf.ByteString
getOneBytes() {
java.lang.Object ref = one_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
one_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getOneBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, one_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getOneBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, one_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject) obj;
boolean result = true;
result = result && getOne()
.equals(other.getOne());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ONE_FIELD_NUMBER;
hash = (53 * hash) + getOne().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 SimpleProtoTestObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:SimpleProtoTestObject)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
one_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObject_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject(this);
result.one_ = one_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.getDefaultInstance()) return this;
if (!other.getOne().isEmpty()) {
one_ = other.one_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object one_ = "";
/**
* string one = 1;
*/
public java.lang.String getOne() {
java.lang.Object ref = one_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
one_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string one = 1;
*/
public com.google.protobuf.ByteString
getOneBytes() {
java.lang.Object ref = one_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
one_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string one = 1;
*/
public Builder setOne(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
one_ = value;
onChanged();
return this;
}
/**
* string one = 1;
*/
public Builder clearOne() {
one_ = getDefaultInstance().getOne();
onChanged();
return this;
}
/**
* string one = 1;
*/
public Builder setOneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
one_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:SimpleProtoTestObject)
}
// @@protoc_insertion_point(class_scope:SimpleProtoTestObject)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SimpleProtoTestObject parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SimpleProtoTestObject(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SimpleProtoTestObjectWithoutRequiredOrBuilder extends
// @@protoc_insertion_point(interface_extends:SimpleProtoTestObjectWithoutRequired)
com.google.protobuf.MessageOrBuilder {
/**
* string one = 1;
*/
java.lang.String getOne();
/**
* string one = 1;
*/
com.google.protobuf.ByteString
getOneBytes();
}
/**
* Protobuf type {@code SimpleProtoTestObjectWithoutRequired}
*/
public static final class SimpleProtoTestObjectWithoutRequired extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:SimpleProtoTestObjectWithoutRequired)
SimpleProtoTestObjectWithoutRequiredOrBuilder {
// Use SimpleProtoTestObjectWithoutRequired.newBuilder() to construct.
private SimpleProtoTestObjectWithoutRequired(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SimpleProtoTestObjectWithoutRequired() {
one_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private SimpleProtoTestObjectWithoutRequired(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
one_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObjectWithoutRequired_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObjectWithoutRequired_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired.Builder.class);
}
public static final int ONE_FIELD_NUMBER = 1;
private volatile java.lang.Object one_;
/**
* string one = 1;
*/
public java.lang.String getOne() {
java.lang.Object ref = one_;
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();
one_ = s;
return s;
}
}
/**
* string one = 1;
*/
public com.google.protobuf.ByteString
getOneBytes() {
java.lang.Object ref = one_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
one_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getOneBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, one_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getOneBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, one_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired) obj;
boolean result = true;
result = result && getOne()
.equals(other.getOne());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ONE_FIELD_NUMBER;
hash = (53 * hash) + getOne().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 SimpleProtoTestObjectWithoutRequired}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:SimpleProtoTestObjectWithoutRequired)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequiredOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObjectWithoutRequired_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObjectWithoutRequired_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
one_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_SimpleProtoTestObjectWithoutRequired_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired(this);
result.one_ = one_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired.getDefaultInstance()) return this;
if (!other.getOne().isEmpty()) {
one_ = other.one_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object one_ = "";
/**
* string one = 1;
*/
public java.lang.String getOne() {
java.lang.Object ref = one_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
one_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string one = 1;
*/
public com.google.protobuf.ByteString
getOneBytes() {
java.lang.Object ref = one_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
one_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string one = 1;
*/
public Builder setOne(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
one_ = value;
onChanged();
return this;
}
/**
* string one = 1;
*/
public Builder clearOne() {
one_ = getDefaultInstance().getOne();
onChanged();
return this;
}
/**
* string one = 1;
*/
public Builder setOneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
one_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:SimpleProtoTestObjectWithoutRequired)
}
// @@protoc_insertion_point(class_scope:SimpleProtoTestObjectWithoutRequired)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public SimpleProtoTestObjectWithoutRequired parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SimpleProtoTestObjectWithoutRequired(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectWithoutRequired getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoTestObjectWithNestedProtoObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:ProtoTestObjectWithNestedProtoObject)
com.google.protobuf.MessageOrBuilder {
/**
* string one = 1;
*/
java.lang.String getOne();
/**
* string one = 1;
*/
com.google.protobuf.ByteString
getOneBytes();
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
boolean hasNestedObject();
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getNestedObject();
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder getNestedObjectOrBuilder();
}
/**
* Protobuf type {@code ProtoTestObjectWithNestedProtoObject}
*/
public static final class ProtoTestObjectWithNestedProtoObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ProtoTestObjectWithNestedProtoObject)
ProtoTestObjectWithNestedProtoObjectOrBuilder {
// Use ProtoTestObjectWithNestedProtoObject.newBuilder() to construct.
private ProtoTestObjectWithNestedProtoObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtoTestObjectWithNestedProtoObject() {
one_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoTestObjectWithNestedProtoObject(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
one_ = s;
break;
}
case 18: {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder subBuilder = null;
if (nestedObject_ != null) {
subBuilder = nestedObject_.toBuilder();
}
nestedObject_ = input.readMessage(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(nestedObject_);
nestedObject_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoTestObjectWithNestedProtoObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoTestObjectWithNestedProtoObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject.Builder.class);
}
public static final int ONE_FIELD_NUMBER = 1;
private volatile java.lang.Object one_;
/**
* string one = 1;
*/
public java.lang.String getOne() {
java.lang.Object ref = one_;
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();
one_ = s;
return s;
}
}
/**
* string one = 1;
*/
public com.google.protobuf.ByteString
getOneBytes() {
java.lang.Object ref = one_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
one_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NESTEDOBJECT_FIELD_NUMBER = 2;
private com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject nestedObject_;
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public boolean hasNestedObject() {
return nestedObject_ != null;
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getNestedObject() {
return nestedObject_ == null ? com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.getDefaultInstance() : nestedObject_;
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder getNestedObjectOrBuilder() {
return getNestedObject();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getOneBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, one_);
}
if (nestedObject_ != null) {
output.writeMessage(2, getNestedObject());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getOneBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, one_);
}
if (nestedObject_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNestedObject());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject) obj;
boolean result = true;
result = result && getOne()
.equals(other.getOne());
result = result && (hasNestedObject() == other.hasNestedObject());
if (hasNestedObject()) {
result = result && getNestedObject()
.equals(other.getNestedObject());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ONE_FIELD_NUMBER;
hash = (53 * hash) + getOne().hashCode();
if (hasNestedObject()) {
hash = (37 * hash) + NESTEDOBJECT_FIELD_NUMBER;
hash = (53 * hash) + getNestedObject().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 ProtoTestObjectWithNestedProtoObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ProtoTestObjectWithNestedProtoObject)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoTestObjectWithNestedProtoObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoTestObjectWithNestedProtoObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
one_ = "";
if (nestedObjectBuilder_ == null) {
nestedObject_ = null;
} else {
nestedObject_ = null;
nestedObjectBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoTestObjectWithNestedProtoObject_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject(this);
result.one_ = one_;
if (nestedObjectBuilder_ == null) {
result.nestedObject_ = nestedObject_;
} else {
result.nestedObject_ = nestedObjectBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject.getDefaultInstance()) return this;
if (!other.getOne().isEmpty()) {
one_ = other.one_;
onChanged();
}
if (other.hasNestedObject()) {
mergeNestedObject(other.getNestedObject());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object one_ = "";
/**
* string one = 1;
*/
public java.lang.String getOne() {
java.lang.Object ref = one_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
one_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string one = 1;
*/
public com.google.protobuf.ByteString
getOneBytes() {
java.lang.Object ref = one_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
one_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string one = 1;
*/
public Builder setOne(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
one_ = value;
onChanged();
return this;
}
/**
* string one = 1;
*/
public Builder clearOne() {
one_ = getDefaultInstance().getOne();
onChanged();
return this;
}
/**
* string one = 1;
*/
public Builder setOneBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
one_ = value;
onChanged();
return this;
}
private com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject nestedObject_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder> nestedObjectBuilder_;
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public boolean hasNestedObject() {
return nestedObjectBuilder_ != null || nestedObject_ != null;
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getNestedObject() {
if (nestedObjectBuilder_ == null) {
return nestedObject_ == null ? com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.getDefaultInstance() : nestedObject_;
} else {
return nestedObjectBuilder_.getMessage();
}
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public Builder setNestedObject(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject value) {
if (nestedObjectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nestedObject_ = value;
onChanged();
} else {
nestedObjectBuilder_.setMessage(value);
}
return this;
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public Builder setNestedObject(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder builderForValue) {
if (nestedObjectBuilder_ == null) {
nestedObject_ = builderForValue.build();
onChanged();
} else {
nestedObjectBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public Builder mergeNestedObject(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject value) {
if (nestedObjectBuilder_ == null) {
if (nestedObject_ != null) {
nestedObject_ =
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.newBuilder(nestedObject_).mergeFrom(value).buildPartial();
} else {
nestedObject_ = value;
}
onChanged();
} else {
nestedObjectBuilder_.mergeFrom(value);
}
return this;
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public Builder clearNestedObject() {
if (nestedObjectBuilder_ == null) {
nestedObject_ = null;
onChanged();
} else {
nestedObject_ = null;
nestedObjectBuilder_ = null;
}
return this;
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder getNestedObjectBuilder() {
onChanged();
return getNestedObjectFieldBuilder().getBuilder();
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder getNestedObjectOrBuilder() {
if (nestedObjectBuilder_ != null) {
return nestedObjectBuilder_.getMessageOrBuilder();
} else {
return nestedObject_ == null ?
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.getDefaultInstance() : nestedObject_;
}
}
/**
* .SimpleProtoTestObject nestedObject = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder>
getNestedObjectFieldBuilder() {
if (nestedObjectBuilder_ == null) {
nestedObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder>(
getNestedObject(),
getParentForChildren(),
isClean());
nestedObject_ = null;
}
return nestedObjectBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:ProtoTestObjectWithNestedProtoObject)
}
// @@protoc_insertion_point(class_scope:ProtoTestObjectWithNestedProtoObject)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProtoTestObjectWithNestedProtoObject parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoTestObjectWithNestedProtoObject(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoTestObjectWithNestedProtoObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtoObjectWithEnumFieldOrBuilder extends
// @@protoc_insertion_point(interface_extends:ProtoObjectWithEnumField)
com.google.protobuf.MessageOrBuilder {
/**
* .ProtoEnum enumField = 1;
*/
int getEnumFieldValue();
/**
* .ProtoEnum enumField = 1;
*/
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum getEnumField();
}
/**
* Protobuf type {@code ProtoObjectWithEnumField}
*/
public static final class ProtoObjectWithEnumField extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ProtoObjectWithEnumField)
ProtoObjectWithEnumFieldOrBuilder {
// Use ProtoObjectWithEnumField.newBuilder() to construct.
private ProtoObjectWithEnumField(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtoObjectWithEnumField() {
enumField_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtoObjectWithEnumField(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
enumField_ = rawValue;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoObjectWithEnumField_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoObjectWithEnumField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField.Builder.class);
}
public static final int ENUMFIELD_FIELD_NUMBER = 1;
private int enumField_;
/**
* .ProtoEnum enumField = 1;
*/
public int getEnumFieldValue() {
return enumField_;
}
/**
* .ProtoEnum enumField = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum getEnumField() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum result = com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum.valueOf(enumField_);
return result == null ? com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (enumField_ != com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum.VALUE0.getNumber()) {
output.writeEnum(1, enumField_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enumField_ != com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum.VALUE0.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, enumField_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField) obj;
boolean result = true;
result = result && enumField_ == other.enumField_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ENUMFIELD_FIELD_NUMBER;
hash = (53 * hash) + enumField_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 ProtoObjectWithEnumField}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ProtoObjectWithEnumField)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumFieldOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoObjectWithEnumField_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoObjectWithEnumField_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
enumField_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtoObjectWithEnumField_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField(this);
result.enumField_ = enumField_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField.getDefaultInstance()) return this;
if (other.enumField_ != 0) {
setEnumFieldValue(other.getEnumFieldValue());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int enumField_ = 0;
/**
* .ProtoEnum enumField = 1;
*/
public int getEnumFieldValue() {
return enumField_;
}
/**
* .ProtoEnum enumField = 1;
*/
public Builder setEnumFieldValue(int value) {
enumField_ = value;
onChanged();
return this;
}
/**
* .ProtoEnum enumField = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum getEnumField() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum result = com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum.valueOf(enumField_);
return result == null ? com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum.UNRECOGNIZED : result;
}
/**
* .ProtoEnum enumField = 1;
*/
public Builder setEnumField(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum value) {
if (value == null) {
throw new NullPointerException();
}
enumField_ = value.getNumber();
onChanged();
return this;
}
/**
* .ProtoEnum enumField = 1;
*/
public Builder clearEnumField() {
enumField_ = 0;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:ProtoObjectWithEnumField)
}
// @@protoc_insertion_point(class_scope:ProtoObjectWithEnumField)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProtoObjectWithEnumField parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoObjectWithEnumField(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoObjectWithEnumField getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtobufWithSimpleCollectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:ProtobufWithSimpleCollection)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .SimpleProtoTestObject object = 1;
*/
java.util.List
getObjectList();
/**
* repeated .SimpleProtoTestObject object = 1;
*/
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getObject(int index);
/**
* repeated .SimpleProtoTestObject object = 1;
*/
int getObjectCount();
/**
* repeated .SimpleProtoTestObject object = 1;
*/
java.util.List extends com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder>
getObjectOrBuilderList();
/**
* repeated .SimpleProtoTestObject object = 1;
*/
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder getObjectOrBuilder(
int index);
}
/**
* Protobuf type {@code ProtobufWithSimpleCollection}
*/
public static final class ProtobufWithSimpleCollection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ProtobufWithSimpleCollection)
ProtobufWithSimpleCollectionOrBuilder {
// Use ProtobufWithSimpleCollection.newBuilder() to construct.
private ProtobufWithSimpleCollection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtobufWithSimpleCollection() {
object_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtobufWithSimpleCollection(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
object_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
object_.add(
input.readMessage(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.parser(), extensionRegistry));
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) == 0x00000001)) {
object_ = java.util.Collections.unmodifiableList(object_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollection_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.Builder.class);
}
public static final int OBJECT_FIELD_NUMBER = 1;
private java.util.List object_;
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public java.util.List getObjectList() {
return object_;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public java.util.List extends com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder>
getObjectOrBuilderList() {
return object_;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public int getObjectCount() {
return object_.size();
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getObject(int index) {
return object_.get(index);
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder getObjectOrBuilder(
int index) {
return object_.get(index);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < object_.size(); i++) {
output.writeMessage(1, object_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < object_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, object_.get(i));
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection) obj;
boolean result = true;
result = result && getObjectList()
.equals(other.getObjectList());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getObjectCount() > 0) {
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getObjectList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 ProtobufWithSimpleCollection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ProtobufWithSimpleCollection)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollection_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getObjectFieldBuilder();
}
}
public Builder clear() {
super.clear();
if (objectBuilder_ == null) {
object_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
objectBuilder_.clear();
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollection_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection(this);
int from_bitField0_ = bitField0_;
if (objectBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
object_ = java.util.Collections.unmodifiableList(object_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.object_ = object_;
} else {
result.object_ = objectBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.getDefaultInstance()) return this;
if (objectBuilder_ == null) {
if (!other.object_.isEmpty()) {
if (object_.isEmpty()) {
object_ = other.object_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureObjectIsMutable();
object_.addAll(other.object_);
}
onChanged();
}
} else {
if (!other.object_.isEmpty()) {
if (objectBuilder_.isEmpty()) {
objectBuilder_.dispose();
objectBuilder_ = null;
object_ = other.object_;
bitField0_ = (bitField0_ & ~0x00000001);
objectBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getObjectFieldBuilder() : null;
} else {
objectBuilder_.addAllMessages(other.object_);
}
}
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List object_ =
java.util.Collections.emptyList();
private void ensureObjectIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
object_ = new java.util.ArrayList(object_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder> objectBuilder_;
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public java.util.List getObjectList() {
if (objectBuilder_ == null) {
return java.util.Collections.unmodifiableList(object_);
} else {
return objectBuilder_.getMessageList();
}
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public int getObjectCount() {
if (objectBuilder_ == null) {
return object_.size();
} else {
return objectBuilder_.getCount();
}
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject getObject(int index) {
if (objectBuilder_ == null) {
return object_.get(index);
} else {
return objectBuilder_.getMessage(index);
}
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder setObject(
int index, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject value) {
if (objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureObjectIsMutable();
object_.set(index, value);
onChanged();
} else {
objectBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder setObject(
int index, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder builderForValue) {
if (objectBuilder_ == null) {
ensureObjectIsMutable();
object_.set(index, builderForValue.build());
onChanged();
} else {
objectBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder addObject(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject value) {
if (objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureObjectIsMutable();
object_.add(value);
onChanged();
} else {
objectBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder addObject(
int index, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject value) {
if (objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureObjectIsMutable();
object_.add(index, value);
onChanged();
} else {
objectBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder addObject(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder builderForValue) {
if (objectBuilder_ == null) {
ensureObjectIsMutable();
object_.add(builderForValue.build());
onChanged();
} else {
objectBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder addObject(
int index, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder builderForValue) {
if (objectBuilder_ == null) {
ensureObjectIsMutable();
object_.add(index, builderForValue.build());
onChanged();
} else {
objectBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder addAllObject(
java.lang.Iterable extends com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject> values) {
if (objectBuilder_ == null) {
ensureObjectIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, object_);
onChanged();
} else {
objectBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder clearObject() {
if (objectBuilder_ == null) {
object_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
objectBuilder_.clear();
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public Builder removeObject(int index) {
if (objectBuilder_ == null) {
ensureObjectIsMutable();
object_.remove(index);
onChanged();
} else {
objectBuilder_.remove(index);
}
return this;
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder getObjectBuilder(
int index) {
return getObjectFieldBuilder().getBuilder(index);
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder getObjectOrBuilder(
int index) {
if (objectBuilder_ == null) {
return object_.get(index); } else {
return objectBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public java.util.List extends com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder>
getObjectOrBuilderList() {
if (objectBuilder_ != null) {
return objectBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(object_);
}
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder addObjectBuilder() {
return getObjectFieldBuilder().addBuilder(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.getDefaultInstance());
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder addObjectBuilder(
int index) {
return getObjectFieldBuilder().addBuilder(
index, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.getDefaultInstance());
}
/**
* repeated .SimpleProtoTestObject object = 1;
*/
public java.util.List
getObjectBuilderList() {
return getObjectFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder>
getObjectFieldBuilder() {
if (objectBuilder_ == null) {
objectBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObject.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.SimpleProtoTestObjectOrBuilder>(
object_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
object_ = null;
}
return objectBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:ProtobufWithSimpleCollection)
}
// @@protoc_insertion_point(class_scope:ProtobufWithSimpleCollection)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProtobufWithSimpleCollection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtobufWithSimpleCollection(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtobufWithSimpleCollectionContainerOrBuilder extends
// @@protoc_insertion_point(interface_extends:ProtobufWithSimpleCollectionContainer)
com.google.protobuf.MessageOrBuilder {
/**
* .ProtobufWithSimpleCollection object = 1;
*/
boolean hasObject();
/**
* .ProtobufWithSimpleCollection object = 1;
*/
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection getObject();
/**
* .ProtobufWithSimpleCollection object = 1;
*/
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionOrBuilder getObjectOrBuilder();
}
/**
* Protobuf type {@code ProtobufWithSimpleCollectionContainer}
*/
public static final class ProtobufWithSimpleCollectionContainer extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ProtobufWithSimpleCollectionContainer)
ProtobufWithSimpleCollectionContainerOrBuilder {
// Use ProtobufWithSimpleCollectionContainer.newBuilder() to construct.
private ProtobufWithSimpleCollectionContainer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtobufWithSimpleCollectionContainer() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtobufWithSimpleCollectionContainer(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.Builder subBuilder = null;
if (object_ != null) {
subBuilder = object_.toBuilder();
}
object_ = input.readMessage(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(object_);
object_ = subBuilder.buildPartial();
}
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollectionContainer_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollectionContainer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer.Builder.class);
}
public static final int OBJECT_FIELD_NUMBER = 1;
private com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection object_;
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public boolean hasObject() {
return object_ != null;
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection getObject() {
return object_ == null ? com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.getDefaultInstance() : object_;
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionOrBuilder getObjectOrBuilder() {
return getObject();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (object_ != null) {
output.writeMessage(1, getObject());
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (object_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getObject());
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer) obj;
boolean result = true;
result = result && (hasObject() == other.hasObject());
if (hasObject()) {
result = result && getObject()
.equals(other.getObject());
}
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasObject()) {
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + getObject().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 ProtobufWithSimpleCollectionContainer}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ProtobufWithSimpleCollectionContainer)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollectionContainer_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollectionContainer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
if (objectBuilder_ == null) {
object_ = null;
} else {
object_ = null;
objectBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithSimpleCollectionContainer_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer(this);
if (objectBuilder_ == null) {
result.object_ = object_;
} else {
result.object_ = objectBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer.getDefaultInstance()) return this;
if (other.hasObject()) {
mergeObject(other.getObject());
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection object_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionOrBuilder> objectBuilder_;
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public boolean hasObject() {
return objectBuilder_ != null || object_ != null;
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection getObject() {
if (objectBuilder_ == null) {
return object_ == null ? com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.getDefaultInstance() : object_;
} else {
return objectBuilder_.getMessage();
}
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public Builder setObject(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection value) {
if (objectBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
object_ = value;
onChanged();
} else {
objectBuilder_.setMessage(value);
}
return this;
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public Builder setObject(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.Builder builderForValue) {
if (objectBuilder_ == null) {
object_ = builderForValue.build();
onChanged();
} else {
objectBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public Builder mergeObject(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection value) {
if (objectBuilder_ == null) {
if (object_ != null) {
object_ =
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.newBuilder(object_).mergeFrom(value).buildPartial();
} else {
object_ = value;
}
onChanged();
} else {
objectBuilder_.mergeFrom(value);
}
return this;
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public Builder clearObject() {
if (objectBuilder_ == null) {
object_ = null;
onChanged();
} else {
object_ = null;
objectBuilder_ = null;
}
return this;
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.Builder getObjectBuilder() {
onChanged();
return getObjectFieldBuilder().getBuilder();
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionOrBuilder getObjectOrBuilder() {
if (objectBuilder_ != null) {
return objectBuilder_.getMessageOrBuilder();
} else {
return object_ == null ?
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.getDefaultInstance() : object_;
}
}
/**
* .ProtobufWithSimpleCollection object = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionOrBuilder>
getObjectFieldBuilder() {
if (objectBuilder_ == null) {
objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollection.Builder, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionOrBuilder>(
getObject(),
getParentForChildren(),
isClean());
object_ = null;
}
return objectBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:ProtobufWithSimpleCollectionContainer)
}
// @@protoc_insertion_point(class_scope:ProtobufWithSimpleCollectionContainer)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProtobufWithSimpleCollectionContainer parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtobufWithSimpleCollectionContainer(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithSimpleCollectionContainer getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtobufWithEnumCollectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:ProtobufWithEnumCollection)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .ProtoEnum object = 1;
*/
java.util.List getObjectList();
/**
* repeated .ProtoEnum object = 1;
*/
int getObjectCount();
/**
* repeated .ProtoEnum object = 1;
*/
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum getObject(int index);
/**
* repeated .ProtoEnum object = 1;
*/
java.util.List
getObjectValueList();
/**
* repeated .ProtoEnum object = 1;
*/
int getObjectValue(int index);
}
/**
* Protobuf type {@code ProtobufWithEnumCollection}
*/
public static final class ProtobufWithEnumCollection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ProtobufWithEnumCollection)
ProtobufWithEnumCollectionOrBuilder {
// Use ProtobufWithEnumCollection.newBuilder() to construct.
private ProtobufWithEnumCollection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtobufWithEnumCollection() {
object_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtobufWithEnumCollection(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
object_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
object_.add(rawValue);
break;
}
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
object_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
object_.add(rawValue);
}
input.popLimit(oldLimit);
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) == 0x00000001)) {
object_ = java.util.Collections.unmodifiableList(object_);
}
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithEnumCollection_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithEnumCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection.Builder.class);
}
public static final int OBJECT_FIELD_NUMBER = 1;
private java.util.List object_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum> object_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum>() {
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum convert(java.lang.Integer from) {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum result = com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum.valueOf(from);
return result == null ? com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum.UNRECOGNIZED : result;
}
};
/**
* repeated .ProtoEnum object = 1;
*/
public java.util.List getObjectList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum>(object_, object_converter_);
}
/**
* repeated .ProtoEnum object = 1;
*/
public int getObjectCount() {
return object_.size();
}
/**
* repeated .ProtoEnum object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum getObject(int index) {
return object_converter_.convert(object_.get(index));
}
/**
* repeated .ProtoEnum object = 1;
*/
public java.util.List
getObjectValueList() {
return object_;
}
/**
* repeated .ProtoEnum object = 1;
*/
public int getObjectValue(int index) {
return object_.get(index);
}
private int objectMemoizedSerializedSize;
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getObjectList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(objectMemoizedSerializedSize);
}
for (int i = 0; i < object_.size(); i++) {
output.writeEnumNoTag(object_.get(i));
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < object_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(object_.get(i));
}
size += dataSize;
if (!getObjectList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}objectMemoizedSerializedSize = dataSize;
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection) obj;
boolean result = true;
result = result && object_.equals(other.object_);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getObjectCount() > 0) {
hash = (37 * hash) + OBJECT_FIELD_NUMBER;
hash = (53 * hash) + object_.hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 ProtobufWithEnumCollection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ProtobufWithEnumCollection)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithEnumCollection_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithEnumCollection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
object_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufWithEnumCollection_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
object_ = java.util.Collections.unmodifiableList(object_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.object_ = object_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection.getDefaultInstance()) return this;
if (!other.object_.isEmpty()) {
if (object_.isEmpty()) {
object_ = other.object_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureObjectIsMutable();
object_.addAll(other.object_);
}
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List object_ =
java.util.Collections.emptyList();
private void ensureObjectIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
object_ = new java.util.ArrayList(object_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .ProtoEnum object = 1;
*/
public java.util.List getObjectList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum>(object_, object_converter_);
}
/**
* repeated .ProtoEnum object = 1;
*/
public int getObjectCount() {
return object_.size();
}
/**
* repeated .ProtoEnum object = 1;
*/
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum getObject(int index) {
return object_converter_.convert(object_.get(index));
}
/**
* repeated .ProtoEnum object = 1;
*/
public Builder setObject(
int index, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureObjectIsMutable();
object_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .ProtoEnum object = 1;
*/
public Builder addObject(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum value) {
if (value == null) {
throw new NullPointerException();
}
ensureObjectIsMutable();
object_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .ProtoEnum object = 1;
*/
public Builder addAllObject(
java.lang.Iterable extends com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum> values) {
ensureObjectIsMutable();
for (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtoEnum value : values) {
object_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .ProtoEnum object = 1;
*/
public Builder clearObject() {
object_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated .ProtoEnum object = 1;
*/
public java.util.List
getObjectValueList() {
return java.util.Collections.unmodifiableList(object_);
}
/**
* repeated .ProtoEnum object = 1;
*/
public int getObjectValue(int index) {
return object_.get(index);
}
/**
* repeated .ProtoEnum object = 1;
*/
public Builder setObjectValue(
int index, int value) {
ensureObjectIsMutable();
object_.set(index, value);
onChanged();
return this;
}
/**
* repeated .ProtoEnum object = 1;
*/
public Builder addObjectValue(int value) {
ensureObjectIsMutable();
object_.add(value);
onChanged();
return this;
}
/**
* repeated .ProtoEnum object = 1;
*/
public Builder addAllObjectValue(
java.lang.Iterable values) {
ensureObjectIsMutable();
for (int value : values) {
object_.add(value);
}
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:ProtobufWithEnumCollection)
}
// @@protoc_insertion_point(class_scope:ProtobufWithEnumCollection)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProtobufWithEnumCollection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtobufWithEnumCollection(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufWithEnumCollection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtobufMapExampleOrBuilder extends
// @@protoc_insertion_point(interface_extends:ProtobufMapExample)
com.google.protobuf.MessageOrBuilder {
/**
* map<string, string> value = 1;
*/
int getValueCount();
/**
* map<string, string> value = 1;
*/
boolean containsValue(
java.lang.String key);
/**
* Use {@link #getValueMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getValue();
/**
* map<string, string> value = 1;
*/
java.util.Map
getValueMap();
/**
* map<string, string> value = 1;
*/
java.lang.String getValueOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
* map<string, string> value = 1;
*/
java.lang.String getValueOrThrow(
java.lang.String key);
}
/**
* Protobuf type {@code ProtobufMapExample}
*/
public static final class ProtobufMapExample extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ProtobufMapExample)
ProtobufMapExampleOrBuilder {
// Use ProtobufMapExample.newBuilder() to construct.
private ProtobufMapExample(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtobufMapExample() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtobufMapExample(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
value_ = com.google.protobuf.MapField.newMapField(
ValueDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000001;
}
com.google.protobuf.MapEntry
value__ = input.readMessage(
ValueDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
value_.getMutableMap().put(
value__.getKey(), value__.getValue());
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufMapExample_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetValue();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufMapExample_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private static final class ValueDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufMapExample_ValueEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> value_;
private com.google.protobuf.MapField
internalGetValue() {
if (value_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ValueDefaultEntryHolder.defaultEntry);
}
return value_;
}
public int getValueCount() {
return internalGetValue().getMap().size();
}
/**
* map<string, string> value = 1;
*/
public boolean containsValue(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetValue().getMap().containsKey(key);
}
/**
* Use {@link #getValueMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getValue() {
return getValueMap();
}
/**
* map<string, string> value = 1;
*/
public java.util.Map getValueMap() {
return internalGetValue().getMap();
}
/**
* map<string, string> value = 1;
*/
public java.lang.String getValueOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValue().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> value = 1;
*/
public java.lang.String getValueOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValue().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetValue(),
ValueDefaultEntryHolder.defaultEntry,
1);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetValue().getMap().entrySet()) {
com.google.protobuf.MapEntry
value__ = ValueDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, value__);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample) obj;
boolean result = true;
result = result && internalGetValue().equals(
other.internalGetValue());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (!internalGetValue().getMap().isEmpty()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + internalGetValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 ProtobufMapExample}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ProtobufMapExample)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExampleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufMapExample_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 1:
return internalGetValue();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 1:
return internalGetMutableValue();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufMapExample_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
internalGetMutableValue().clear();
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufMapExample_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample(this);
int from_bitField0_ = bitField0_;
result.value_ = internalGetValue();
result.value_.makeImmutable();
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample.getDefaultInstance()) return this;
internalGetMutableValue().mergeFrom(
other.internalGetValue());
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample) 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> value_;
private com.google.protobuf.MapField
internalGetValue() {
if (value_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ValueDefaultEntryHolder.defaultEntry);
}
return value_;
}
private com.google.protobuf.MapField
internalGetMutableValue() {
onChanged();;
if (value_ == null) {
value_ = com.google.protobuf.MapField.newMapField(
ValueDefaultEntryHolder.defaultEntry);
}
if (!value_.isMutable()) {
value_ = value_.copy();
}
return value_;
}
public int getValueCount() {
return internalGetValue().getMap().size();
}
/**
* map<string, string> value = 1;
*/
public boolean containsValue(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetValue().getMap().containsKey(key);
}
/**
* Use {@link #getValueMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getValue() {
return getValueMap();
}
/**
* map<string, string> value = 1;
*/
public java.util.Map getValueMap() {
return internalGetValue().getMap();
}
/**
* map<string, string> value = 1;
*/
public java.lang.String getValueOrDefault(
java.lang.String key,
java.lang.String defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValue().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> value = 1;
*/
public java.lang.String getValueOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetValue().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearValue() {
internalGetMutableValue().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> value = 1;
*/
public Builder removeValue(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableValue().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableValue() {
return internalGetMutableValue().getMutableMap();
}
/**
* map<string, string> value = 1;
*/
public Builder putValue(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableValue().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, string> value = 1;
*/
public Builder putAllValue(
java.util.Map values) {
internalGetMutableValue().getMutableMap()
.putAll(values);
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:ProtobufMapExample)
}
// @@protoc_insertion_point(class_scope:ProtobufMapExample)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProtobufMapExample parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtobufMapExample(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufMapExample getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProtobufFieldNamingOrBuilder extends
// @@protoc_insertion_point(interface_extends:ProtobufFieldNaming)
com.google.protobuf.MessageOrBuilder {
/**
* string snake_case_field = 1;
*/
java.lang.String getSnakeCaseField();
/**
* string snake_case_field = 1;
*/
com.google.protobuf.ByteString
getSnakeCaseFieldBytes();
}
/**
* Protobuf type {@code ProtobufFieldNaming}
*/
public static final class ProtobufFieldNaming extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ProtobufFieldNaming)
ProtobufFieldNamingOrBuilder {
// Use ProtobufFieldNaming.newBuilder() to construct.
private ProtobufFieldNaming(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtobufFieldNaming() {
snakeCaseField_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ProtobufFieldNaming(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
int mutable_bitField0_ = 0;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
snakeCaseField_ = s;
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 {
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufFieldNaming_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufFieldNaming_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming.Builder.class);
}
public static final int SNAKE_CASE_FIELD_FIELD_NUMBER = 1;
private volatile java.lang.Object snakeCaseField_;
/**
* string snake_case_field = 1;
*/
public java.lang.String getSnakeCaseField() {
java.lang.Object ref = snakeCaseField_;
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();
snakeCaseField_ = s;
return s;
}
}
/**
* string snake_case_field = 1;
*/
public com.google.protobuf.ByteString
getSnakeCaseFieldBytes() {
java.lang.Object ref = snakeCaseField_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snakeCaseField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getSnakeCaseFieldBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snakeCaseField_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getSnakeCaseFieldBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snakeCaseField_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming other = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming) obj;
boolean result = true;
result = result && getSnakeCaseField()
.equals(other.getSnakeCaseField());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SNAKE_CASE_FIELD_FIELD_NUMBER;
hash = (53 * hash) + getSnakeCaseField().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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 ProtobufFieldNaming}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ProtobufFieldNaming)
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNamingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufFieldNaming_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufFieldNaming_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming.class, com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
snakeCaseField_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.internal_static_ProtobufFieldNaming_descriptor;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming build() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming buildPartial() {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming result = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming(this);
result.snakeCaseField_ = snakeCaseField_;
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming) {
return mergeFrom((com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming other) {
if (other == com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming.getDefaultInstance()) return this;
if (!other.getSnakeCaseField().isEmpty()) {
snakeCaseField_ = other.snakeCaseField_;
onChanged();
}
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object snakeCaseField_ = "";
/**
* string snake_case_field = 1;
*/
public java.lang.String getSnakeCaseField() {
java.lang.Object ref = snakeCaseField_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
snakeCaseField_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string snake_case_field = 1;
*/
public com.google.protobuf.ByteString
getSnakeCaseFieldBytes() {
java.lang.Object ref = snakeCaseField_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
snakeCaseField_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string snake_case_field = 1;
*/
public Builder setSnakeCaseField(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
snakeCaseField_ = value;
onChanged();
return this;
}
/**
* string snake_case_field = 1;
*/
public Builder clearSnakeCaseField() {
snakeCaseField_ = getDefaultInstance().getSnakeCaseField();
onChanged();
return this;
}
/**
* string snake_case_field = 1;
*/
public Builder setSnakeCaseFieldBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
snakeCaseField_ = value;
onChanged();
return this;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return this;
}
// @@protoc_insertion_point(builder_scope:ProtobufFieldNaming)
}
// @@protoc_insertion_point(class_scope:ProtobufFieldNaming)
private static final com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming();
}
public static com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ProtobufFieldNaming parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtobufFieldNaming(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public com.github.dozermapper.protobuf.vo.proto.ProtoTestObjects.ProtobufFieldNaming getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_SimpleProtoTestObject_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_SimpleProtoTestObject_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_SimpleProtoTestObjectWithoutRequired_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_SimpleProtoTestObjectWithoutRequired_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ProtoTestObjectWithNestedProtoObject_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ProtoTestObjectWithNestedProtoObject_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ProtoObjectWithEnumField_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ProtoObjectWithEnumField_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ProtobufWithSimpleCollection_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ProtobufWithSimpleCollection_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ProtobufWithSimpleCollectionContainer_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ProtobufWithSimpleCollectionContainer_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ProtobufWithEnumCollection_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ProtobufWithEnumCollection_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ProtobufMapExample_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ProtobufMapExample_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ProtobufMapExample_ValueEntry_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ProtobufMapExample_ValueEntry_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ProtobufFieldNaming_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ProtobufFieldNaming_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\026ProtoTestObjects.proto\"$\n\025SimpleProtoT" +
"estObject\022\013\n\003one\030\001 \001(\t\"3\n$SimpleProtoTes" +
"tObjectWithoutRequired\022\013\n\003one\030\001 \001(\t\"a\n$P" +
"rotoTestObjectWithNestedProtoObject\022\013\n\003o" +
"ne\030\001 \001(\t\022,\n\014nestedObject\030\002 \001(\0132\026.SimpleP" +
"rotoTestObject\"9\n\030ProtoObjectWithEnumFie" +
"ld\022\035\n\tenumField\030\001 \001(\0162\n.ProtoEnum\"F\n\034Pro" +
"tobufWithSimpleCollection\022&\n\006object\030\001 \003(" +
"\0132\026.SimpleProtoTestObject\"V\n%ProtobufWit" +
"hSimpleCollectionContainer\022-\n\006object\030\001 \001",
"(\0132\035.ProtobufWithSimpleCollection\"8\n\032Pro" +
"tobufWithEnumCollection\022\032\n\006object\030\001 \003(\0162" +
"\n.ProtoEnum\"q\n\022ProtobufMapExample\022-\n\005val" +
"ue\030\001 \003(\0132\036.ProtobufMapExample.ValueEntry" +
"\032,\n\nValueEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" +
"(\t:\0028\001\"/\n\023ProtobufFieldNaming\022\030\n\020snake_c" +
"ase_field\030\001 \001(\t*/\n\tProtoEnum\022\n\n\006VALUE0\020\000" +
"\022\n\n\006VALUE1\020\001\022\n\n\006VALUE2\020\002B<\n(com.github.d" +
"ozermapper.protobuf.vo.protoB\020ProtoTestO" +
"bjectsb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_SimpleProtoTestObject_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_SimpleProtoTestObject_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_SimpleProtoTestObject_descriptor,
new java.lang.String[] { "One", });
internal_static_SimpleProtoTestObjectWithoutRequired_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_SimpleProtoTestObjectWithoutRequired_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_SimpleProtoTestObjectWithoutRequired_descriptor,
new java.lang.String[] { "One", });
internal_static_ProtoTestObjectWithNestedProtoObject_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_ProtoTestObjectWithNestedProtoObject_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ProtoTestObjectWithNestedProtoObject_descriptor,
new java.lang.String[] { "One", "NestedObject", });
internal_static_ProtoObjectWithEnumField_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_ProtoObjectWithEnumField_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ProtoObjectWithEnumField_descriptor,
new java.lang.String[] { "EnumField", });
internal_static_ProtobufWithSimpleCollection_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_ProtobufWithSimpleCollection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ProtobufWithSimpleCollection_descriptor,
new java.lang.String[] { "Object", });
internal_static_ProtobufWithSimpleCollectionContainer_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_ProtobufWithSimpleCollectionContainer_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ProtobufWithSimpleCollectionContainer_descriptor,
new java.lang.String[] { "Object", });
internal_static_ProtobufWithEnumCollection_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_ProtobufWithEnumCollection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ProtobufWithEnumCollection_descriptor,
new java.lang.String[] { "Object", });
internal_static_ProtobufMapExample_descriptor =
getDescriptor().getMessageTypes().get(7);
internal_static_ProtobufMapExample_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ProtobufMapExample_descriptor,
new java.lang.String[] { "Value", });
internal_static_ProtobufMapExample_ValueEntry_descriptor =
internal_static_ProtobufMapExample_descriptor.getNestedTypes().get(0);
internal_static_ProtobufMapExample_ValueEntry_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ProtobufMapExample_ValueEntry_descriptor,
new java.lang.String[] { "Key", "Value", });
internal_static_ProtobufFieldNaming_descriptor =
getDescriptor().getMessageTypes().get(8);
internal_static_ProtobufFieldNaming_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ProtobufFieldNaming_descriptor,
new java.lang.String[] { "SnakeCaseField", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy