org.openlca.proto.ProtoSocialAspect Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: olca.proto
package org.openlca.proto;
/**
*
* An instance of this class describes a social aspect related to a social
* indicator in a process.
*
*
* Protobuf type {@code protolca.ProtoSocialAspect}
*/
public final class ProtoSocialAspect extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protolca.ProtoSocialAspect)
ProtoSocialAspectOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProtoSocialAspect.newBuilder() to construct.
private ProtoSocialAspect(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtoSocialAspect() {
comment_ = "";
quality_ = "";
rawAmount_ = "";
riskLevel_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProtoSocialAspect();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoSocialAspect(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
activityValue_ = input.readDouble();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
comment_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
quality_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
rawAmount_ = s;
break;
}
case 40: {
int rawValue = input.readEnum();
riskLevel_ = rawValue;
break;
}
case 50: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (socialIndicator_ != null) {
subBuilder = socialIndicator_.toBuilder();
}
socialIndicator_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(socialIndicator_);
socialIndicator_ = subBuilder.buildPartial();
}
break;
}
case 58: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (source_ != null) {
subBuilder = source_.toBuilder();
}
source_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(source_);
source_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSocialAspect_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSocialAspect_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoSocialAspect.class, org.openlca.proto.ProtoSocialAspect.Builder.class);
}
public static final int ACTIVITY_VALUE_FIELD_NUMBER = 1;
private double activityValue_;
/**
*
* The value of the activity variable of the related indicator.
*
*
* double activity_value = 1;
* @return The activityValue.
*/
@java.lang.Override
public double getActivityValue() {
return activityValue_;
}
public static final int COMMENT_FIELD_NUMBER = 2;
private volatile java.lang.Object comment_;
/**
* string comment = 2;
* @return The comment.
*/
@java.lang.Override
public java.lang.String getComment() {
java.lang.Object ref = comment_;
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();
comment_ = s;
return s;
}
}
/**
* string comment = 2;
* @return The bytes for comment.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUALITY_FIELD_NUMBER = 3;
private volatile java.lang.Object quality_;
/**
*
* A data quality entry, e.g. `(3,1,2,4,1)`.
*
*
* string quality = 3;
* @return The quality.
*/
@java.lang.Override
public java.lang.String getQuality() {
java.lang.Object ref = quality_;
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();
quality_ = s;
return s;
}
}
/**
*
* A data quality entry, e.g. `(3,1,2,4,1)`.
*
*
* string quality = 3;
* @return The bytes for quality.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQualityBytes() {
java.lang.Object ref = quality_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
quality_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RAW_AMOUNT_FIELD_NUMBER = 4;
private volatile java.lang.Object rawAmount_;
/**
*
* The raw amount of the indicator's unit of measurement (not required to be
* numeric currently)
*
*
* string raw_amount = 4;
* @return The rawAmount.
*/
@java.lang.Override
public java.lang.String getRawAmount() {
java.lang.Object ref = rawAmount_;
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();
rawAmount_ = s;
return s;
}
}
/**
*
* The raw amount of the indicator's unit of measurement (not required to be
* numeric currently)
*
*
* string raw_amount = 4;
* @return The bytes for rawAmount.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRawAmountBytes() {
java.lang.Object ref = rawAmount_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rawAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RISK_LEVEL_FIELD_NUMBER = 5;
private int riskLevel_;
/**
* .protolca.ProtoRiskLevel risk_level = 5;
* @return The enum numeric value on the wire for riskLevel.
*/
@java.lang.Override public int getRiskLevelValue() {
return riskLevel_;
}
/**
* .protolca.ProtoRiskLevel risk_level = 5;
* @return The riskLevel.
*/
@java.lang.Override public org.openlca.proto.ProtoRiskLevel getRiskLevel() {
@SuppressWarnings("deprecation")
org.openlca.proto.ProtoRiskLevel result = org.openlca.proto.ProtoRiskLevel.valueOf(riskLevel_);
return result == null ? org.openlca.proto.ProtoRiskLevel.UNRECOGNIZED : result;
}
public static final int SOCIAL_INDICATOR_FIELD_NUMBER = 6;
private org.openlca.proto.ProtoRef socialIndicator_;
/**
* .protolca.ProtoRef social_indicator = 6;
* @return Whether the socialIndicator field is set.
*/
@java.lang.Override
public boolean hasSocialIndicator() {
return socialIndicator_ != null;
}
/**
* .protolca.ProtoRef social_indicator = 6;
* @return The socialIndicator.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getSocialIndicator() {
return socialIndicator_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : socialIndicator_;
}
/**
* .protolca.ProtoRef social_indicator = 6;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getSocialIndicatorOrBuilder() {
return getSocialIndicator();
}
public static final int SOURCE_FIELD_NUMBER = 7;
private org.openlca.proto.ProtoRef source_;
/**
* .protolca.ProtoRef source = 7;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return source_ != null;
}
/**
* .protolca.ProtoRef source = 7;
* @return The source.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getSource() {
return source_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : source_;
}
/**
* .protolca.ProtoRef source = 7;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getSourceOrBuilder() {
return getSource();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (activityValue_ != 0D) {
output.writeDouble(1, activityValue_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, comment_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quality_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, quality_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rawAmount_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rawAmount_);
}
if (riskLevel_ != org.openlca.proto.ProtoRiskLevel.UNDEFINED_RISK_LEVEL.getNumber()) {
output.writeEnum(5, riskLevel_);
}
if (socialIndicator_ != null) {
output.writeMessage(6, getSocialIndicator());
}
if (source_ != null) {
output.writeMessage(7, getSource());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (activityValue_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, activityValue_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, comment_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(quality_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, quality_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rawAmount_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rawAmount_);
}
if (riskLevel_ != org.openlca.proto.ProtoRiskLevel.UNDEFINED_RISK_LEVEL.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, riskLevel_);
}
if (socialIndicator_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSocialIndicator());
}
if (source_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getSource());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.openlca.proto.ProtoSocialAspect)) {
return super.equals(obj);
}
org.openlca.proto.ProtoSocialAspect other = (org.openlca.proto.ProtoSocialAspect) obj;
if (java.lang.Double.doubleToLongBits(getActivityValue())
!= java.lang.Double.doubleToLongBits(
other.getActivityValue())) return false;
if (!getComment()
.equals(other.getComment())) return false;
if (!getQuality()
.equals(other.getQuality())) return false;
if (!getRawAmount()
.equals(other.getRawAmount())) return false;
if (riskLevel_ != other.riskLevel_) return false;
if (hasSocialIndicator() != other.hasSocialIndicator()) return false;
if (hasSocialIndicator()) {
if (!getSocialIndicator()
.equals(other.getSocialIndicator())) return false;
}
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ACTIVITY_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getActivityValue()));
hash = (37 * hash) + COMMENT_FIELD_NUMBER;
hash = (53 * hash) + getComment().hashCode();
hash = (37 * hash) + QUALITY_FIELD_NUMBER;
hash = (53 * hash) + getQuality().hashCode();
hash = (37 * hash) + RAW_AMOUNT_FIELD_NUMBER;
hash = (53 * hash) + getRawAmount().hashCode();
hash = (37 * hash) + RISK_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + riskLevel_;
if (hasSocialIndicator()) {
hash = (37 * hash) + SOCIAL_INDICATOR_FIELD_NUMBER;
hash = (53 * hash) + getSocialIndicator().hashCode();
}
if (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.openlca.proto.ProtoSocialAspect parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoSocialAspect parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoSocialAspect parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.openlca.proto.ProtoSocialAspect prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* An instance of this class describes a social aspect related to a social
* indicator in a process.
*
*
* Protobuf type {@code protolca.ProtoSocialAspect}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protolca.ProtoSocialAspect)
org.openlca.proto.ProtoSocialAspectOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSocialAspect_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSocialAspect_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoSocialAspect.class, org.openlca.proto.ProtoSocialAspect.Builder.class);
}
// Construct using org.openlca.proto.ProtoSocialAspect.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
activityValue_ = 0D;
comment_ = "";
quality_ = "";
rawAmount_ = "";
riskLevel_ = 0;
if (socialIndicatorBuilder_ == null) {
socialIndicator_ = null;
} else {
socialIndicator_ = null;
socialIndicatorBuilder_ = null;
}
if (sourceBuilder_ == null) {
source_ = null;
} else {
source_ = null;
sourceBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSocialAspect_descriptor;
}
@java.lang.Override
public org.openlca.proto.ProtoSocialAspect getDefaultInstanceForType() {
return org.openlca.proto.ProtoSocialAspect.getDefaultInstance();
}
@java.lang.Override
public org.openlca.proto.ProtoSocialAspect build() {
org.openlca.proto.ProtoSocialAspect result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openlca.proto.ProtoSocialAspect buildPartial() {
org.openlca.proto.ProtoSocialAspect result = new org.openlca.proto.ProtoSocialAspect(this);
result.activityValue_ = activityValue_;
result.comment_ = comment_;
result.quality_ = quality_;
result.rawAmount_ = rawAmount_;
result.riskLevel_ = riskLevel_;
if (socialIndicatorBuilder_ == null) {
result.socialIndicator_ = socialIndicator_;
} else {
result.socialIndicator_ = socialIndicatorBuilder_.build();
}
if (sourceBuilder_ == null) {
result.source_ = source_;
} else {
result.source_ = sourceBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.openlca.proto.ProtoSocialAspect) {
return mergeFrom((org.openlca.proto.ProtoSocialAspect)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openlca.proto.ProtoSocialAspect other) {
if (other == org.openlca.proto.ProtoSocialAspect.getDefaultInstance()) return this;
if (other.getActivityValue() != 0D) {
setActivityValue(other.getActivityValue());
}
if (!other.getComment().isEmpty()) {
comment_ = other.comment_;
onChanged();
}
if (!other.getQuality().isEmpty()) {
quality_ = other.quality_;
onChanged();
}
if (!other.getRawAmount().isEmpty()) {
rawAmount_ = other.rawAmount_;
onChanged();
}
if (other.riskLevel_ != 0) {
setRiskLevelValue(other.getRiskLevelValue());
}
if (other.hasSocialIndicator()) {
mergeSocialIndicator(other.getSocialIndicator());
}
if (other.hasSource()) {
mergeSource(other.getSource());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.openlca.proto.ProtoSocialAspect parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openlca.proto.ProtoSocialAspect) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double activityValue_ ;
/**
*
* The value of the activity variable of the related indicator.
*
*
* double activity_value = 1;
* @return The activityValue.
*/
@java.lang.Override
public double getActivityValue() {
return activityValue_;
}
/**
*
* The value of the activity variable of the related indicator.
*
*
* double activity_value = 1;
* @param value The activityValue to set.
* @return This builder for chaining.
*/
public Builder setActivityValue(double value) {
activityValue_ = value;
onChanged();
return this;
}
/**
*
* The value of the activity variable of the related indicator.
*
*
* double activity_value = 1;
* @return This builder for chaining.
*/
public Builder clearActivityValue() {
activityValue_ = 0D;
onChanged();
return this;
}
private java.lang.Object comment_ = "";
/**
* string comment = 2;
* @return The comment.
*/
public java.lang.String getComment() {
java.lang.Object ref = comment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
comment_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string comment = 2;
* @return The bytes for comment.
*/
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string comment = 2;
* @param value The comment to set.
* @return This builder for chaining.
*/
public Builder setComment(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
comment_ = value;
onChanged();
return this;
}
/**
* string comment = 2;
* @return This builder for chaining.
*/
public Builder clearComment() {
comment_ = getDefaultInstance().getComment();
onChanged();
return this;
}
/**
* string comment = 2;
* @param value The bytes for comment to set.
* @return This builder for chaining.
*/
public Builder setCommentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
comment_ = value;
onChanged();
return this;
}
private java.lang.Object quality_ = "";
/**
*
* A data quality entry, e.g. `(3,1,2,4,1)`.
*
*
* string quality = 3;
* @return The quality.
*/
public java.lang.String getQuality() {
java.lang.Object ref = quality_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
quality_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* A data quality entry, e.g. `(3,1,2,4,1)`.
*
*
* string quality = 3;
* @return The bytes for quality.
*/
public com.google.protobuf.ByteString
getQualityBytes() {
java.lang.Object ref = quality_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
quality_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* A data quality entry, e.g. `(3,1,2,4,1)`.
*
*
* string quality = 3;
* @param value The quality to set.
* @return This builder for chaining.
*/
public Builder setQuality(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
quality_ = value;
onChanged();
return this;
}
/**
*
* A data quality entry, e.g. `(3,1,2,4,1)`.
*
*
* string quality = 3;
* @return This builder for chaining.
*/
public Builder clearQuality() {
quality_ = getDefaultInstance().getQuality();
onChanged();
return this;
}
/**
*
* A data quality entry, e.g. `(3,1,2,4,1)`.
*
*
* string quality = 3;
* @param value The bytes for quality to set.
* @return This builder for chaining.
*/
public Builder setQualityBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
quality_ = value;
onChanged();
return this;
}
private java.lang.Object rawAmount_ = "";
/**
*
* The raw amount of the indicator's unit of measurement (not required to be
* numeric currently)
*
*
* string raw_amount = 4;
* @return The rawAmount.
*/
public java.lang.String getRawAmount() {
java.lang.Object ref = rawAmount_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
rawAmount_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The raw amount of the indicator's unit of measurement (not required to be
* numeric currently)
*
*
* string raw_amount = 4;
* @return The bytes for rawAmount.
*/
public com.google.protobuf.ByteString
getRawAmountBytes() {
java.lang.Object ref = rawAmount_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
rawAmount_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The raw amount of the indicator's unit of measurement (not required to be
* numeric currently)
*
*
* string raw_amount = 4;
* @param value The rawAmount to set.
* @return This builder for chaining.
*/
public Builder setRawAmount(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
rawAmount_ = value;
onChanged();
return this;
}
/**
*
* The raw amount of the indicator's unit of measurement (not required to be
* numeric currently)
*
*
* string raw_amount = 4;
* @return This builder for chaining.
*/
public Builder clearRawAmount() {
rawAmount_ = getDefaultInstance().getRawAmount();
onChanged();
return this;
}
/**
*
* The raw amount of the indicator's unit of measurement (not required to be
* numeric currently)
*
*
* string raw_amount = 4;
* @param value The bytes for rawAmount to set.
* @return This builder for chaining.
*/
public Builder setRawAmountBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
rawAmount_ = value;
onChanged();
return this;
}
private int riskLevel_ = 0;
/**
* .protolca.ProtoRiskLevel risk_level = 5;
* @return The enum numeric value on the wire for riskLevel.
*/
@java.lang.Override public int getRiskLevelValue() {
return riskLevel_;
}
/**
* .protolca.ProtoRiskLevel risk_level = 5;
* @param value The enum numeric value on the wire for riskLevel to set.
* @return This builder for chaining.
*/
public Builder setRiskLevelValue(int value) {
riskLevel_ = value;
onChanged();
return this;
}
/**
* .protolca.ProtoRiskLevel risk_level = 5;
* @return The riskLevel.
*/
@java.lang.Override
public org.openlca.proto.ProtoRiskLevel getRiskLevel() {
@SuppressWarnings("deprecation")
org.openlca.proto.ProtoRiskLevel result = org.openlca.proto.ProtoRiskLevel.valueOf(riskLevel_);
return result == null ? org.openlca.proto.ProtoRiskLevel.UNRECOGNIZED : result;
}
/**
* .protolca.ProtoRiskLevel risk_level = 5;
* @param value The riskLevel to set.
* @return This builder for chaining.
*/
public Builder setRiskLevel(org.openlca.proto.ProtoRiskLevel value) {
if (value == null) {
throw new NullPointerException();
}
riskLevel_ = value.getNumber();
onChanged();
return this;
}
/**
* .protolca.ProtoRiskLevel risk_level = 5;
* @return This builder for chaining.
*/
public Builder clearRiskLevel() {
riskLevel_ = 0;
onChanged();
return this;
}
private org.openlca.proto.ProtoRef socialIndicator_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> socialIndicatorBuilder_;
/**
* .protolca.ProtoRef social_indicator = 6;
* @return Whether the socialIndicator field is set.
*/
public boolean hasSocialIndicator() {
return socialIndicatorBuilder_ != null || socialIndicator_ != null;
}
/**
* .protolca.ProtoRef social_indicator = 6;
* @return The socialIndicator.
*/
public org.openlca.proto.ProtoRef getSocialIndicator() {
if (socialIndicatorBuilder_ == null) {
return socialIndicator_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : socialIndicator_;
} else {
return socialIndicatorBuilder_.getMessage();
}
}
/**
* .protolca.ProtoRef social_indicator = 6;
*/
public Builder setSocialIndicator(org.openlca.proto.ProtoRef value) {
if (socialIndicatorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
socialIndicator_ = value;
onChanged();
} else {
socialIndicatorBuilder_.setMessage(value);
}
return this;
}
/**
* .protolca.ProtoRef social_indicator = 6;
*/
public Builder setSocialIndicator(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (socialIndicatorBuilder_ == null) {
socialIndicator_ = builderForValue.build();
onChanged();
} else {
socialIndicatorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .protolca.ProtoRef social_indicator = 6;
*/
public Builder mergeSocialIndicator(org.openlca.proto.ProtoRef value) {
if (socialIndicatorBuilder_ == null) {
if (socialIndicator_ != null) {
socialIndicator_ =
org.openlca.proto.ProtoRef.newBuilder(socialIndicator_).mergeFrom(value).buildPartial();
} else {
socialIndicator_ = value;
}
onChanged();
} else {
socialIndicatorBuilder_.mergeFrom(value);
}
return this;
}
/**
* .protolca.ProtoRef social_indicator = 6;
*/
public Builder clearSocialIndicator() {
if (socialIndicatorBuilder_ == null) {
socialIndicator_ = null;
onChanged();
} else {
socialIndicator_ = null;
socialIndicatorBuilder_ = null;
}
return this;
}
/**
* .protolca.ProtoRef social_indicator = 6;
*/
public org.openlca.proto.ProtoRef.Builder getSocialIndicatorBuilder() {
onChanged();
return getSocialIndicatorFieldBuilder().getBuilder();
}
/**
* .protolca.ProtoRef social_indicator = 6;
*/
public org.openlca.proto.ProtoRefOrBuilder getSocialIndicatorOrBuilder() {
if (socialIndicatorBuilder_ != null) {
return socialIndicatorBuilder_.getMessageOrBuilder();
} else {
return socialIndicator_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : socialIndicator_;
}
}
/**
* .protolca.ProtoRef social_indicator = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getSocialIndicatorFieldBuilder() {
if (socialIndicatorBuilder_ == null) {
socialIndicatorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getSocialIndicator(),
getParentForChildren(),
isClean());
socialIndicator_ = null;
}
return socialIndicatorBuilder_;
}
private org.openlca.proto.ProtoRef source_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> sourceBuilder_;
/**
* .protolca.ProtoRef source = 7;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return sourceBuilder_ != null || source_ != null;
}
/**
* .protolca.ProtoRef source = 7;
* @return The source.
*/
public org.openlca.proto.ProtoRef getSource() {
if (sourceBuilder_ == null) {
return source_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : source_;
} else {
return sourceBuilder_.getMessage();
}
}
/**
* .protolca.ProtoRef source = 7;
*/
public Builder setSource(org.openlca.proto.ProtoRef value) {
if (sourceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
source_ = value;
onChanged();
} else {
sourceBuilder_.setMessage(value);
}
return this;
}
/**
* .protolca.ProtoRef source = 7;
*/
public Builder setSource(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (sourceBuilder_ == null) {
source_ = builderForValue.build();
onChanged();
} else {
sourceBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .protolca.ProtoRef source = 7;
*/
public Builder mergeSource(org.openlca.proto.ProtoRef value) {
if (sourceBuilder_ == null) {
if (source_ != null) {
source_ =
org.openlca.proto.ProtoRef.newBuilder(source_).mergeFrom(value).buildPartial();
} else {
source_ = value;
}
onChanged();
} else {
sourceBuilder_.mergeFrom(value);
}
return this;
}
/**
* .protolca.ProtoRef source = 7;
*/
public Builder clearSource() {
if (sourceBuilder_ == null) {
source_ = null;
onChanged();
} else {
source_ = null;
sourceBuilder_ = null;
}
return this;
}
/**
* .protolca.ProtoRef source = 7;
*/
public org.openlca.proto.ProtoRef.Builder getSourceBuilder() {
onChanged();
return getSourceFieldBuilder().getBuilder();
}
/**
* .protolca.ProtoRef source = 7;
*/
public org.openlca.proto.ProtoRefOrBuilder getSourceOrBuilder() {
if (sourceBuilder_ != null) {
return sourceBuilder_.getMessageOrBuilder();
} else {
return source_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : source_;
}
}
/**
* .protolca.ProtoRef source = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getSourceFieldBuilder() {
if (sourceBuilder_ == null) {
sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getSource(),
getParentForChildren(),
isClean());
source_ = null;
}
return sourceBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:protolca.ProtoSocialAspect)
}
// @@protoc_insertion_point(class_scope:protolca.ProtoSocialAspect)
private static final org.openlca.proto.ProtoSocialAspect DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openlca.proto.ProtoSocialAspect();
}
public static org.openlca.proto.ProtoSocialAspect getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProtoSocialAspect parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoSocialAspect(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.openlca.proto.ProtoSocialAspect getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy