Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.daos.obj.attr.DaosOclassAttr Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: DaosObjectAttribute.proto
package io.daos.obj.attr;
/**
* Protobuf type {@code objattr.DaosOclassAttr}
*/
public final class DaosOclassAttr extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:objattr.DaosOclassAttr)
DaosOclassAttrOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaosOclassAttr.newBuilder() to construct.
private DaosOclassAttr(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaosOclassAttr() {
caSchema_ = 0;
caResil_ = 0;
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new DaosOclassAttr();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DaosOclassAttr(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
caSchema_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
caResil_ = rawValue;
break;
}
case 24: {
caResilDegree_ = input.readUInt32();
break;
}
case 32: {
caGrpNr_ = input.readUInt32();
break;
}
case 42: {
DaosRpAttr.Builder subBuilder = null;
if (uCase_ == 5) {
subBuilder = ((DaosRpAttr) u_).toBuilder();
}
u_ =
input.readMessage(DaosRpAttr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((DaosRpAttr) u_);
u_ = subBuilder.buildPartial();
}
uCase_ = 5;
break;
}
case 50: {
DaosEcAttr.Builder subBuilder = null;
if (uCase_ == 6) {
subBuilder = ((DaosEcAttr) u_).toBuilder();
}
u_ =
input.readMessage(DaosEcAttr.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((DaosEcAttr) u_);
u_ = subBuilder.buildPartial();
}
uCase_ = 6;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return DaosObjAttrClasses.internal_static_objattr_DaosOclassAttr_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return DaosObjAttrClasses.internal_static_objattr_DaosOclassAttr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
DaosOclassAttr.class, Builder.class);
}
private int uCase_ = 0;
private Object u_;
public enum UCase
implements com.google.protobuf.Internal.EnumLite,
InternalOneOfEnum {
RP(5),
EC(6),
U_NOT_SET(0);
private final int value;
private UCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@Deprecated
public static UCase valueOf(int value) {
return forNumber(value);
}
public static UCase forNumber(int value) {
switch (value) {
case 5: return RP;
case 6: return EC;
case 0: return U_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public UCase
getUCase() {
return UCase.forNumber(
uCase_);
}
public static final int CA_SCHEMA_FIELD_NUMBER = 1;
private int caSchema_;
/**
* .objattr.DaosObjSchema ca_schema = 1;
* @return The enum numeric value on the wire for caSchema.
*/
@Override public int getCaSchemaValue() {
return caSchema_;
}
/**
* .objattr.DaosObjSchema ca_schema = 1;
* @return The caSchema.
*/
@Override public DaosObjSchema getCaSchema() {
@SuppressWarnings("deprecation")
DaosObjSchema result = DaosObjSchema.valueOf(caSchema_);
return result == null ? DaosObjSchema.UNRECOGNIZED : result;
}
public static final int CA_RESIL_FIELD_NUMBER = 2;
private int caResil_;
/**
* .objattr.DaosObjResil ca_resil = 2;
* @return The enum numeric value on the wire for caResil.
*/
@Override public int getCaResilValue() {
return caResil_;
}
/**
* .objattr.DaosObjResil ca_resil = 2;
* @return The caResil.
*/
@Override public DaosObjResil getCaResil() {
@SuppressWarnings("deprecation")
DaosObjResil result = DaosObjResil.valueOf(caResil_);
return result == null ? DaosObjResil.UNRECOGNIZED : result;
}
public static final int CA_RESIL_DEGREE_FIELD_NUMBER = 3;
private int caResilDegree_;
/**
* uint32 ca_resil_degree = 3;
* @return The caResilDegree.
*/
@Override
public int getCaResilDegree() {
return caResilDegree_;
}
public static final int CA_GRP_NR_FIELD_NUMBER = 4;
private int caGrpNr_;
/**
* uint32 ca_grp_nr = 4;
* @return The caGrpNr.
*/
@Override
public int getCaGrpNr() {
return caGrpNr_;
}
public static final int RP_FIELD_NUMBER = 5;
/**
* .objattr.DaosRpAttr rp = 5;
* @return Whether the rp field is set.
*/
@Override
public boolean hasRp() {
return uCase_ == 5;
}
/**
* .objattr.DaosRpAttr rp = 5;
* @return The rp.
*/
@Override
public DaosRpAttr getRp() {
if (uCase_ == 5) {
return (DaosRpAttr) u_;
}
return DaosRpAttr.getDefaultInstance();
}
/**
* .objattr.DaosRpAttr rp = 5;
*/
@Override
public DaosRpAttrOrBuilder getRpOrBuilder() {
if (uCase_ == 5) {
return (DaosRpAttr) u_;
}
return DaosRpAttr.getDefaultInstance();
}
public static final int EC_FIELD_NUMBER = 6;
/**
* .objattr.DaosEcAttr ec = 6;
* @return Whether the ec field is set.
*/
@Override
public boolean hasEc() {
return uCase_ == 6;
}
/**
* .objattr.DaosEcAttr ec = 6;
* @return The ec.
*/
@Override
public DaosEcAttr getEc() {
if (uCase_ == 6) {
return (DaosEcAttr) u_;
}
return DaosEcAttr.getDefaultInstance();
}
/**
* .objattr.DaosEcAttr ec = 6;
*/
@Override
public DaosEcAttrOrBuilder getEcOrBuilder() {
if (uCase_ == 6) {
return (DaosEcAttr) u_;
}
return DaosEcAttr.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (caSchema_ != DaosObjSchema.DAOS_OS_SINGLE.getNumber()) {
output.writeEnum(1, caSchema_);
}
if (caResil_ != DaosObjResil.DAOS_RES_EC.getNumber()) {
output.writeEnum(2, caResil_);
}
if (caResilDegree_ != 0) {
output.writeUInt32(3, caResilDegree_);
}
if (caGrpNr_ != 0) {
output.writeUInt32(4, caGrpNr_);
}
if (uCase_ == 5) {
output.writeMessage(5, (DaosRpAttr) u_);
}
if (uCase_ == 6) {
output.writeMessage(6, (DaosEcAttr) u_);
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (caSchema_ != DaosObjSchema.DAOS_OS_SINGLE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, caSchema_);
}
if (caResil_ != DaosObjResil.DAOS_RES_EC.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, caResil_);
}
if (caResilDegree_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, caResilDegree_);
}
if (caGrpNr_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, caGrpNr_);
}
if (uCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (DaosRpAttr) u_);
}
if (uCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (DaosEcAttr) u_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof DaosOclassAttr)) {
return super.equals(obj);
}
DaosOclassAttr other = (DaosOclassAttr) obj;
if (caSchema_ != other.caSchema_) return false;
if (caResil_ != other.caResil_) return false;
if (getCaResilDegree()
!= other.getCaResilDegree()) return false;
if (getCaGrpNr()
!= other.getCaGrpNr()) return false;
if (!getUCase().equals(other.getUCase())) return false;
switch (uCase_) {
case 5:
if (!getRp()
.equals(other.getRp())) return false;
break;
case 6:
if (!getEc()
.equals(other.getEc())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + CA_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + caSchema_;
hash = (37 * hash) + CA_RESIL_FIELD_NUMBER;
hash = (53 * hash) + caResil_;
hash = (37 * hash) + CA_RESIL_DEGREE_FIELD_NUMBER;
hash = (53 * hash) + getCaResilDegree();
hash = (37 * hash) + CA_GRP_NR_FIELD_NUMBER;
hash = (53 * hash) + getCaGrpNr();
switch (uCase_) {
case 5:
hash = (37 * hash) + RP_FIELD_NUMBER;
hash = (53 * hash) + getRp().hashCode();
break;
case 6:
hash = (37 * hash) + EC_FIELD_NUMBER;
hash = (53 * hash) + getEc().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static DaosOclassAttr parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static DaosOclassAttr parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static DaosOclassAttr parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static DaosOclassAttr parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static DaosOclassAttr parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static DaosOclassAttr parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static DaosOclassAttr parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static DaosOclassAttr 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 DaosOclassAttr parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static DaosOclassAttr 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 DaosOclassAttr parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static DaosOclassAttr parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(DaosOclassAttr prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code objattr.DaosOclassAttr}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:objattr.DaosOclassAttr)
DaosOclassAttrOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return DaosObjAttrClasses.internal_static_objattr_DaosOclassAttr_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return DaosObjAttrClasses.internal_static_objattr_DaosOclassAttr_fieldAccessorTable
.ensureFieldAccessorsInitialized(
DaosOclassAttr.class, Builder.class);
}
// Construct using io.daos.obj.attr.DaosOclassAttr.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@Override
public Builder clear() {
super.clear();
caSchema_ = 0;
caResil_ = 0;
caResilDegree_ = 0;
caGrpNr_ = 0;
uCase_ = 0;
u_ = null;
return this;
}
@Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return DaosObjAttrClasses.internal_static_objattr_DaosOclassAttr_descriptor;
}
@Override
public DaosOclassAttr getDefaultInstanceForType() {
return DaosOclassAttr.getDefaultInstance();
}
@Override
public DaosOclassAttr build() {
DaosOclassAttr result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@Override
public DaosOclassAttr buildPartial() {
DaosOclassAttr result = new DaosOclassAttr(this);
result.caSchema_ = caSchema_;
result.caResil_ = caResil_;
result.caResilDegree_ = caResilDegree_;
result.caGrpNr_ = caGrpNr_;
if (uCase_ == 5) {
if (rpBuilder_ == null) {
result.u_ = u_;
} else {
result.u_ = rpBuilder_.build();
}
}
if (uCase_ == 6) {
if (ecBuilder_ == null) {
result.u_ = u_;
} else {
result.u_ = ecBuilder_.build();
}
}
result.uCase_ = uCase_;
onBuilt();
return result;
}
@Override
public Builder clone() {
return super.clone();
}
@Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return super.setField(field, value);
}
@Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, Object value) {
return super.setRepeatedField(field, index, value);
}
@Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) {
return super.addRepeatedField(field, value);
}
@Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof DaosOclassAttr) {
return mergeFrom((DaosOclassAttr)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(DaosOclassAttr other) {
if (other == DaosOclassAttr.getDefaultInstance()) return this;
if (other.caSchema_ != 0) {
setCaSchemaValue(other.getCaSchemaValue());
}
if (other.caResil_ != 0) {
setCaResilValue(other.getCaResilValue());
}
if (other.getCaResilDegree() != 0) {
setCaResilDegree(other.getCaResilDegree());
}
if (other.getCaGrpNr() != 0) {
setCaGrpNr(other.getCaGrpNr());
}
switch (other.getUCase()) {
case RP: {
mergeRp(other.getRp());
break;
}
case EC: {
mergeEc(other.getEc());
break;
}
case U_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@Override
public final boolean isInitialized() {
return true;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
DaosOclassAttr parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (DaosOclassAttr) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int uCase_ = 0;
private Object u_;
public UCase
getUCase() {
return UCase.forNumber(
uCase_);
}
public Builder clearU() {
uCase_ = 0;
u_ = null;
onChanged();
return this;
}
private int caSchema_ = 0;
/**
* .objattr.DaosObjSchema ca_schema = 1;
* @return The enum numeric value on the wire for caSchema.
*/
@Override public int getCaSchemaValue() {
return caSchema_;
}
/**
* .objattr.DaosObjSchema ca_schema = 1;
* @param value The enum numeric value on the wire for caSchema to set.
* @return This builder for chaining.
*/
public Builder setCaSchemaValue(int value) {
caSchema_ = value;
onChanged();
return this;
}
/**
* .objattr.DaosObjSchema ca_schema = 1;
* @return The caSchema.
*/
@Override
public DaosObjSchema getCaSchema() {
@SuppressWarnings("deprecation")
DaosObjSchema result = DaosObjSchema.valueOf(caSchema_);
return result == null ? DaosObjSchema.UNRECOGNIZED : result;
}
/**
* .objattr.DaosObjSchema ca_schema = 1;
* @param value The caSchema to set.
* @return This builder for chaining.
*/
public Builder setCaSchema(DaosObjSchema value) {
if (value == null) {
throw new NullPointerException();
}
caSchema_ = value.getNumber();
onChanged();
return this;
}
/**
* .objattr.DaosObjSchema ca_schema = 1;
* @return This builder for chaining.
*/
public Builder clearCaSchema() {
caSchema_ = 0;
onChanged();
return this;
}
private int caResil_ = 0;
/**
* .objattr.DaosObjResil ca_resil = 2;
* @return The enum numeric value on the wire for caResil.
*/
@Override public int getCaResilValue() {
return caResil_;
}
/**
* .objattr.DaosObjResil ca_resil = 2;
* @param value The enum numeric value on the wire for caResil to set.
* @return This builder for chaining.
*/
public Builder setCaResilValue(int value) {
caResil_ = value;
onChanged();
return this;
}
/**
* .objattr.DaosObjResil ca_resil = 2;
* @return The caResil.
*/
@Override
public DaosObjResil getCaResil() {
@SuppressWarnings("deprecation")
DaosObjResil result = DaosObjResil.valueOf(caResil_);
return result == null ? DaosObjResil.UNRECOGNIZED : result;
}
/**
* .objattr.DaosObjResil ca_resil = 2;
* @param value The caResil to set.
* @return This builder for chaining.
*/
public Builder setCaResil(DaosObjResil value) {
if (value == null) {
throw new NullPointerException();
}
caResil_ = value.getNumber();
onChanged();
return this;
}
/**
* .objattr.DaosObjResil ca_resil = 2;
* @return This builder for chaining.
*/
public Builder clearCaResil() {
caResil_ = 0;
onChanged();
return this;
}
private int caResilDegree_ ;
/**
* uint32 ca_resil_degree = 3;
* @return The caResilDegree.
*/
@Override
public int getCaResilDegree() {
return caResilDegree_;
}
/**
* uint32 ca_resil_degree = 3;
* @param value The caResilDegree to set.
* @return This builder for chaining.
*/
public Builder setCaResilDegree(int value) {
caResilDegree_ = value;
onChanged();
return this;
}
/**
* uint32 ca_resil_degree = 3;
* @return This builder for chaining.
*/
public Builder clearCaResilDegree() {
caResilDegree_ = 0;
onChanged();
return this;
}
private int caGrpNr_ ;
/**
* uint32 ca_grp_nr = 4;
* @return The caGrpNr.
*/
@Override
public int getCaGrpNr() {
return caGrpNr_;
}
/**
* uint32 ca_grp_nr = 4;
* @param value The caGrpNr to set.
* @return This builder for chaining.
*/
public Builder setCaGrpNr(int value) {
caGrpNr_ = value;
onChanged();
return this;
}
/**
* uint32 ca_grp_nr = 4;
* @return This builder for chaining.
*/
public Builder clearCaGrpNr() {
caGrpNr_ = 0;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
DaosRpAttr, DaosRpAttr.Builder, DaosRpAttrOrBuilder> rpBuilder_;
/**
* .objattr.DaosRpAttr rp = 5;
* @return Whether the rp field is set.
*/
@Override
public boolean hasRp() {
return uCase_ == 5;
}
/**
* .objattr.DaosRpAttr rp = 5;
* @return The rp.
*/
@Override
public DaosRpAttr getRp() {
if (rpBuilder_ == null) {
if (uCase_ == 5) {
return (DaosRpAttr) u_;
}
return DaosRpAttr.getDefaultInstance();
} else {
if (uCase_ == 5) {
return rpBuilder_.getMessage();
}
return DaosRpAttr.getDefaultInstance();
}
}
/**
* .objattr.DaosRpAttr rp = 5;
*/
public Builder setRp(DaosRpAttr value) {
if (rpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
u_ = value;
onChanged();
} else {
rpBuilder_.setMessage(value);
}
uCase_ = 5;
return this;
}
/**
* .objattr.DaosRpAttr rp = 5;
*/
public Builder setRp(
DaosRpAttr.Builder builderForValue) {
if (rpBuilder_ == null) {
u_ = builderForValue.build();
onChanged();
} else {
rpBuilder_.setMessage(builderForValue.build());
}
uCase_ = 5;
return this;
}
/**
* .objattr.DaosRpAttr rp = 5;
*/
public Builder mergeRp(DaosRpAttr value) {
if (rpBuilder_ == null) {
if (uCase_ == 5 &&
u_ != DaosRpAttr.getDefaultInstance()) {
u_ = DaosRpAttr.newBuilder((DaosRpAttr) u_)
.mergeFrom(value).buildPartial();
} else {
u_ = value;
}
onChanged();
} else {
if (uCase_ == 5) {
rpBuilder_.mergeFrom(value);
}
rpBuilder_.setMessage(value);
}
uCase_ = 5;
return this;
}
/**
* .objattr.DaosRpAttr rp = 5;
*/
public Builder clearRp() {
if (rpBuilder_ == null) {
if (uCase_ == 5) {
uCase_ = 0;
u_ = null;
onChanged();
}
} else {
if (uCase_ == 5) {
uCase_ = 0;
u_ = null;
}
rpBuilder_.clear();
}
return this;
}
/**
* .objattr.DaosRpAttr rp = 5;
*/
public DaosRpAttr.Builder getRpBuilder() {
return getRpFieldBuilder().getBuilder();
}
/**
* .objattr.DaosRpAttr rp = 5;
*/
@Override
public DaosRpAttrOrBuilder getRpOrBuilder() {
if ((uCase_ == 5) && (rpBuilder_ != null)) {
return rpBuilder_.getMessageOrBuilder();
} else {
if (uCase_ == 5) {
return (DaosRpAttr) u_;
}
return DaosRpAttr.getDefaultInstance();
}
}
/**
* .objattr.DaosRpAttr rp = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
DaosRpAttr, DaosRpAttr.Builder, DaosRpAttrOrBuilder>
getRpFieldBuilder() {
if (rpBuilder_ == null) {
if (!(uCase_ == 5)) {
u_ = DaosRpAttr.getDefaultInstance();
}
rpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
DaosRpAttr, DaosRpAttr.Builder, DaosRpAttrOrBuilder>(
(DaosRpAttr) u_,
getParentForChildren(),
isClean());
u_ = null;
}
uCase_ = 5;
onChanged();;
return rpBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
DaosEcAttr, DaosEcAttr.Builder, DaosEcAttrOrBuilder> ecBuilder_;
/**
* .objattr.DaosEcAttr ec = 6;
* @return Whether the ec field is set.
*/
@Override
public boolean hasEc() {
return uCase_ == 6;
}
/**
* .objattr.DaosEcAttr ec = 6;
* @return The ec.
*/
@Override
public DaosEcAttr getEc() {
if (ecBuilder_ == null) {
if (uCase_ == 6) {
return (DaosEcAttr) u_;
}
return DaosEcAttr.getDefaultInstance();
} else {
if (uCase_ == 6) {
return ecBuilder_.getMessage();
}
return DaosEcAttr.getDefaultInstance();
}
}
/**
* .objattr.DaosEcAttr ec = 6;
*/
public Builder setEc(DaosEcAttr value) {
if (ecBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
u_ = value;
onChanged();
} else {
ecBuilder_.setMessage(value);
}
uCase_ = 6;
return this;
}
/**
* .objattr.DaosEcAttr ec = 6;
*/
public Builder setEc(
DaosEcAttr.Builder builderForValue) {
if (ecBuilder_ == null) {
u_ = builderForValue.build();
onChanged();
} else {
ecBuilder_.setMessage(builderForValue.build());
}
uCase_ = 6;
return this;
}
/**
* .objattr.DaosEcAttr ec = 6;
*/
public Builder mergeEc(DaosEcAttr value) {
if (ecBuilder_ == null) {
if (uCase_ == 6 &&
u_ != DaosEcAttr.getDefaultInstance()) {
u_ = DaosEcAttr.newBuilder((DaosEcAttr) u_)
.mergeFrom(value).buildPartial();
} else {
u_ = value;
}
onChanged();
} else {
if (uCase_ == 6) {
ecBuilder_.mergeFrom(value);
}
ecBuilder_.setMessage(value);
}
uCase_ = 6;
return this;
}
/**
* .objattr.DaosEcAttr ec = 6;
*/
public Builder clearEc() {
if (ecBuilder_ == null) {
if (uCase_ == 6) {
uCase_ = 0;
u_ = null;
onChanged();
}
} else {
if (uCase_ == 6) {
uCase_ = 0;
u_ = null;
}
ecBuilder_.clear();
}
return this;
}
/**
* .objattr.DaosEcAttr ec = 6;
*/
public DaosEcAttr.Builder getEcBuilder() {
return getEcFieldBuilder().getBuilder();
}
/**
* .objattr.DaosEcAttr ec = 6;
*/
@Override
public DaosEcAttrOrBuilder getEcOrBuilder() {
if ((uCase_ == 6) && (ecBuilder_ != null)) {
return ecBuilder_.getMessageOrBuilder();
} else {
if (uCase_ == 6) {
return (DaosEcAttr) u_;
}
return DaosEcAttr.getDefaultInstance();
}
}
/**
* .objattr.DaosEcAttr ec = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
DaosEcAttr, DaosEcAttr.Builder, DaosEcAttrOrBuilder>
getEcFieldBuilder() {
if (ecBuilder_ == null) {
if (!(uCase_ == 6)) {
u_ = DaosEcAttr.getDefaultInstance();
}
ecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
DaosEcAttr, DaosEcAttr.Builder, DaosEcAttrOrBuilder>(
(DaosEcAttr) u_,
getParentForChildren(),
isClean());
u_ = null;
}
uCase_ = 6;
onChanged();;
return ecBuilder_;
}
@Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:objattr.DaosOclassAttr)
}
// @@protoc_insertion_point(class_scope:objattr.DaosOclassAttr)
private static final DaosOclassAttr DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new DaosOclassAttr();
}
public static DaosOclassAttr getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@Override
public DaosOclassAttr parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DaosOclassAttr(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@Override
public DaosOclassAttr getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}