org.openlca.proto.ProtoSimpleResult Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: olca.proto
package org.openlca.proto;
/**
* Protobuf type {@code protolca.ProtoSimpleResult}
*/
public final class ProtoSimpleResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protolca.ProtoSimpleResult)
ProtoSimpleResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProtoSimpleResult.newBuilder() to construct.
private ProtoSimpleResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtoSimpleResult() {
flowResults_ = java.util.Collections.emptyList();
impactResults_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProtoSimpleResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoSimpleResult(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
flowResults_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
flowResults_.add(
input.readMessage(org.openlca.proto.ProtoFlowResult.parser(), extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
impactResults_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
impactResults_.add(
input.readMessage(org.openlca.proto.ProtoImpactResult.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
flowResults_ = java.util.Collections.unmodifiableList(flowResults_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
impactResults_ = java.util.Collections.unmodifiableList(impactResults_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSimpleResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSimpleResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoSimpleResult.class, org.openlca.proto.ProtoSimpleResult.Builder.class);
}
public static final int FLOW_RESULTS_FIELD_NUMBER = 1;
private java.util.List flowResults_;
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
@java.lang.Override
public java.util.List getFlowResultsList() {
return flowResults_;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
@java.lang.Override
public java.util.List extends org.openlca.proto.ProtoFlowResultOrBuilder>
getFlowResultsOrBuilderList() {
return flowResults_;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
@java.lang.Override
public int getFlowResultsCount() {
return flowResults_.size();
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
@java.lang.Override
public org.openlca.proto.ProtoFlowResult getFlowResults(int index) {
return flowResults_.get(index);
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
@java.lang.Override
public org.openlca.proto.ProtoFlowResultOrBuilder getFlowResultsOrBuilder(
int index) {
return flowResults_.get(index);
}
public static final int IMPACT_RESULTS_FIELD_NUMBER = 2;
private java.util.List impactResults_;
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
@java.lang.Override
public java.util.List getImpactResultsList() {
return impactResults_;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
@java.lang.Override
public java.util.List extends org.openlca.proto.ProtoImpactResultOrBuilder>
getImpactResultsOrBuilderList() {
return impactResults_;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
@java.lang.Override
public int getImpactResultsCount() {
return impactResults_.size();
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
@java.lang.Override
public org.openlca.proto.ProtoImpactResult getImpactResults(int index) {
return impactResults_.get(index);
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
@java.lang.Override
public org.openlca.proto.ProtoImpactResultOrBuilder getImpactResultsOrBuilder(
int index) {
return impactResults_.get(index);
}
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 {
for (int i = 0; i < flowResults_.size(); i++) {
output.writeMessage(1, flowResults_.get(i));
}
for (int i = 0; i < impactResults_.size(); i++) {
output.writeMessage(2, impactResults_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < flowResults_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, flowResults_.get(i));
}
for (int i = 0; i < impactResults_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, impactResults_.get(i));
}
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.ProtoSimpleResult)) {
return super.equals(obj);
}
org.openlca.proto.ProtoSimpleResult other = (org.openlca.proto.ProtoSimpleResult) obj;
if (!getFlowResultsList()
.equals(other.getFlowResultsList())) return false;
if (!getImpactResultsList()
.equals(other.getImpactResultsList())) 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();
if (getFlowResultsCount() > 0) {
hash = (37 * hash) + FLOW_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getFlowResultsList().hashCode();
}
if (getImpactResultsCount() > 0) {
hash = (37 * hash) + IMPACT_RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getImpactResultsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openlca.proto.ProtoSimpleResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoSimpleResult 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.ProtoSimpleResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoSimpleResult 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.ProtoSimpleResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoSimpleResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoSimpleResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoSimpleResult 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.ProtoSimpleResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoSimpleResult 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.ProtoSimpleResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoSimpleResult 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.ProtoSimpleResult prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code protolca.ProtoSimpleResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protolca.ProtoSimpleResult)
org.openlca.proto.ProtoSimpleResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSimpleResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSimpleResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoSimpleResult.class, org.openlca.proto.ProtoSimpleResult.Builder.class);
}
// Construct using org.openlca.proto.ProtoSimpleResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFlowResultsFieldBuilder();
getImpactResultsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (flowResultsBuilder_ == null) {
flowResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
flowResultsBuilder_.clear();
}
if (impactResultsBuilder_ == null) {
impactResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
impactResultsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoSimpleResult_descriptor;
}
@java.lang.Override
public org.openlca.proto.ProtoSimpleResult getDefaultInstanceForType() {
return org.openlca.proto.ProtoSimpleResult.getDefaultInstance();
}
@java.lang.Override
public org.openlca.proto.ProtoSimpleResult build() {
org.openlca.proto.ProtoSimpleResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openlca.proto.ProtoSimpleResult buildPartial() {
org.openlca.proto.ProtoSimpleResult result = new org.openlca.proto.ProtoSimpleResult(this);
int from_bitField0_ = bitField0_;
if (flowResultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
flowResults_ = java.util.Collections.unmodifiableList(flowResults_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.flowResults_ = flowResults_;
} else {
result.flowResults_ = flowResultsBuilder_.build();
}
if (impactResultsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
impactResults_ = java.util.Collections.unmodifiableList(impactResults_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.impactResults_ = impactResults_;
} else {
result.impactResults_ = impactResultsBuilder_.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.ProtoSimpleResult) {
return mergeFrom((org.openlca.proto.ProtoSimpleResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openlca.proto.ProtoSimpleResult other) {
if (other == org.openlca.proto.ProtoSimpleResult.getDefaultInstance()) return this;
if (flowResultsBuilder_ == null) {
if (!other.flowResults_.isEmpty()) {
if (flowResults_.isEmpty()) {
flowResults_ = other.flowResults_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureFlowResultsIsMutable();
flowResults_.addAll(other.flowResults_);
}
onChanged();
}
} else {
if (!other.flowResults_.isEmpty()) {
if (flowResultsBuilder_.isEmpty()) {
flowResultsBuilder_.dispose();
flowResultsBuilder_ = null;
flowResults_ = other.flowResults_;
bitField0_ = (bitField0_ & ~0x00000001);
flowResultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFlowResultsFieldBuilder() : null;
} else {
flowResultsBuilder_.addAllMessages(other.flowResults_);
}
}
}
if (impactResultsBuilder_ == null) {
if (!other.impactResults_.isEmpty()) {
if (impactResults_.isEmpty()) {
impactResults_ = other.impactResults_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureImpactResultsIsMutable();
impactResults_.addAll(other.impactResults_);
}
onChanged();
}
} else {
if (!other.impactResults_.isEmpty()) {
if (impactResultsBuilder_.isEmpty()) {
impactResultsBuilder_.dispose();
impactResultsBuilder_ = null;
impactResults_ = other.impactResults_;
bitField0_ = (bitField0_ & ~0x00000002);
impactResultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getImpactResultsFieldBuilder() : null;
} else {
impactResultsBuilder_.addAllMessages(other.impactResults_);
}
}
}
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.ProtoSimpleResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openlca.proto.ProtoSimpleResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List flowResults_ =
java.util.Collections.emptyList();
private void ensureFlowResultsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
flowResults_ = new java.util.ArrayList(flowResults_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoFlowResult, org.openlca.proto.ProtoFlowResult.Builder, org.openlca.proto.ProtoFlowResultOrBuilder> flowResultsBuilder_;
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public java.util.List getFlowResultsList() {
if (flowResultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(flowResults_);
} else {
return flowResultsBuilder_.getMessageList();
}
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public int getFlowResultsCount() {
if (flowResultsBuilder_ == null) {
return flowResults_.size();
} else {
return flowResultsBuilder_.getCount();
}
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public org.openlca.proto.ProtoFlowResult getFlowResults(int index) {
if (flowResultsBuilder_ == null) {
return flowResults_.get(index);
} else {
return flowResultsBuilder_.getMessage(index);
}
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder setFlowResults(
int index, org.openlca.proto.ProtoFlowResult value) {
if (flowResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFlowResultsIsMutable();
flowResults_.set(index, value);
onChanged();
} else {
flowResultsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder setFlowResults(
int index, org.openlca.proto.ProtoFlowResult.Builder builderForValue) {
if (flowResultsBuilder_ == null) {
ensureFlowResultsIsMutable();
flowResults_.set(index, builderForValue.build());
onChanged();
} else {
flowResultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder addFlowResults(org.openlca.proto.ProtoFlowResult value) {
if (flowResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFlowResultsIsMutable();
flowResults_.add(value);
onChanged();
} else {
flowResultsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder addFlowResults(
int index, org.openlca.proto.ProtoFlowResult value) {
if (flowResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFlowResultsIsMutable();
flowResults_.add(index, value);
onChanged();
} else {
flowResultsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder addFlowResults(
org.openlca.proto.ProtoFlowResult.Builder builderForValue) {
if (flowResultsBuilder_ == null) {
ensureFlowResultsIsMutable();
flowResults_.add(builderForValue.build());
onChanged();
} else {
flowResultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder addFlowResults(
int index, org.openlca.proto.ProtoFlowResult.Builder builderForValue) {
if (flowResultsBuilder_ == null) {
ensureFlowResultsIsMutable();
flowResults_.add(index, builderForValue.build());
onChanged();
} else {
flowResultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder addAllFlowResults(
java.lang.Iterable extends org.openlca.proto.ProtoFlowResult> values) {
if (flowResultsBuilder_ == null) {
ensureFlowResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, flowResults_);
onChanged();
} else {
flowResultsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder clearFlowResults() {
if (flowResultsBuilder_ == null) {
flowResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
flowResultsBuilder_.clear();
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public Builder removeFlowResults(int index) {
if (flowResultsBuilder_ == null) {
ensureFlowResultsIsMutable();
flowResults_.remove(index);
onChanged();
} else {
flowResultsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public org.openlca.proto.ProtoFlowResult.Builder getFlowResultsBuilder(
int index) {
return getFlowResultsFieldBuilder().getBuilder(index);
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public org.openlca.proto.ProtoFlowResultOrBuilder getFlowResultsOrBuilder(
int index) {
if (flowResultsBuilder_ == null) {
return flowResults_.get(index); } else {
return flowResultsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public java.util.List extends org.openlca.proto.ProtoFlowResultOrBuilder>
getFlowResultsOrBuilderList() {
if (flowResultsBuilder_ != null) {
return flowResultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(flowResults_);
}
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public org.openlca.proto.ProtoFlowResult.Builder addFlowResultsBuilder() {
return getFlowResultsFieldBuilder().addBuilder(
org.openlca.proto.ProtoFlowResult.getDefaultInstance());
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public org.openlca.proto.ProtoFlowResult.Builder addFlowResultsBuilder(
int index) {
return getFlowResultsFieldBuilder().addBuilder(
index, org.openlca.proto.ProtoFlowResult.getDefaultInstance());
}
/**
* repeated .protolca.ProtoFlowResult flow_results = 1;
*/
public java.util.List
getFlowResultsBuilderList() {
return getFlowResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoFlowResult, org.openlca.proto.ProtoFlowResult.Builder, org.openlca.proto.ProtoFlowResultOrBuilder>
getFlowResultsFieldBuilder() {
if (flowResultsBuilder_ == null) {
flowResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoFlowResult, org.openlca.proto.ProtoFlowResult.Builder, org.openlca.proto.ProtoFlowResultOrBuilder>(
flowResults_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
flowResults_ = null;
}
return flowResultsBuilder_;
}
private java.util.List impactResults_ =
java.util.Collections.emptyList();
private void ensureImpactResultsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
impactResults_ = new java.util.ArrayList(impactResults_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoImpactResult, org.openlca.proto.ProtoImpactResult.Builder, org.openlca.proto.ProtoImpactResultOrBuilder> impactResultsBuilder_;
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public java.util.List getImpactResultsList() {
if (impactResultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(impactResults_);
} else {
return impactResultsBuilder_.getMessageList();
}
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public int getImpactResultsCount() {
if (impactResultsBuilder_ == null) {
return impactResults_.size();
} else {
return impactResultsBuilder_.getCount();
}
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public org.openlca.proto.ProtoImpactResult getImpactResults(int index) {
if (impactResultsBuilder_ == null) {
return impactResults_.get(index);
} else {
return impactResultsBuilder_.getMessage(index);
}
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder setImpactResults(
int index, org.openlca.proto.ProtoImpactResult value) {
if (impactResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactResultsIsMutable();
impactResults_.set(index, value);
onChanged();
} else {
impactResultsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder setImpactResults(
int index, org.openlca.proto.ProtoImpactResult.Builder builderForValue) {
if (impactResultsBuilder_ == null) {
ensureImpactResultsIsMutable();
impactResults_.set(index, builderForValue.build());
onChanged();
} else {
impactResultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder addImpactResults(org.openlca.proto.ProtoImpactResult value) {
if (impactResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactResultsIsMutable();
impactResults_.add(value);
onChanged();
} else {
impactResultsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder addImpactResults(
int index, org.openlca.proto.ProtoImpactResult value) {
if (impactResultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureImpactResultsIsMutable();
impactResults_.add(index, value);
onChanged();
} else {
impactResultsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder addImpactResults(
org.openlca.proto.ProtoImpactResult.Builder builderForValue) {
if (impactResultsBuilder_ == null) {
ensureImpactResultsIsMutable();
impactResults_.add(builderForValue.build());
onChanged();
} else {
impactResultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder addImpactResults(
int index, org.openlca.proto.ProtoImpactResult.Builder builderForValue) {
if (impactResultsBuilder_ == null) {
ensureImpactResultsIsMutable();
impactResults_.add(index, builderForValue.build());
onChanged();
} else {
impactResultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder addAllImpactResults(
java.lang.Iterable extends org.openlca.proto.ProtoImpactResult> values) {
if (impactResultsBuilder_ == null) {
ensureImpactResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, impactResults_);
onChanged();
} else {
impactResultsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder clearImpactResults() {
if (impactResultsBuilder_ == null) {
impactResults_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
impactResultsBuilder_.clear();
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public Builder removeImpactResults(int index) {
if (impactResultsBuilder_ == null) {
ensureImpactResultsIsMutable();
impactResults_.remove(index);
onChanged();
} else {
impactResultsBuilder_.remove(index);
}
return this;
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public org.openlca.proto.ProtoImpactResult.Builder getImpactResultsBuilder(
int index) {
return getImpactResultsFieldBuilder().getBuilder(index);
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public org.openlca.proto.ProtoImpactResultOrBuilder getImpactResultsOrBuilder(
int index) {
if (impactResultsBuilder_ == null) {
return impactResults_.get(index); } else {
return impactResultsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public java.util.List extends org.openlca.proto.ProtoImpactResultOrBuilder>
getImpactResultsOrBuilderList() {
if (impactResultsBuilder_ != null) {
return impactResultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(impactResults_);
}
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public org.openlca.proto.ProtoImpactResult.Builder addImpactResultsBuilder() {
return getImpactResultsFieldBuilder().addBuilder(
org.openlca.proto.ProtoImpactResult.getDefaultInstance());
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public org.openlca.proto.ProtoImpactResult.Builder addImpactResultsBuilder(
int index) {
return getImpactResultsFieldBuilder().addBuilder(
index, org.openlca.proto.ProtoImpactResult.getDefaultInstance());
}
/**
* repeated .protolca.ProtoImpactResult impact_results = 2;
*/
public java.util.List
getImpactResultsBuilderList() {
return getImpactResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoImpactResult, org.openlca.proto.ProtoImpactResult.Builder, org.openlca.proto.ProtoImpactResultOrBuilder>
getImpactResultsFieldBuilder() {
if (impactResultsBuilder_ == null) {
impactResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.openlca.proto.ProtoImpactResult, org.openlca.proto.ProtoImpactResult.Builder, org.openlca.proto.ProtoImpactResultOrBuilder>(
impactResults_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
impactResults_ = null;
}
return impactResultsBuilder_;
}
@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.ProtoSimpleResult)
}
// @@protoc_insertion_point(class_scope:protolca.ProtoSimpleResult)
private static final org.openlca.proto.ProtoSimpleResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openlca.proto.ProtoSimpleResult();
}
public static org.openlca.proto.ProtoSimpleResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProtoSimpleResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoSimpleResult(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.ProtoSimpleResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy