
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ProtoTestObjectsMultipleFiles.proto
package com.github.dozermapper.protobuf.vo.protomultiple;
/**
* Protobuf type {@code ContainerObject}
*/
public final class ContainerObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ContainerObject)
ContainerObjectOrBuilder {
// Use ContainerObject.newBuilder() to construct.
private ContainerObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainerObject() {
enum1_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ContainerObject(
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.protomultiple.ContainerObject.ContainedObject.Builder subBuilder = null;
if (obj1_ != null) {
subBuilder = obj1_.toBuilder();
}
obj1_ = input.readMessage(com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(obj1_);
obj1_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
enum1_ = 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.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.class, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.Builder.class);
}
/**
* Protobuf enum {@code ContainerObject.ContainedEnum}
*/
public enum ContainedEnum
implements com.google.protobuf.ProtocolMessageEnum {
/**
* VALUE1 = 0;
*/
VALUE1(0),
/**
* VALUE2 = 1;
*/
VALUE2(1),
UNRECOGNIZED(-1),
;
/**
* VALUE1 = 0;
*/
public static final int VALUE1_VALUE = 0;
/**
* VALUE2 = 1;
*/
public static final int VALUE2_VALUE = 1;
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 ContainedEnum valueOf(int value) {
return forNumber(value);
}
public static ContainedEnum forNumber(int value) {
switch (value) {
case 0: return VALUE1;
case 1: return VALUE2;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ContainedEnum> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ContainedEnum findValueByNumber(int number) {
return ContainedEnum.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.protomultiple.ContainerObject.getDescriptor().getEnumTypes().get(0);
}
private static final ContainedEnum[] VALUES = values();
public static ContainedEnum 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 ContainedEnum(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:ContainerObject.ContainedEnum)
}
public interface ContainedObjectOrBuilder extends
// @@protoc_insertion_point(interface_extends:ContainerObject.ContainedObject)
com.google.protobuf.MessageOrBuilder {
/**
* string c1 = 1;
*/
java.lang.String getC1();
/**
* string c1 = 1;
*/
com.google.protobuf.ByteString
getC1Bytes();
}
/**
* Protobuf type {@code ContainerObject.ContainedObject}
*/
public static final class ContainedObject extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ContainerObject.ContainedObject)
ContainedObjectOrBuilder {
// Use ContainedObject.newBuilder() to construct.
private ContainedObject(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContainedObject() {
c1_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private ContainedObject(
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();
c1_ = 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.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_ContainedObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_ContainedObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.class, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.Builder.class);
}
public static final int C1_FIELD_NUMBER = 1;
private volatile java.lang.Object c1_;
/**
* string c1 = 1;
*/
public java.lang.String getC1() {
java.lang.Object ref = c1_;
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();
c1_ = s;
return s;
}
}
/**
* string c1 = 1;
*/
public com.google.protobuf.ByteString
getC1Bytes() {
java.lang.Object ref = c1_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
c1_ = 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 (!getC1Bytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, c1_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getC1Bytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, c1_);
}
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.protomultiple.ContainerObject.ContainedObject)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject other = (com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject) obj;
boolean result = true;
result = result && getC1()
.equals(other.getC1());
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + C1_FIELD_NUMBER;
hash = (53 * hash) + getC1().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject 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.protomultiple.ContainerObject.ContainedObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject 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.protomultiple.ContainerObject.ContainedObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject 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.protomultiple.ContainerObject.ContainedObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject 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.protomultiple.ContainerObject.ContainedObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject 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.protomultiple.ContainerObject.ContainedObject 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.protomultiple.ContainerObject.ContainedObject 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.protomultiple.ContainerObject.ContainedObject 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 ContainerObject.ContainedObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ContainerObject.ContainedObject)
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_ContainedObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_ContainedObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.class, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.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();
c1_ = "";
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_ContainedObject_descriptor;
}
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject build() {
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject buildPartial() {
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject result = new com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject(this);
result.c1_ = c1_;
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.protomultiple.ContainerObject.ContainedObject) {
return mergeFrom((com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject other) {
if (other == com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.getDefaultInstance()) return this;
if (!other.getC1().isEmpty()) {
c1_ = other.c1_;
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.protomultiple.ContainerObject.ContainedObject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object c1_ = "";
/**
* string c1 = 1;
*/
public java.lang.String getC1() {
java.lang.Object ref = c1_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
c1_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string c1 = 1;
*/
public com.google.protobuf.ByteString
getC1Bytes() {
java.lang.Object ref = c1_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
c1_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string c1 = 1;
*/
public Builder setC1(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
c1_ = value;
onChanged();
return this;
}
/**
* string c1 = 1;
*/
public Builder clearC1() {
c1_ = getDefaultInstance().getC1();
onChanged();
return this;
}
/**
* string c1 = 1;
*/
public Builder setC1Bytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
c1_ = 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:ContainerObject.ContainedObject)
}
// @@protoc_insertion_point(class_scope:ContainerObject.ContainedObject)
private static final com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject();
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainedObject parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainedObject(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.protomultiple.ContainerObject.ContainedObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int OBJ1_FIELD_NUMBER = 1;
private com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject obj1_;
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public boolean hasObj1() {
return obj1_ != null;
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject getObj1() {
return obj1_ == null ? com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.getDefaultInstance() : obj1_;
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObjectOrBuilder getObj1OrBuilder() {
return getObj1();
}
public static final int ENUM1_FIELD_NUMBER = 2;
private int enum1_;
/**
* .ContainerObject.ContainedEnum enum1 = 2;
*/
public int getEnum1Value() {
return enum1_;
}
/**
* .ContainerObject.ContainedEnum enum1 = 2;
*/
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum getEnum1() {
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum result = com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum.valueOf(enum1_);
return result == null ? com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum.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 (obj1_ != null) {
output.writeMessage(1, getObj1());
}
if (enum1_ != com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum.VALUE1.getNumber()) {
output.writeEnum(2, enum1_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (obj1_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getObj1());
}
if (enum1_ != com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum.VALUE1.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, enum1_);
}
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.protomultiple.ContainerObject)) {
return super.equals(obj);
}
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject other = (com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject) obj;
boolean result = true;
result = result && (hasObj1() == other.hasObj1());
if (hasObj1()) {
result = result && getObj1()
.equals(other.getObj1());
}
result = result && enum1_ == other.enum1_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasObj1()) {
hash = (37 * hash) + OBJ1_FIELD_NUMBER;
hash = (53 * hash) + getObj1().hashCode();
}
hash = (37 * hash) + ENUM1_FIELD_NUMBER;
hash = (53 * hash) + enum1_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject 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.protomultiple.ContainerObject parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject 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.protomultiple.ContainerObject parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject 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.protomultiple.ContainerObject parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject 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.protomultiple.ContainerObject parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject 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.protomultiple.ContainerObject 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.protomultiple.ContainerObject 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.protomultiple.ContainerObject 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 ContainerObject}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:ContainerObject)
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObjectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.dozermapper.protobuf.vo.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.dozermapper.protobuf.vo.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.class, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.Builder.class);
}
// Construct using com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.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 (obj1Builder_ == null) {
obj1_ = null;
} else {
obj1_ = null;
obj1Builder_ = null;
}
enum1_ = 0;
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.dozermapper.protobuf.vo.protomultiple.ProtoTestObjectsMultipleFiles.internal_static_ContainerObject_descriptor;
}
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject getDefaultInstanceForType() {
return com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.getDefaultInstance();
}
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject build() {
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject buildPartial() {
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject result = new com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject(this);
if (obj1Builder_ == null) {
result.obj1_ = obj1_;
} else {
result.obj1_ = obj1Builder_.build();
}
result.enum1_ = enum1_;
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.protomultiple.ContainerObject) {
return mergeFrom((com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject other) {
if (other == com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.getDefaultInstance()) return this;
if (other.hasObj1()) {
mergeObj1(other.getObj1());
}
if (other.enum1_ != 0) {
setEnum1Value(other.getEnum1Value());
}
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.protomultiple.ContainerObject parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject obj1_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.Builder, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObjectOrBuilder> obj1Builder_;
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public boolean hasObj1() {
return obj1Builder_ != null || obj1_ != null;
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject getObj1() {
if (obj1Builder_ == null) {
return obj1_ == null ? com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.getDefaultInstance() : obj1_;
} else {
return obj1Builder_.getMessage();
}
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public Builder setObj1(com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject value) {
if (obj1Builder_ == null) {
if (value == null) {
throw new NullPointerException();
}
obj1_ = value;
onChanged();
} else {
obj1Builder_.setMessage(value);
}
return this;
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public Builder setObj1(
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.Builder builderForValue) {
if (obj1Builder_ == null) {
obj1_ = builderForValue.build();
onChanged();
} else {
obj1Builder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public Builder mergeObj1(com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject value) {
if (obj1Builder_ == null) {
if (obj1_ != null) {
obj1_ =
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.newBuilder(obj1_).mergeFrom(value).buildPartial();
} else {
obj1_ = value;
}
onChanged();
} else {
obj1Builder_.mergeFrom(value);
}
return this;
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public Builder clearObj1() {
if (obj1Builder_ == null) {
obj1_ = null;
onChanged();
} else {
obj1_ = null;
obj1Builder_ = null;
}
return this;
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.Builder getObj1Builder() {
onChanged();
return getObj1FieldBuilder().getBuilder();
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObjectOrBuilder getObj1OrBuilder() {
if (obj1Builder_ != null) {
return obj1Builder_.getMessageOrBuilder();
} else {
return obj1_ == null ?
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.getDefaultInstance() : obj1_;
}
}
/**
* .ContainerObject.ContainedObject obj1 = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.Builder, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObjectOrBuilder>
getObj1FieldBuilder() {
if (obj1Builder_ == null) {
obj1Builder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObject.Builder, com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedObjectOrBuilder>(
getObj1(),
getParentForChildren(),
isClean());
obj1_ = null;
}
return obj1Builder_;
}
private int enum1_ = 0;
/**
* .ContainerObject.ContainedEnum enum1 = 2;
*/
public int getEnum1Value() {
return enum1_;
}
/**
* .ContainerObject.ContainedEnum enum1 = 2;
*/
public Builder setEnum1Value(int value) {
enum1_ = value;
onChanged();
return this;
}
/**
* .ContainerObject.ContainedEnum enum1 = 2;
*/
public com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum getEnum1() {
com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum result = com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum.valueOf(enum1_);
return result == null ? com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum.UNRECOGNIZED : result;
}
/**
* .ContainerObject.ContainedEnum enum1 = 2;
*/
public Builder setEnum1(com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject.ContainedEnum value) {
if (value == null) {
throw new NullPointerException();
}
enum1_ = value.getNumber();
onChanged();
return this;
}
/**
* .ContainerObject.ContainedEnum enum1 = 2;
*/
public Builder clearEnum1() {
enum1_ = 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:ContainerObject)
}
// @@protoc_insertion_point(class_scope:ContainerObject)
private static final com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject();
}
public static com.github.dozermapper.protobuf.vo.protomultiple.ContainerObject getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public ContainerObject parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContainerObject(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.protomultiple.ContainerObject getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy