All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.promoted.proto.delivery.BlenderExpression Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/delivery/blender.proto

package ai.promoted.proto.delivery;

/**
 * Protobuf type {@code delivery.BlenderExpression}
 */
public final class BlenderExpression extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:delivery.BlenderExpression)
    BlenderExpressionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use BlenderExpression.newBuilder() to construct.
  private BlenderExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private BlenderExpression() {
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new BlenderExpression();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private BlenderExpression(
      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 (expTypeCase_ == 1) {
              subBuilder = ((ai.promoted.proto.delivery.LeafExpression) expType_).toBuilder();
            }
            expType_ =
                input.readMessage(ai.promoted.proto.delivery.LeafExpression.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((ai.promoted.proto.delivery.LeafExpression) expType_);
              expType_ = subBuilder.buildPartial();
            }
            expTypeCase_ = 1;
            break;
          }
          case 18: {
            ai.promoted.proto.delivery.BlenderArithmeticExpression.Builder subBuilder = null;
            if (expTypeCase_ == 2) {
              subBuilder = ((ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_).toBuilder();
            }
            expType_ =
                input.readMessage(ai.promoted.proto.delivery.BlenderArithmeticExpression.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_);
              expType_ = subBuilder.buildPartial();
            }
            expTypeCase_ = 2;
            break;
          }
          case 26: {
            ai.promoted.proto.delivery.BlenderConditionalExpression.Builder subBuilder = null;
            if (expTypeCase_ == 3) {
              subBuilder = ((ai.promoted.proto.delivery.BlenderConditionalExpression) expType_).toBuilder();
            }
            expType_ =
                input.readMessage(ai.promoted.proto.delivery.BlenderConditionalExpression.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((ai.promoted.proto.delivery.BlenderConditionalExpression) expType_);
              expType_ = subBuilder.buildPartial();
            }
            expTypeCase_ = 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_BlenderExpression_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return ai.promoted.proto.delivery.Blender.internal_static_delivery_BlenderExpression_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            ai.promoted.proto.delivery.BlenderExpression.class, ai.promoted.proto.delivery.BlenderExpression.Builder.class);
  }

  private int expTypeCase_ = 0;
  private java.lang.Object expType_;
  public enum ExpTypeCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    LEAF(1),
    ARITHMETIC_EXP(2),
    CONDITIONAL_EXP(3),
    EXPTYPE_NOT_SET(0);
    private final int value;
    private ExpTypeCase(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 ExpTypeCase valueOf(int value) {
      return forNumber(value);
    }

    public static ExpTypeCase forNumber(int value) {
      switch (value) {
        case 1: return LEAF;
        case 2: return ARITHMETIC_EXP;
        case 3: return CONDITIONAL_EXP;
        case 0: return EXPTYPE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ExpTypeCase
  getExpTypeCase() {
    return ExpTypeCase.forNumber(
        expTypeCase_);
  }

  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 expTypeCase_ == 1;
  }
  /**
   * .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
   * @return The leaf.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.LeafExpression getLeaf() {
    if (expTypeCase_ == 1) {
       return (ai.promoted.proto.delivery.LeafExpression) expType_;
    }
    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 (expTypeCase_ == 1) {
       return (ai.promoted.proto.delivery.LeafExpression) expType_;
    }
    return ai.promoted.proto.delivery.LeafExpression.getDefaultInstance();
  }

  public static final int ARITHMETIC_EXP_FIELD_NUMBER = 2;
  /**
   * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
   * @return Whether the arithmeticExp field is set.
   */
  @java.lang.Override
  public boolean hasArithmeticExp() {
    return expTypeCase_ == 2;
  }
  /**
   * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
   * @return The arithmeticExp.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.BlenderArithmeticExpression getArithmeticExp() {
    if (expTypeCase_ == 2) {
       return (ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_;
    }
    return ai.promoted.proto.delivery.BlenderArithmeticExpression.getDefaultInstance();
  }
  /**
   * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.BlenderArithmeticExpressionOrBuilder getArithmeticExpOrBuilder() {
    if (expTypeCase_ == 2) {
       return (ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_;
    }
    return ai.promoted.proto.delivery.BlenderArithmeticExpression.getDefaultInstance();
  }

  public static final int CONDITIONAL_EXP_FIELD_NUMBER = 3;
  /**
   * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
   * @return Whether the conditionalExp field is set.
   */
  @java.lang.Override
  public boolean hasConditionalExp() {
    return expTypeCase_ == 3;
  }
  /**
   * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
   * @return The conditionalExp.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.BlenderConditionalExpression getConditionalExp() {
    if (expTypeCase_ == 3) {
       return (ai.promoted.proto.delivery.BlenderConditionalExpression) expType_;
    }
    return ai.promoted.proto.delivery.BlenderConditionalExpression.getDefaultInstance();
  }
  /**
   * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.BlenderConditionalExpressionOrBuilder getConditionalExpOrBuilder() {
    if (expTypeCase_ == 3) {
       return (ai.promoted.proto.delivery.BlenderConditionalExpression) expType_;
    }
    return ai.promoted.proto.delivery.BlenderConditionalExpression.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 (expTypeCase_ == 1) {
      output.writeMessage(1, (ai.promoted.proto.delivery.LeafExpression) expType_);
    }
    if (expTypeCase_ == 2) {
      output.writeMessage(2, (ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_);
    }
    if (expTypeCase_ == 3) {
      output.writeMessage(3, (ai.promoted.proto.delivery.BlenderConditionalExpression) expType_);
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (expTypeCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (ai.promoted.proto.delivery.LeafExpression) expType_);
    }
    if (expTypeCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_);
    }
    if (expTypeCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (ai.promoted.proto.delivery.BlenderConditionalExpression) expType_);
    }
    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.BlenderExpression)) {
      return super.equals(obj);
    }
    ai.promoted.proto.delivery.BlenderExpression other = (ai.promoted.proto.delivery.BlenderExpression) obj;

    if (!getExpTypeCase().equals(other.getExpTypeCase())) return false;
    switch (expTypeCase_) {
      case 1:
        if (!getLeaf()
            .equals(other.getLeaf())) return false;
        break;
      case 2:
        if (!getArithmeticExp()
            .equals(other.getArithmeticExp())) 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 (expTypeCase_) {
      case 1:
        hash = (37 * hash) + LEAF_FIELD_NUMBER;
        hash = (53 * hash) + getLeaf().hashCode();
        break;
      case 2:
        hash = (37 * hash) + ARITHMETIC_EXP_FIELD_NUMBER;
        hash = (53 * hash) + getArithmeticExp().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.BlenderExpression parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.BlenderExpression 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.BlenderExpression parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.BlenderExpression 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.BlenderExpression parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.BlenderExpression parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ai.promoted.proto.delivery.BlenderExpression parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.BlenderExpression 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.BlenderExpression parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.BlenderExpression 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.BlenderExpression parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.BlenderExpression 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.BlenderExpression 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.BlenderExpression}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:delivery.BlenderExpression)
      ai.promoted.proto.delivery.BlenderExpressionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return ai.promoted.proto.delivery.Blender.internal_static_delivery_BlenderExpression_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return ai.promoted.proto.delivery.Blender.internal_static_delivery_BlenderExpression_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              ai.promoted.proto.delivery.BlenderExpression.class, ai.promoted.proto.delivery.BlenderExpression.Builder.class);
    }

    // Construct using ai.promoted.proto.delivery.BlenderExpression.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();
      expTypeCase_ = 0;
      expType_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return ai.promoted.proto.delivery.Blender.internal_static_delivery_BlenderExpression_descriptor;
    }

    @java.lang.Override
    public ai.promoted.proto.delivery.BlenderExpression getDefaultInstanceForType() {
      return ai.promoted.proto.delivery.BlenderExpression.getDefaultInstance();
    }

    @java.lang.Override
    public ai.promoted.proto.delivery.BlenderExpression build() {
      ai.promoted.proto.delivery.BlenderExpression result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public ai.promoted.proto.delivery.BlenderExpression buildPartial() {
      ai.promoted.proto.delivery.BlenderExpression result = new ai.promoted.proto.delivery.BlenderExpression(this);
      if (expTypeCase_ == 1) {
        if (leafBuilder_ == null) {
          result.expType_ = expType_;
        } else {
          result.expType_ = leafBuilder_.build();
        }
      }
      if (expTypeCase_ == 2) {
        if (arithmeticExpBuilder_ == null) {
          result.expType_ = expType_;
        } else {
          result.expType_ = arithmeticExpBuilder_.build();
        }
      }
      if (expTypeCase_ == 3) {
        if (conditionalExpBuilder_ == null) {
          result.expType_ = expType_;
        } else {
          result.expType_ = conditionalExpBuilder_.build();
        }
      }
      result.expTypeCase_ = expTypeCase_;
      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.BlenderExpression) {
        return mergeFrom((ai.promoted.proto.delivery.BlenderExpression)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ai.promoted.proto.delivery.BlenderExpression other) {
      if (other == ai.promoted.proto.delivery.BlenderExpression.getDefaultInstance()) return this;
      switch (other.getExpTypeCase()) {
        case LEAF: {
          mergeLeaf(other.getLeaf());
          break;
        }
        case ARITHMETIC_EXP: {
          mergeArithmeticExp(other.getArithmeticExp());
          break;
        }
        case CONDITIONAL_EXP: {
          mergeConditionalExp(other.getConditionalExp());
          break;
        }
        case EXPTYPE_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.BlenderExpression parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ai.promoted.proto.delivery.BlenderExpression) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int expTypeCase_ = 0;
    private java.lang.Object expType_;
    public ExpTypeCase
        getExpTypeCase() {
      return ExpTypeCase.forNumber(
          expTypeCase_);
    }

    public Builder clearExpType() {
      expTypeCase_ = 0;
      expType_ = 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 expTypeCase_ == 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 (expTypeCase_ == 1) {
          return (ai.promoted.proto.delivery.LeafExpression) expType_;
        }
        return ai.promoted.proto.delivery.LeafExpression.getDefaultInstance();
      } else {
        if (expTypeCase_ == 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();
        }
        expType_ = value;
        onChanged();
      } else {
        leafBuilder_.setMessage(value);
      }
      expTypeCase_ = 1;
      return this;
    }
    /**
     * .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
     */
    public Builder setLeaf(
        ai.promoted.proto.delivery.LeafExpression.Builder builderForValue) {
      if (leafBuilder_ == null) {
        expType_ = builderForValue.build();
        onChanged();
      } else {
        leafBuilder_.setMessage(builderForValue.build());
      }
      expTypeCase_ = 1;
      return this;
    }
    /**
     * .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
     */
    public Builder mergeLeaf(ai.promoted.proto.delivery.LeafExpression value) {
      if (leafBuilder_ == null) {
        if (expTypeCase_ == 1 &&
            expType_ != ai.promoted.proto.delivery.LeafExpression.getDefaultInstance()) {
          expType_ = ai.promoted.proto.delivery.LeafExpression.newBuilder((ai.promoted.proto.delivery.LeafExpression) expType_)
              .mergeFrom(value).buildPartial();
        } else {
          expType_ = value;
        }
        onChanged();
      } else {
        if (expTypeCase_ == 1) {
          leafBuilder_.mergeFrom(value);
        }
        leafBuilder_.setMessage(value);
      }
      expTypeCase_ = 1;
      return this;
    }
    /**
     * .delivery.LeafExpression leaf = 1 [json_name = "leaf"];
     */
    public Builder clearLeaf() {
      if (leafBuilder_ == null) {
        if (expTypeCase_ == 1) {
          expTypeCase_ = 0;
          expType_ = null;
          onChanged();
        }
      } else {
        if (expTypeCase_ == 1) {
          expTypeCase_ = 0;
          expType_ = 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 ((expTypeCase_ == 1) && (leafBuilder_ != null)) {
        return leafBuilder_.getMessageOrBuilder();
      } else {
        if (expTypeCase_ == 1) {
          return (ai.promoted.proto.delivery.LeafExpression) expType_;
        }
        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 (!(expTypeCase_ == 1)) {
          expType_ = 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) expType_,
                getParentForChildren(),
                isClean());
        expType_ = null;
      }
      expTypeCase_ = 1;
      onChanged();;
      return leafBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.BlenderArithmeticExpression, ai.promoted.proto.delivery.BlenderArithmeticExpression.Builder, ai.promoted.proto.delivery.BlenderArithmeticExpressionOrBuilder> arithmeticExpBuilder_;
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     * @return Whether the arithmeticExp field is set.
     */
    @java.lang.Override
    public boolean hasArithmeticExp() {
      return expTypeCase_ == 2;
    }
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     * @return The arithmeticExp.
     */
    @java.lang.Override
    public ai.promoted.proto.delivery.BlenderArithmeticExpression getArithmeticExp() {
      if (arithmeticExpBuilder_ == null) {
        if (expTypeCase_ == 2) {
          return (ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_;
        }
        return ai.promoted.proto.delivery.BlenderArithmeticExpression.getDefaultInstance();
      } else {
        if (expTypeCase_ == 2) {
          return arithmeticExpBuilder_.getMessage();
        }
        return ai.promoted.proto.delivery.BlenderArithmeticExpression.getDefaultInstance();
      }
    }
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     */
    public Builder setArithmeticExp(ai.promoted.proto.delivery.BlenderArithmeticExpression value) {
      if (arithmeticExpBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        expType_ = value;
        onChanged();
      } else {
        arithmeticExpBuilder_.setMessage(value);
      }
      expTypeCase_ = 2;
      return this;
    }
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     */
    public Builder setArithmeticExp(
        ai.promoted.proto.delivery.BlenderArithmeticExpression.Builder builderForValue) {
      if (arithmeticExpBuilder_ == null) {
        expType_ = builderForValue.build();
        onChanged();
      } else {
        arithmeticExpBuilder_.setMessage(builderForValue.build());
      }
      expTypeCase_ = 2;
      return this;
    }
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     */
    public Builder mergeArithmeticExp(ai.promoted.proto.delivery.BlenderArithmeticExpression value) {
      if (arithmeticExpBuilder_ == null) {
        if (expTypeCase_ == 2 &&
            expType_ != ai.promoted.proto.delivery.BlenderArithmeticExpression.getDefaultInstance()) {
          expType_ = ai.promoted.proto.delivery.BlenderArithmeticExpression.newBuilder((ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_)
              .mergeFrom(value).buildPartial();
        } else {
          expType_ = value;
        }
        onChanged();
      } else {
        if (expTypeCase_ == 2) {
          arithmeticExpBuilder_.mergeFrom(value);
        }
        arithmeticExpBuilder_.setMessage(value);
      }
      expTypeCase_ = 2;
      return this;
    }
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     */
    public Builder clearArithmeticExp() {
      if (arithmeticExpBuilder_ == null) {
        if (expTypeCase_ == 2) {
          expTypeCase_ = 0;
          expType_ = null;
          onChanged();
        }
      } else {
        if (expTypeCase_ == 2) {
          expTypeCase_ = 0;
          expType_ = null;
        }
        arithmeticExpBuilder_.clear();
      }
      return this;
    }
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     */
    public ai.promoted.proto.delivery.BlenderArithmeticExpression.Builder getArithmeticExpBuilder() {
      return getArithmeticExpFieldBuilder().getBuilder();
    }
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     */
    @java.lang.Override
    public ai.promoted.proto.delivery.BlenderArithmeticExpressionOrBuilder getArithmeticExpOrBuilder() {
      if ((expTypeCase_ == 2) && (arithmeticExpBuilder_ != null)) {
        return arithmeticExpBuilder_.getMessageOrBuilder();
      } else {
        if (expTypeCase_ == 2) {
          return (ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_;
        }
        return ai.promoted.proto.delivery.BlenderArithmeticExpression.getDefaultInstance();
      }
    }
    /**
     * .delivery.BlenderArithmeticExpression arithmetic_exp = 2 [json_name = "arithmeticExp"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.BlenderArithmeticExpression, ai.promoted.proto.delivery.BlenderArithmeticExpression.Builder, ai.promoted.proto.delivery.BlenderArithmeticExpressionOrBuilder> 
        getArithmeticExpFieldBuilder() {
      if (arithmeticExpBuilder_ == null) {
        if (!(expTypeCase_ == 2)) {
          expType_ = ai.promoted.proto.delivery.BlenderArithmeticExpression.getDefaultInstance();
        }
        arithmeticExpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.delivery.BlenderArithmeticExpression, ai.promoted.proto.delivery.BlenderArithmeticExpression.Builder, ai.promoted.proto.delivery.BlenderArithmeticExpressionOrBuilder>(
                (ai.promoted.proto.delivery.BlenderArithmeticExpression) expType_,
                getParentForChildren(),
                isClean());
        expType_ = null;
      }
      expTypeCase_ = 2;
      onChanged();;
      return arithmeticExpBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.BlenderConditionalExpression, ai.promoted.proto.delivery.BlenderConditionalExpression.Builder, ai.promoted.proto.delivery.BlenderConditionalExpressionOrBuilder> conditionalExpBuilder_;
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     * @return Whether the conditionalExp field is set.
     */
    @java.lang.Override
    public boolean hasConditionalExp() {
      return expTypeCase_ == 3;
    }
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     * @return The conditionalExp.
     */
    @java.lang.Override
    public ai.promoted.proto.delivery.BlenderConditionalExpression getConditionalExp() {
      if (conditionalExpBuilder_ == null) {
        if (expTypeCase_ == 3) {
          return (ai.promoted.proto.delivery.BlenderConditionalExpression) expType_;
        }
        return ai.promoted.proto.delivery.BlenderConditionalExpression.getDefaultInstance();
      } else {
        if (expTypeCase_ == 3) {
          return conditionalExpBuilder_.getMessage();
        }
        return ai.promoted.proto.delivery.BlenderConditionalExpression.getDefaultInstance();
      }
    }
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     */
    public Builder setConditionalExp(ai.promoted.proto.delivery.BlenderConditionalExpression value) {
      if (conditionalExpBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        expType_ = value;
        onChanged();
      } else {
        conditionalExpBuilder_.setMessage(value);
      }
      expTypeCase_ = 3;
      return this;
    }
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     */
    public Builder setConditionalExp(
        ai.promoted.proto.delivery.BlenderConditionalExpression.Builder builderForValue) {
      if (conditionalExpBuilder_ == null) {
        expType_ = builderForValue.build();
        onChanged();
      } else {
        conditionalExpBuilder_.setMessage(builderForValue.build());
      }
      expTypeCase_ = 3;
      return this;
    }
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     */
    public Builder mergeConditionalExp(ai.promoted.proto.delivery.BlenderConditionalExpression value) {
      if (conditionalExpBuilder_ == null) {
        if (expTypeCase_ == 3 &&
            expType_ != ai.promoted.proto.delivery.BlenderConditionalExpression.getDefaultInstance()) {
          expType_ = ai.promoted.proto.delivery.BlenderConditionalExpression.newBuilder((ai.promoted.proto.delivery.BlenderConditionalExpression) expType_)
              .mergeFrom(value).buildPartial();
        } else {
          expType_ = value;
        }
        onChanged();
      } else {
        if (expTypeCase_ == 3) {
          conditionalExpBuilder_.mergeFrom(value);
        }
        conditionalExpBuilder_.setMessage(value);
      }
      expTypeCase_ = 3;
      return this;
    }
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     */
    public Builder clearConditionalExp() {
      if (conditionalExpBuilder_ == null) {
        if (expTypeCase_ == 3) {
          expTypeCase_ = 0;
          expType_ = null;
          onChanged();
        }
      } else {
        if (expTypeCase_ == 3) {
          expTypeCase_ = 0;
          expType_ = null;
        }
        conditionalExpBuilder_.clear();
      }
      return this;
    }
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     */
    public ai.promoted.proto.delivery.BlenderConditionalExpression.Builder getConditionalExpBuilder() {
      return getConditionalExpFieldBuilder().getBuilder();
    }
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     */
    @java.lang.Override
    public ai.promoted.proto.delivery.BlenderConditionalExpressionOrBuilder getConditionalExpOrBuilder() {
      if ((expTypeCase_ == 3) && (conditionalExpBuilder_ != null)) {
        return conditionalExpBuilder_.getMessageOrBuilder();
      } else {
        if (expTypeCase_ == 3) {
          return (ai.promoted.proto.delivery.BlenderConditionalExpression) expType_;
        }
        return ai.promoted.proto.delivery.BlenderConditionalExpression.getDefaultInstance();
      }
    }
    /**
     * .delivery.BlenderConditionalExpression conditional_exp = 3 [json_name = "conditionalExp"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.BlenderConditionalExpression, ai.promoted.proto.delivery.BlenderConditionalExpression.Builder, ai.promoted.proto.delivery.BlenderConditionalExpressionOrBuilder> 
        getConditionalExpFieldBuilder() {
      if (conditionalExpBuilder_ == null) {
        if (!(expTypeCase_ == 3)) {
          expType_ = ai.promoted.proto.delivery.BlenderConditionalExpression.getDefaultInstance();
        }
        conditionalExpBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.delivery.BlenderConditionalExpression, ai.promoted.proto.delivery.BlenderConditionalExpression.Builder, ai.promoted.proto.delivery.BlenderConditionalExpressionOrBuilder>(
                (ai.promoted.proto.delivery.BlenderConditionalExpression) expType_,
                getParentForChildren(),
                isClean());
        expType_ = null;
      }
      expTypeCase_ = 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.BlenderExpression)
  }

  // @@protoc_insertion_point(class_scope:delivery.BlenderExpression)
  private static final ai.promoted.proto.delivery.BlenderExpression DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new ai.promoted.proto.delivery.BlenderExpression();
  }

  public static ai.promoted.proto.delivery.BlenderExpression getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public BlenderExpression parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new BlenderExpression(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.BlenderExpression getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy