org.openlca.proto.ProtoProcessLink Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: olca.proto
package org.openlca.proto;
/**
*
* A process link is a connection between two processes in a product system.
*
*
* Protobuf type {@code protolca.ProtoProcessLink}
*/
public final class ProtoProcessLink extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:protolca.ProtoProcessLink)
ProtoProcessLinkOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProtoProcessLink.newBuilder() to construct.
private ProtoProcessLink(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProtoProcessLink() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProtoProcessLink();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProtoProcessLink(
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 10: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (provider_ != null) {
subBuilder = provider_.toBuilder();
}
provider_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(provider_);
provider_ = subBuilder.buildPartial();
}
break;
}
case 18: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (flow_ != null) {
subBuilder = flow_.toBuilder();
}
flow_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(flow_);
flow_ = subBuilder.buildPartial();
}
break;
}
case 26: {
org.openlca.proto.ProtoRef.Builder subBuilder = null;
if (process_ != null) {
subBuilder = process_.toBuilder();
}
process_ = input.readMessage(org.openlca.proto.ProtoRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(process_);
process_ = subBuilder.buildPartial();
}
break;
}
case 34: {
org.openlca.proto.ProtoExchangeRef.Builder subBuilder = null;
if (exchange_ != null) {
subBuilder = exchange_.toBuilder();
}
exchange_ = input.readMessage(org.openlca.proto.ProtoExchangeRef.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(exchange_);
exchange_ = 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_ProtoProcessLink_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcessLink_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoProcessLink.class, org.openlca.proto.ProtoProcessLink.Builder.class);
}
public static final int PROVIDER_FIELD_NUMBER = 1;
private org.openlca.proto.ProtoRef provider_;
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
* @return Whether the provider field is set.
*/
@java.lang.Override
public boolean hasProvider() {
return provider_ != null;
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
* @return The provider.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getProvider() {
return provider_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : provider_;
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getProviderOrBuilder() {
return getProvider();
}
public static final int FLOW_FIELD_NUMBER = 2;
private org.openlca.proto.ProtoRef flow_;
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
* @return Whether the flow field is set.
*/
@java.lang.Override
public boolean hasFlow() {
return flow_ != null;
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
* @return The flow.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getFlow() {
return flow_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flow_;
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getFlowOrBuilder() {
return getFlow();
}
public static final int PROCESS_FIELD_NUMBER = 3;
private org.openlca.proto.ProtoRef process_;
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
* @return Whether the process field is set.
*/
@java.lang.Override
public boolean hasProcess() {
return process_ != null;
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
* @return The process.
*/
@java.lang.Override
public org.openlca.proto.ProtoRef getProcess() {
return process_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : process_;
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
*/
@java.lang.Override
public org.openlca.proto.ProtoRefOrBuilder getProcessOrBuilder() {
return getProcess();
}
public static final int EXCHANGE_FIELD_NUMBER = 4;
private org.openlca.proto.ProtoExchangeRef exchange_;
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
* @return Whether the exchange field is set.
*/
@java.lang.Override
public boolean hasExchange() {
return exchange_ != null;
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
* @return The exchange.
*/
@java.lang.Override
public org.openlca.proto.ProtoExchangeRef getExchange() {
return exchange_ == null ? org.openlca.proto.ProtoExchangeRef.getDefaultInstance() : exchange_;
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
*/
@java.lang.Override
public org.openlca.proto.ProtoExchangeRefOrBuilder getExchangeOrBuilder() {
return getExchange();
}
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 (provider_ != null) {
output.writeMessage(1, getProvider());
}
if (flow_ != null) {
output.writeMessage(2, getFlow());
}
if (process_ != null) {
output.writeMessage(3, getProcess());
}
if (exchange_ != null) {
output.writeMessage(4, getExchange());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (provider_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getProvider());
}
if (flow_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getFlow());
}
if (process_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getProcess());
}
if (exchange_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getExchange());
}
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.ProtoProcessLink)) {
return super.equals(obj);
}
org.openlca.proto.ProtoProcessLink other = (org.openlca.proto.ProtoProcessLink) obj;
if (hasProvider() != other.hasProvider()) return false;
if (hasProvider()) {
if (!getProvider()
.equals(other.getProvider())) return false;
}
if (hasFlow() != other.hasFlow()) return false;
if (hasFlow()) {
if (!getFlow()
.equals(other.getFlow())) return false;
}
if (hasProcess() != other.hasProcess()) return false;
if (hasProcess()) {
if (!getProcess()
.equals(other.getProcess())) return false;
}
if (hasExchange() != other.hasExchange()) return false;
if (hasExchange()) {
if (!getExchange()
.equals(other.getExchange())) 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 (hasProvider()) {
hash = (37 * hash) + PROVIDER_FIELD_NUMBER;
hash = (53 * hash) + getProvider().hashCode();
}
if (hasFlow()) {
hash = (37 * hash) + FLOW_FIELD_NUMBER;
hash = (53 * hash) + getFlow().hashCode();
}
if (hasProcess()) {
hash = (37 * hash) + PROCESS_FIELD_NUMBER;
hash = (53 * hash) + getProcess().hashCode();
}
if (hasExchange()) {
hash = (37 * hash) + EXCHANGE_FIELD_NUMBER;
hash = (53 * hash) + getExchange().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.openlca.proto.ProtoProcessLink parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoProcessLink 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.ProtoProcessLink parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoProcessLink 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.ProtoProcessLink parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.openlca.proto.ProtoProcessLink parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.openlca.proto.ProtoProcessLink parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoProcessLink 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.ProtoProcessLink parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoProcessLink 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.ProtoProcessLink parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.openlca.proto.ProtoProcessLink 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.ProtoProcessLink 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;
}
/**
*
* A process link is a connection between two processes in a product system.
*
*
* Protobuf type {@code protolca.ProtoProcessLink}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:protolca.ProtoProcessLink)
org.openlca.proto.ProtoProcessLinkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcessLink_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcessLink_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.openlca.proto.ProtoProcessLink.class, org.openlca.proto.ProtoProcessLink.Builder.class);
}
// Construct using org.openlca.proto.ProtoProcessLink.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();
if (providerBuilder_ == null) {
provider_ = null;
} else {
provider_ = null;
providerBuilder_ = null;
}
if (flowBuilder_ == null) {
flow_ = null;
} else {
flow_ = null;
flowBuilder_ = null;
}
if (processBuilder_ == null) {
process_ = null;
} else {
process_ = null;
processBuilder_ = null;
}
if (exchangeBuilder_ == null) {
exchange_ = null;
} else {
exchange_ = null;
exchangeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.openlca.proto.Proto.internal_static_protolca_ProtoProcessLink_descriptor;
}
@java.lang.Override
public org.openlca.proto.ProtoProcessLink getDefaultInstanceForType() {
return org.openlca.proto.ProtoProcessLink.getDefaultInstance();
}
@java.lang.Override
public org.openlca.proto.ProtoProcessLink build() {
org.openlca.proto.ProtoProcessLink result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.openlca.proto.ProtoProcessLink buildPartial() {
org.openlca.proto.ProtoProcessLink result = new org.openlca.proto.ProtoProcessLink(this);
if (providerBuilder_ == null) {
result.provider_ = provider_;
} else {
result.provider_ = providerBuilder_.build();
}
if (flowBuilder_ == null) {
result.flow_ = flow_;
} else {
result.flow_ = flowBuilder_.build();
}
if (processBuilder_ == null) {
result.process_ = process_;
} else {
result.process_ = processBuilder_.build();
}
if (exchangeBuilder_ == null) {
result.exchange_ = exchange_;
} else {
result.exchange_ = exchangeBuilder_.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.ProtoProcessLink) {
return mergeFrom((org.openlca.proto.ProtoProcessLink)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.openlca.proto.ProtoProcessLink other) {
if (other == org.openlca.proto.ProtoProcessLink.getDefaultInstance()) return this;
if (other.hasProvider()) {
mergeProvider(other.getProvider());
}
if (other.hasFlow()) {
mergeFlow(other.getFlow());
}
if (other.hasProcess()) {
mergeProcess(other.getProcess());
}
if (other.hasExchange()) {
mergeExchange(other.getExchange());
}
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.ProtoProcessLink parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.openlca.proto.ProtoProcessLink) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private org.openlca.proto.ProtoRef provider_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> providerBuilder_;
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
* @return Whether the provider field is set.
*/
public boolean hasProvider() {
return providerBuilder_ != null || provider_ != null;
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
* @return The provider.
*/
public org.openlca.proto.ProtoRef getProvider() {
if (providerBuilder_ == null) {
return provider_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : provider_;
} else {
return providerBuilder_.getMessage();
}
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
*/
public Builder setProvider(org.openlca.proto.ProtoRef value) {
if (providerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
provider_ = value;
onChanged();
} else {
providerBuilder_.setMessage(value);
}
return this;
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
*/
public Builder setProvider(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (providerBuilder_ == null) {
provider_ = builderForValue.build();
onChanged();
} else {
providerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
*/
public Builder mergeProvider(org.openlca.proto.ProtoRef value) {
if (providerBuilder_ == null) {
if (provider_ != null) {
provider_ =
org.openlca.proto.ProtoRef.newBuilder(provider_).mergeFrom(value).buildPartial();
} else {
provider_ = value;
}
onChanged();
} else {
providerBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
*/
public Builder clearProvider() {
if (providerBuilder_ == null) {
provider_ = null;
onChanged();
} else {
provider_ = null;
providerBuilder_ = null;
}
return this;
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
*/
public org.openlca.proto.ProtoRef.Builder getProviderBuilder() {
onChanged();
return getProviderFieldBuilder().getBuilder();
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
*/
public org.openlca.proto.ProtoRefOrBuilder getProviderOrBuilder() {
if (providerBuilder_ != null) {
return providerBuilder_.getMessageOrBuilder();
} else {
return provider_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : provider_;
}
}
/**
*
* The descriptor of the process or product system that provides a product or
* a waste treatment.
*
*
* .protolca.ProtoRef provider = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getProviderFieldBuilder() {
if (providerBuilder_ == null) {
providerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getProvider(),
getParentForChildren(),
isClean());
provider_ = null;
}
return providerBuilder_;
}
private org.openlca.proto.ProtoRef flow_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> flowBuilder_;
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
* @return Whether the flow field is set.
*/
public boolean hasFlow() {
return flowBuilder_ != null || flow_ != null;
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
* @return The flow.
*/
public org.openlca.proto.ProtoRef getFlow() {
if (flowBuilder_ == null) {
return flow_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : flow_;
} else {
return flowBuilder_.getMessage();
}
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
*/
public Builder setFlow(org.openlca.proto.ProtoRef value) {
if (flowBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
flow_ = value;
onChanged();
} else {
flowBuilder_.setMessage(value);
}
return this;
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
*/
public Builder setFlow(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (flowBuilder_ == null) {
flow_ = builderForValue.build();
onChanged();
} else {
flowBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
*/
public Builder mergeFlow(org.openlca.proto.ProtoRef value) {
if (flowBuilder_ == null) {
if (flow_ != null) {
flow_ =
org.openlca.proto.ProtoRef.newBuilder(flow_).mergeFrom(value).buildPartial();
} else {
flow_ = value;
}
onChanged();
} else {
flowBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
*/
public Builder clearFlow() {
if (flowBuilder_ == null) {
flow_ = null;
onChanged();
} else {
flow_ = null;
flowBuilder_ = null;
}
return this;
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
*/
public org.openlca.proto.ProtoRef.Builder getFlowBuilder() {
onChanged();
return getFlowFieldBuilder().getBuilder();
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
*/
public org.openlca.proto.ProtoRefOrBuilder getFlowOrBuilder() {
if (flowBuilder_ != null) {
return flowBuilder_.getMessageOrBuilder();
} else {
return flow_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : flow_;
}
}
/**
*
* The descriptor of the flow that is exchanged between the two processes.
*
*
* .protolca.ProtoRef flow = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getFlowFieldBuilder() {
if (flowBuilder_ == null) {
flowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getFlow(),
getParentForChildren(),
isClean());
flow_ = null;
}
return flowBuilder_;
}
private org.openlca.proto.ProtoRef process_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder> processBuilder_;
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
* @return Whether the process field is set.
*/
public boolean hasProcess() {
return processBuilder_ != null || process_ != null;
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
* @return The process.
*/
public org.openlca.proto.ProtoRef getProcess() {
if (processBuilder_ == null) {
return process_ == null ? org.openlca.proto.ProtoRef.getDefaultInstance() : process_;
} else {
return processBuilder_.getMessage();
}
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
*/
public Builder setProcess(org.openlca.proto.ProtoRef value) {
if (processBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
process_ = value;
onChanged();
} else {
processBuilder_.setMessage(value);
}
return this;
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
*/
public Builder setProcess(
org.openlca.proto.ProtoRef.Builder builderForValue) {
if (processBuilder_ == null) {
process_ = builderForValue.build();
onChanged();
} else {
processBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
*/
public Builder mergeProcess(org.openlca.proto.ProtoRef value) {
if (processBuilder_ == null) {
if (process_ != null) {
process_ =
org.openlca.proto.ProtoRef.newBuilder(process_).mergeFrom(value).buildPartial();
} else {
process_ = value;
}
onChanged();
} else {
processBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
*/
public Builder clearProcess() {
if (processBuilder_ == null) {
process_ = null;
onChanged();
} else {
process_ = null;
processBuilder_ = null;
}
return this;
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
*/
public org.openlca.proto.ProtoRef.Builder getProcessBuilder() {
onChanged();
return getProcessFieldBuilder().getBuilder();
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
*/
public org.openlca.proto.ProtoRefOrBuilder getProcessOrBuilder() {
if (processBuilder_ != null) {
return processBuilder_.getMessageOrBuilder();
} else {
return process_ == null ?
org.openlca.proto.ProtoRef.getDefaultInstance() : process_;
}
}
/**
*
* The descriptor of the process that is linked to the provider.
*
*
* .protolca.ProtoRef process = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>
getProcessFieldBuilder() {
if (processBuilder_ == null) {
processBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoRef, org.openlca.proto.ProtoRef.Builder, org.openlca.proto.ProtoRefOrBuilder>(
getProcess(),
getParentForChildren(),
isClean());
process_ = null;
}
return processBuilder_;
}
private org.openlca.proto.ProtoExchangeRef exchange_;
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoExchangeRef, org.openlca.proto.ProtoExchangeRef.Builder, org.openlca.proto.ProtoExchangeRefOrBuilder> exchangeBuilder_;
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
* @return Whether the exchange field is set.
*/
public boolean hasExchange() {
return exchangeBuilder_ != null || exchange_ != null;
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
* @return The exchange.
*/
public org.openlca.proto.ProtoExchangeRef getExchange() {
if (exchangeBuilder_ == null) {
return exchange_ == null ? org.openlca.proto.ProtoExchangeRef.getDefaultInstance() : exchange_;
} else {
return exchangeBuilder_.getMessage();
}
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
*/
public Builder setExchange(org.openlca.proto.ProtoExchangeRef value) {
if (exchangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
exchange_ = value;
onChanged();
} else {
exchangeBuilder_.setMessage(value);
}
return this;
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
*/
public Builder setExchange(
org.openlca.proto.ProtoExchangeRef.Builder builderForValue) {
if (exchangeBuilder_ == null) {
exchange_ = builderForValue.build();
onChanged();
} else {
exchangeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
*/
public Builder mergeExchange(org.openlca.proto.ProtoExchangeRef value) {
if (exchangeBuilder_ == null) {
if (exchange_ != null) {
exchange_ =
org.openlca.proto.ProtoExchangeRef.newBuilder(exchange_).mergeFrom(value).buildPartial();
} else {
exchange_ = value;
}
onChanged();
} else {
exchangeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
*/
public Builder clearExchange() {
if (exchangeBuilder_ == null) {
exchange_ = null;
onChanged();
} else {
exchange_ = null;
exchangeBuilder_ = null;
}
return this;
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
*/
public org.openlca.proto.ProtoExchangeRef.Builder getExchangeBuilder() {
onChanged();
return getExchangeFieldBuilder().getBuilder();
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
*/
public org.openlca.proto.ProtoExchangeRefOrBuilder getExchangeOrBuilder() {
if (exchangeBuilder_ != null) {
return exchangeBuilder_.getMessageOrBuilder();
} else {
return exchange_ == null ?
org.openlca.proto.ProtoExchangeRef.getDefaultInstance() : exchange_;
}
}
/**
*
* The exchange of the linked process (this is useful if the linked process
* has multiple exchanges with the same flow that are linked to different
* provides, e.g. in an electricity mix).
*
*
* .protolca.ProtoExchangeRef exchange = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoExchangeRef, org.openlca.proto.ProtoExchangeRef.Builder, org.openlca.proto.ProtoExchangeRefOrBuilder>
getExchangeFieldBuilder() {
if (exchangeBuilder_ == null) {
exchangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.openlca.proto.ProtoExchangeRef, org.openlca.proto.ProtoExchangeRef.Builder, org.openlca.proto.ProtoExchangeRefOrBuilder>(
getExchange(),
getParentForChildren(),
isClean());
exchange_ = null;
}
return exchangeBuilder_;
}
@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.ProtoProcessLink)
}
// @@protoc_insertion_point(class_scope:protolca.ProtoProcessLink)
private static final org.openlca.proto.ProtoProcessLink DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.openlca.proto.ProtoProcessLink();
}
public static org.openlca.proto.ProtoProcessLink getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProtoProcessLink parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProtoProcessLink(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.ProtoProcessLink getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy