ai.promoted.proto.delivery.HyperloopExpression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deliveryclient Show documentation
Show all versions of deliveryclient Show documentation
A Java Client to contact the Promoted.ai Delivery API.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: proto/delivery/blender.proto
package ai.promoted.proto.delivery;
/**
* Protobuf type {@code delivery.HyperloopExpression}
*/
public final class HyperloopExpression extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:delivery.HyperloopExpression)
HyperloopExpressionOrBuilder {
private static final long serialVersionUID = 0L;
// Use HyperloopExpression.newBuilder() to construct.
private HyperloopExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HyperloopExpression() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HyperloopExpression();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HyperloopExpression(
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: {
ai.promoted.proto.delivery.LeafExpression.Builder subBuilder = null;
if (nodeTypeCase_ == 1) {
subBuilder = ((ai.promoted.proto.delivery.LeafExpression) nodeType_).toBuilder();
}
nodeType_ =
input.readMessage(ai.promoted.proto.delivery.LeafExpression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.promoted.proto.delivery.LeafExpression) nodeType_);
nodeType_ = subBuilder.buildPartial();
}
nodeTypeCase_ = 1;
break;
}
case 18: {
ai.promoted.proto.delivery.HyperloopGeneratorExpression.Builder subBuilder = null;
if (nodeTypeCase_ == 2) {
subBuilder = ((ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_).toBuilder();
}
nodeType_ =
input.readMessage(ai.promoted.proto.delivery.HyperloopGeneratorExpression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_);
nodeType_ = subBuilder.buildPartial();
}
nodeTypeCase_ = 2;
break;
}
case 26: {
ai.promoted.proto.delivery.HyperloopConditionalExpression.Builder subBuilder = null;
if (nodeTypeCase_ == 3) {
subBuilder = ((ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_).toBuilder();
}
nodeType_ =
input.readMessage(ai.promoted.proto.delivery.HyperloopConditionalExpression.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_);
nodeType_ = subBuilder.buildPartial();
}
nodeTypeCase_ = 3;
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 ai.promoted.proto.delivery.Blender.internal_static_delivery_HyperloopExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.delivery.Blender.internal_static_delivery_HyperloopExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.delivery.HyperloopExpression.class, ai.promoted.proto.delivery.HyperloopExpression.Builder.class);
}
private int nodeTypeCase_ = 0;
private java.lang.Object nodeType_;
public enum NodeTypeCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
LEAF(1),
GENERATOR_EXP(2),
CONDITIONAL_EXP(3),
NODETYPE_NOT_SET(0);
private final int value;
private NodeTypeCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static NodeTypeCase valueOf(int value) {
return forNumber(value);
}
public static NodeTypeCase forNumber(int value) {
switch (value) {
case 1: return LEAF;
case 2: return GENERATOR_EXP;
case 3: return CONDITIONAL_EXP;
case 0: return NODETYPE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public NodeTypeCase
getNodeTypeCase() {
return NodeTypeCase.forNumber(
nodeTypeCase_);
}
public static final int LEAF_FIELD_NUMBER = 1;
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
* @return Whether the leaf field is set.
*/
@java.lang.Override
public boolean hasLeaf() {
return nodeTypeCase_ == 1;
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
* @return The leaf.
*/
@java.lang.Override
public ai.promoted.proto.delivery.LeafExpression getLeaf() {
if (nodeTypeCase_ == 1) {
return (ai.promoted.proto.delivery.LeafExpression) nodeType_;
}
return ai.promoted.proto.delivery.LeafExpression.getDefaultInstance();
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
*/
@java.lang.Override
public ai.promoted.proto.delivery.LeafExpressionOrBuilder getLeafOrBuilder() {
if (nodeTypeCase_ == 1) {
return (ai.promoted.proto.delivery.LeafExpression) nodeType_;
}
return ai.promoted.proto.delivery.LeafExpression.getDefaultInstance();
}
public static final int GENERATOR_EXP_FIELD_NUMBER = 2;
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
* @return Whether the generatorExp field is set.
*/
@java.lang.Override
public boolean hasGeneratorExp() {
return nodeTypeCase_ == 2;
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
* @return The generatorExp.
*/
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopGeneratorExpression getGeneratorExp() {
if (nodeTypeCase_ == 2) {
return (ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_;
}
return ai.promoted.proto.delivery.HyperloopGeneratorExpression.getDefaultInstance();
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
*/
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopGeneratorExpressionOrBuilder getGeneratorExpOrBuilder() {
if (nodeTypeCase_ == 2) {
return (ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_;
}
return ai.promoted.proto.delivery.HyperloopGeneratorExpression.getDefaultInstance();
}
public static final int CONDITIONAL_EXP_FIELD_NUMBER = 3;
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
* @return Whether the conditionalExp field is set.
*/
@java.lang.Override
public boolean hasConditionalExp() {
return nodeTypeCase_ == 3;
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
* @return The conditionalExp.
*/
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopConditionalExpression getConditionalExp() {
if (nodeTypeCase_ == 3) {
return (ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_;
}
return ai.promoted.proto.delivery.HyperloopConditionalExpression.getDefaultInstance();
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
*/
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopConditionalExpressionOrBuilder getConditionalExpOrBuilder() {
if (nodeTypeCase_ == 3) {
return (ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_;
}
return ai.promoted.proto.delivery.HyperloopConditionalExpression.getDefaultInstance();
}
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 (nodeTypeCase_ == 1) {
output.writeMessage(1, (ai.promoted.proto.delivery.LeafExpression) nodeType_);
}
if (nodeTypeCase_ == 2) {
output.writeMessage(2, (ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_);
}
if (nodeTypeCase_ == 3) {
output.writeMessage(3, (ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (nodeTypeCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (ai.promoted.proto.delivery.LeafExpression) nodeType_);
}
if (nodeTypeCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_);
}
if (nodeTypeCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_);
}
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 ai.promoted.proto.delivery.HyperloopExpression)) {
return super.equals(obj);
}
ai.promoted.proto.delivery.HyperloopExpression other = (ai.promoted.proto.delivery.HyperloopExpression) obj;
if (!getNodeTypeCase().equals(other.getNodeTypeCase())) return false;
switch (nodeTypeCase_) {
case 1:
if (!getLeaf()
.equals(other.getLeaf())) return false;
break;
case 2:
if (!getGeneratorExp()
.equals(other.getGeneratorExp())) return false;
break;
case 3:
if (!getConditionalExp()
.equals(other.getConditionalExp())) return false;
break;
case 0:
default:
}
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();
switch (nodeTypeCase_) {
case 1:
hash = (37 * hash) + LEAF_FIELD_NUMBER;
hash = (53 * hash) + getLeaf().hashCode();
break;
case 2:
hash = (37 * hash) + GENERATOR_EXP_FIELD_NUMBER;
hash = (53 * hash) + getGeneratorExp().hashCode();
break;
case 3:
hash = (37 * hash) + CONDITIONAL_EXP_FIELD_NUMBER;
hash = (53 * hash) + getConditionalExp().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static ai.promoted.proto.delivery.HyperloopExpression parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.delivery.HyperloopExpression parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.delivery.HyperloopExpression parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.delivery.HyperloopExpression parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.delivery.HyperloopExpression parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static ai.promoted.proto.delivery.HyperloopExpression parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static ai.promoted.proto.delivery.HyperloopExpression parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.delivery.HyperloopExpression 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 ai.promoted.proto.delivery.HyperloopExpression parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static ai.promoted.proto.delivery.HyperloopExpression 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 ai.promoted.proto.delivery.HyperloopExpression parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static ai.promoted.proto.delivery.HyperloopExpression 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(ai.promoted.proto.delivery.HyperloopExpression 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 delivery.HyperloopExpression}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:delivery.HyperloopExpression)
ai.promoted.proto.delivery.HyperloopExpressionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return ai.promoted.proto.delivery.Blender.internal_static_delivery_HyperloopExpression_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return ai.promoted.proto.delivery.Blender.internal_static_delivery_HyperloopExpression_fieldAccessorTable
.ensureFieldAccessorsInitialized(
ai.promoted.proto.delivery.HyperloopExpression.class, ai.promoted.proto.delivery.HyperloopExpression.Builder.class);
}
// Construct using ai.promoted.proto.delivery.HyperloopExpression.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();
nodeTypeCase_ = 0;
nodeType_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return ai.promoted.proto.delivery.Blender.internal_static_delivery_HyperloopExpression_descriptor;
}
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopExpression getDefaultInstanceForType() {
return ai.promoted.proto.delivery.HyperloopExpression.getDefaultInstance();
}
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopExpression build() {
ai.promoted.proto.delivery.HyperloopExpression result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopExpression buildPartial() {
ai.promoted.proto.delivery.HyperloopExpression result = new ai.promoted.proto.delivery.HyperloopExpression(this);
if (nodeTypeCase_ == 1) {
if (leafBuilder_ == null) {
result.nodeType_ = nodeType_;
} else {
result.nodeType_ = leafBuilder_.build();
}
}
if (nodeTypeCase_ == 2) {
if (generatorExpBuilder_ == null) {
result.nodeType_ = nodeType_;
} else {
result.nodeType_ = generatorExpBuilder_.build();
}
}
if (nodeTypeCase_ == 3) {
if (conditionalExpBuilder_ == null) {
result.nodeType_ = nodeType_;
} else {
result.nodeType_ = conditionalExpBuilder_.build();
}
}
result.nodeTypeCase_ = nodeTypeCase_;
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 ai.promoted.proto.delivery.HyperloopExpression) {
return mergeFrom((ai.promoted.proto.delivery.HyperloopExpression)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(ai.promoted.proto.delivery.HyperloopExpression other) {
if (other == ai.promoted.proto.delivery.HyperloopExpression.getDefaultInstance()) return this;
switch (other.getNodeTypeCase()) {
case LEAF: {
mergeLeaf(other.getLeaf());
break;
}
case GENERATOR_EXP: {
mergeGeneratorExp(other.getGeneratorExp());
break;
}
case CONDITIONAL_EXP: {
mergeConditionalExp(other.getConditionalExp());
break;
}
case NODETYPE_NOT_SET: {
break;
}
}
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 {
ai.promoted.proto.delivery.HyperloopExpression parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (ai.promoted.proto.delivery.HyperloopExpression) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int nodeTypeCase_ = 0;
private java.lang.Object nodeType_;
public NodeTypeCase
getNodeTypeCase() {
return NodeTypeCase.forNumber(
nodeTypeCase_);
}
public Builder clearNodeType() {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.LeafExpression, ai.promoted.proto.delivery.LeafExpression.Builder, ai.promoted.proto.delivery.LeafExpressionOrBuilder> leafBuilder_;
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
* @return Whether the leaf field is set.
*/
@java.lang.Override
public boolean hasLeaf() {
return nodeTypeCase_ == 1;
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
* @return The leaf.
*/
@java.lang.Override
public ai.promoted.proto.delivery.LeafExpression getLeaf() {
if (leafBuilder_ == null) {
if (nodeTypeCase_ == 1) {
return (ai.promoted.proto.delivery.LeafExpression) nodeType_;
}
return ai.promoted.proto.delivery.LeafExpression.getDefaultInstance();
} else {
if (nodeTypeCase_ == 1) {
return leafBuilder_.getMessage();
}
return ai.promoted.proto.delivery.LeafExpression.getDefaultInstance();
}
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
*/
public Builder setLeaf(ai.promoted.proto.delivery.LeafExpression value) {
if (leafBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeType_ = value;
onChanged();
} else {
leafBuilder_.setMessage(value);
}
nodeTypeCase_ = 1;
return this;
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
*/
public Builder setLeaf(
ai.promoted.proto.delivery.LeafExpression.Builder builderForValue) {
if (leafBuilder_ == null) {
nodeType_ = builderForValue.build();
onChanged();
} else {
leafBuilder_.setMessage(builderForValue.build());
}
nodeTypeCase_ = 1;
return this;
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
*/
public Builder mergeLeaf(ai.promoted.proto.delivery.LeafExpression value) {
if (leafBuilder_ == null) {
if (nodeTypeCase_ == 1 &&
nodeType_ != ai.promoted.proto.delivery.LeafExpression.getDefaultInstance()) {
nodeType_ = ai.promoted.proto.delivery.LeafExpression.newBuilder((ai.promoted.proto.delivery.LeafExpression) nodeType_)
.mergeFrom(value).buildPartial();
} else {
nodeType_ = value;
}
onChanged();
} else {
if (nodeTypeCase_ == 1) {
leafBuilder_.mergeFrom(value);
}
leafBuilder_.setMessage(value);
}
nodeTypeCase_ = 1;
return this;
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
*/
public Builder clearLeaf() {
if (leafBuilder_ == null) {
if (nodeTypeCase_ == 1) {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
}
} else {
if (nodeTypeCase_ == 1) {
nodeTypeCase_ = 0;
nodeType_ = null;
}
leafBuilder_.clear();
}
return this;
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
*/
public ai.promoted.proto.delivery.LeafExpression.Builder getLeafBuilder() {
return getLeafFieldBuilder().getBuilder();
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
*/
@java.lang.Override
public ai.promoted.proto.delivery.LeafExpressionOrBuilder getLeafOrBuilder() {
if ((nodeTypeCase_ == 1) && (leafBuilder_ != null)) {
return leafBuilder_.getMessageOrBuilder();
} else {
if (nodeTypeCase_ == 1) {
return (ai.promoted.proto.delivery.LeafExpression) nodeType_;
}
return ai.promoted.proto.delivery.LeafExpression.getDefaultInstance();
}
}
/**
* .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.LeafExpression, ai.promoted.proto.delivery.LeafExpression.Builder, ai.promoted.proto.delivery.LeafExpressionOrBuilder>
getLeafFieldBuilder() {
if (leafBuilder_ == null) {
if (!(nodeTypeCase_ == 1)) {
nodeType_ = ai.promoted.proto.delivery.LeafExpression.getDefaultInstance();
}
leafBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.LeafExpression, ai.promoted.proto.delivery.LeafExpression.Builder, ai.promoted.proto.delivery.LeafExpressionOrBuilder>(
(ai.promoted.proto.delivery.LeafExpression) nodeType_,
getParentForChildren(),
isClean());
nodeType_ = null;
}
nodeTypeCase_ = 1;
onChanged();;
return leafBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.HyperloopGeneratorExpression, ai.promoted.proto.delivery.HyperloopGeneratorExpression.Builder, ai.promoted.proto.delivery.HyperloopGeneratorExpressionOrBuilder> generatorExpBuilder_;
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
* @return Whether the generatorExp field is set.
*/
@java.lang.Override
public boolean hasGeneratorExp() {
return nodeTypeCase_ == 2;
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
* @return The generatorExp.
*/
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopGeneratorExpression getGeneratorExp() {
if (generatorExpBuilder_ == null) {
if (nodeTypeCase_ == 2) {
return (ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_;
}
return ai.promoted.proto.delivery.HyperloopGeneratorExpression.getDefaultInstance();
} else {
if (nodeTypeCase_ == 2) {
return generatorExpBuilder_.getMessage();
}
return ai.promoted.proto.delivery.HyperloopGeneratorExpression.getDefaultInstance();
}
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
*/
public Builder setGeneratorExp(ai.promoted.proto.delivery.HyperloopGeneratorExpression value) {
if (generatorExpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeType_ = value;
onChanged();
} else {
generatorExpBuilder_.setMessage(value);
}
nodeTypeCase_ = 2;
return this;
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
*/
public Builder setGeneratorExp(
ai.promoted.proto.delivery.HyperloopGeneratorExpression.Builder builderForValue) {
if (generatorExpBuilder_ == null) {
nodeType_ = builderForValue.build();
onChanged();
} else {
generatorExpBuilder_.setMessage(builderForValue.build());
}
nodeTypeCase_ = 2;
return this;
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
*/
public Builder mergeGeneratorExp(ai.promoted.proto.delivery.HyperloopGeneratorExpression value) {
if (generatorExpBuilder_ == null) {
if (nodeTypeCase_ == 2 &&
nodeType_ != ai.promoted.proto.delivery.HyperloopGeneratorExpression.getDefaultInstance()) {
nodeType_ = ai.promoted.proto.delivery.HyperloopGeneratorExpression.newBuilder((ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_)
.mergeFrom(value).buildPartial();
} else {
nodeType_ = value;
}
onChanged();
} else {
if (nodeTypeCase_ == 2) {
generatorExpBuilder_.mergeFrom(value);
}
generatorExpBuilder_.setMessage(value);
}
nodeTypeCase_ = 2;
return this;
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
*/
public Builder clearGeneratorExp() {
if (generatorExpBuilder_ == null) {
if (nodeTypeCase_ == 2) {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
}
} else {
if (nodeTypeCase_ == 2) {
nodeTypeCase_ = 0;
nodeType_ = null;
}
generatorExpBuilder_.clear();
}
return this;
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
*/
public ai.promoted.proto.delivery.HyperloopGeneratorExpression.Builder getGeneratorExpBuilder() {
return getGeneratorExpFieldBuilder().getBuilder();
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
*/
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopGeneratorExpressionOrBuilder getGeneratorExpOrBuilder() {
if ((nodeTypeCase_ == 2) && (generatorExpBuilder_ != null)) {
return generatorExpBuilder_.getMessageOrBuilder();
} else {
if (nodeTypeCase_ == 2) {
return (ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_;
}
return ai.promoted.proto.delivery.HyperloopGeneratorExpression.getDefaultInstance();
}
}
/**
* .delivery.HyperloopGeneratorExpression generator_exp = 2 [json_name = "generatorExp"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.HyperloopGeneratorExpression, ai.promoted.proto.delivery.HyperloopGeneratorExpression.Builder, ai.promoted.proto.delivery.HyperloopGeneratorExpressionOrBuilder>
getGeneratorExpFieldBuilder() {
if (generatorExpBuilder_ == null) {
if (!(nodeTypeCase_ == 2)) {
nodeType_ = ai.promoted.proto.delivery.HyperloopGeneratorExpression.getDefaultInstance();
}
generatorExpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.HyperloopGeneratorExpression, ai.promoted.proto.delivery.HyperloopGeneratorExpression.Builder, ai.promoted.proto.delivery.HyperloopGeneratorExpressionOrBuilder>(
(ai.promoted.proto.delivery.HyperloopGeneratorExpression) nodeType_,
getParentForChildren(),
isClean());
nodeType_ = null;
}
nodeTypeCase_ = 2;
onChanged();;
return generatorExpBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.HyperloopConditionalExpression, ai.promoted.proto.delivery.HyperloopConditionalExpression.Builder, ai.promoted.proto.delivery.HyperloopConditionalExpressionOrBuilder> conditionalExpBuilder_;
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
* @return Whether the conditionalExp field is set.
*/
@java.lang.Override
public boolean hasConditionalExp() {
return nodeTypeCase_ == 3;
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
* @return The conditionalExp.
*/
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopConditionalExpression getConditionalExp() {
if (conditionalExpBuilder_ == null) {
if (nodeTypeCase_ == 3) {
return (ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_;
}
return ai.promoted.proto.delivery.HyperloopConditionalExpression.getDefaultInstance();
} else {
if (nodeTypeCase_ == 3) {
return conditionalExpBuilder_.getMessage();
}
return ai.promoted.proto.delivery.HyperloopConditionalExpression.getDefaultInstance();
}
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
*/
public Builder setConditionalExp(ai.promoted.proto.delivery.HyperloopConditionalExpression value) {
if (conditionalExpBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
nodeType_ = value;
onChanged();
} else {
conditionalExpBuilder_.setMessage(value);
}
nodeTypeCase_ = 3;
return this;
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
*/
public Builder setConditionalExp(
ai.promoted.proto.delivery.HyperloopConditionalExpression.Builder builderForValue) {
if (conditionalExpBuilder_ == null) {
nodeType_ = builderForValue.build();
onChanged();
} else {
conditionalExpBuilder_.setMessage(builderForValue.build());
}
nodeTypeCase_ = 3;
return this;
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
*/
public Builder mergeConditionalExp(ai.promoted.proto.delivery.HyperloopConditionalExpression value) {
if (conditionalExpBuilder_ == null) {
if (nodeTypeCase_ == 3 &&
nodeType_ != ai.promoted.proto.delivery.HyperloopConditionalExpression.getDefaultInstance()) {
nodeType_ = ai.promoted.proto.delivery.HyperloopConditionalExpression.newBuilder((ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_)
.mergeFrom(value).buildPartial();
} else {
nodeType_ = value;
}
onChanged();
} else {
if (nodeTypeCase_ == 3) {
conditionalExpBuilder_.mergeFrom(value);
}
conditionalExpBuilder_.setMessage(value);
}
nodeTypeCase_ = 3;
return this;
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
*/
public Builder clearConditionalExp() {
if (conditionalExpBuilder_ == null) {
if (nodeTypeCase_ == 3) {
nodeTypeCase_ = 0;
nodeType_ = null;
onChanged();
}
} else {
if (nodeTypeCase_ == 3) {
nodeTypeCase_ = 0;
nodeType_ = null;
}
conditionalExpBuilder_.clear();
}
return this;
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
*/
public ai.promoted.proto.delivery.HyperloopConditionalExpression.Builder getConditionalExpBuilder() {
return getConditionalExpFieldBuilder().getBuilder();
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
*/
@java.lang.Override
public ai.promoted.proto.delivery.HyperloopConditionalExpressionOrBuilder getConditionalExpOrBuilder() {
if ((nodeTypeCase_ == 3) && (conditionalExpBuilder_ != null)) {
return conditionalExpBuilder_.getMessageOrBuilder();
} else {
if (nodeTypeCase_ == 3) {
return (ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_;
}
return ai.promoted.proto.delivery.HyperloopConditionalExpression.getDefaultInstance();
}
}
/**
* .delivery.HyperloopConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.HyperloopConditionalExpression, ai.promoted.proto.delivery.HyperloopConditionalExpression.Builder, ai.promoted.proto.delivery.HyperloopConditionalExpressionOrBuilder>
getConditionalExpFieldBuilder() {
if (conditionalExpBuilder_ == null) {
if (!(nodeTypeCase_ == 3)) {
nodeType_ = ai.promoted.proto.delivery.HyperloopConditionalExpression.getDefaultInstance();
}
conditionalExpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
ai.promoted.proto.delivery.HyperloopConditionalExpression, ai.promoted.proto.delivery.HyperloopConditionalExpression.Builder, ai.promoted.proto.delivery.HyperloopConditionalExpressionOrBuilder>(
(ai.promoted.proto.delivery.HyperloopConditionalExpression) nodeType_,
getParentForChildren(),
isClean());
nodeType_ = null;
}
nodeTypeCase_ = 3;
onChanged();;
return conditionalExpBuilder_;
}
@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:delivery.HyperloopExpression)
}
// @@protoc_insertion_point(class_scope:delivery.HyperloopExpression)
private static final ai.promoted.proto.delivery.HyperloopExpression DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new ai.promoted.proto.delivery.HyperloopExpression();
}
public static ai.promoted.proto.delivery.HyperloopExpression getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HyperloopExpression parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HyperloopExpression(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 ai.promoted.proto.delivery.HyperloopExpression getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy