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

ai.promoted.proto.delivery.HyperloopGeneratorExpression 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.HyperloopGeneratorExpression}
 */
public final class HyperloopGeneratorExpression extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:delivery.HyperloopGeneratorExpression)
    HyperloopGeneratorExpressionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use HyperloopGeneratorExpression.newBuilder() to construct.
  private HyperloopGeneratorExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private HyperloopGeneratorExpression() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private HyperloopGeneratorExpression(
      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.HyperloopUniformGenerator.Builder subBuilder = null;
            if (generatorCase_ == 1) {
              subBuilder = ((ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_).toBuilder();
            }
            generator_ =
                input.readMessage(ai.promoted.proto.delivery.HyperloopUniformGenerator.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_);
              generator_ = subBuilder.buildPartial();
            }
            generatorCase_ = 1;
            break;
          }
          case 18: {
            ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.Builder subBuilder = null;
            if (generatorCase_ == 2) {
              subBuilder = ((ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_).toBuilder();
            }
            generator_ =
                input.readMessage(ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_);
              generator_ = subBuilder.buildPartial();
            }
            generatorCase_ = 2;
            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_HyperloopGeneratorExpression_descriptor;
  }

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

  private int generatorCase_ = 0;
  private java.lang.Object generator_;
  public enum GeneratorCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    UNIFORM(1),
    UNIFORM_MULTI(2),
    GENERATOR_NOT_SET(0);
    private final int value;
    private GeneratorCase(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 GeneratorCase valueOf(int value) {
      return forNumber(value);
    }

    public static GeneratorCase forNumber(int value) {
      switch (value) {
        case 1: return UNIFORM;
        case 2: return UNIFORM_MULTI;
        case 0: return GENERATOR_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public GeneratorCase
  getGeneratorCase() {
    return GeneratorCase.forNumber(
        generatorCase_);
  }

  public static final int UNIFORM_FIELD_NUMBER = 1;
  /**
   * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
   * @return Whether the uniform field is set.
   */
  @java.lang.Override
  public boolean hasUniform() {
    return generatorCase_ == 1;
  }
  /**
   * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
   * @return The uniform.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.HyperloopUniformGenerator getUniform() {
    if (generatorCase_ == 1) {
       return (ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_;
    }
    return ai.promoted.proto.delivery.HyperloopUniformGenerator.getDefaultInstance();
  }
  /**
   * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.HyperloopUniformGeneratorOrBuilder getUniformOrBuilder() {
    if (generatorCase_ == 1) {
       return (ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_;
    }
    return ai.promoted.proto.delivery.HyperloopUniformGenerator.getDefaultInstance();
  }

  public static final int UNIFORM_MULTI_FIELD_NUMBER = 2;
  /**
   * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
   * @return Whether the uniformMulti field is set.
   */
  @java.lang.Override
  public boolean hasUniformMulti() {
    return generatorCase_ == 2;
  }
  /**
   * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
   * @return The uniformMulti.
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.HyperloopUniformMultiGenerator getUniformMulti() {
    if (generatorCase_ == 2) {
       return (ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_;
    }
    return ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.getDefaultInstance();
  }
  /**
   * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
   */
  @java.lang.Override
  public ai.promoted.proto.delivery.HyperloopUniformMultiGeneratorOrBuilder getUniformMultiOrBuilder() {
    if (generatorCase_ == 2) {
       return (ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_;
    }
    return ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.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 (generatorCase_ == 1) {
      output.writeMessage(1, (ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_);
    }
    if (generatorCase_ == 2) {
      output.writeMessage(2, (ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (generatorCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_);
    }
    if (generatorCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_);
    }
    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.HyperloopGeneratorExpression)) {
      return super.equals(obj);
    }
    ai.promoted.proto.delivery.HyperloopGeneratorExpression other = (ai.promoted.proto.delivery.HyperloopGeneratorExpression) obj;

    if (!getGeneratorCase().equals(other.getGeneratorCase())) return false;
    switch (generatorCase_) {
      case 1:
        if (!getUniform()
            .equals(other.getUniform())) return false;
        break;
      case 2:
        if (!getUniformMulti()
            .equals(other.getUniformMulti())) 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 (generatorCase_) {
      case 1:
        hash = (37 * hash) + UNIFORM_FIELD_NUMBER;
        hash = (53 * hash) + getUniform().hashCode();
        break;
      case 2:
        hash = (37 * hash) + UNIFORM_MULTI_FIELD_NUMBER;
        hash = (53 * hash) + getUniformMulti().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static ai.promoted.proto.delivery.HyperloopGeneratorExpression parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.HyperloopGeneratorExpression 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.HyperloopGeneratorExpression parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.HyperloopGeneratorExpression 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.HyperloopGeneratorExpression parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static ai.promoted.proto.delivery.HyperloopGeneratorExpression parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static ai.promoted.proto.delivery.HyperloopGeneratorExpression parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.HyperloopGeneratorExpression 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.HyperloopGeneratorExpression parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.HyperloopGeneratorExpression 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.HyperloopGeneratorExpression parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static ai.promoted.proto.delivery.HyperloopGeneratorExpression 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.HyperloopGeneratorExpression 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.HyperloopGeneratorExpression}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:delivery.HyperloopGeneratorExpression)
      ai.promoted.proto.delivery.HyperloopGeneratorExpressionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return ai.promoted.proto.delivery.Blender.internal_static_delivery_HyperloopGeneratorExpression_descriptor;
    }

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

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

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

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

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

    @java.lang.Override
    public ai.promoted.proto.delivery.HyperloopGeneratorExpression buildPartial() {
      ai.promoted.proto.delivery.HyperloopGeneratorExpression result = new ai.promoted.proto.delivery.HyperloopGeneratorExpression(this);
      if (generatorCase_ == 1) {
        if (uniformBuilder_ == null) {
          result.generator_ = generator_;
        } else {
          result.generator_ = uniformBuilder_.build();
        }
      }
      if (generatorCase_ == 2) {
        if (uniformMultiBuilder_ == null) {
          result.generator_ = generator_;
        } else {
          result.generator_ = uniformMultiBuilder_.build();
        }
      }
      result.generatorCase_ = generatorCase_;
      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.HyperloopGeneratorExpression) {
        return mergeFrom((ai.promoted.proto.delivery.HyperloopGeneratorExpression)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(ai.promoted.proto.delivery.HyperloopGeneratorExpression other) {
      if (other == ai.promoted.proto.delivery.HyperloopGeneratorExpression.getDefaultInstance()) return this;
      switch (other.getGeneratorCase()) {
        case UNIFORM: {
          mergeUniform(other.getUniform());
          break;
        }
        case UNIFORM_MULTI: {
          mergeUniformMulti(other.getUniformMulti());
          break;
        }
        case GENERATOR_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.HyperloopGeneratorExpression parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (ai.promoted.proto.delivery.HyperloopGeneratorExpression) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int generatorCase_ = 0;
    private java.lang.Object generator_;
    public GeneratorCase
        getGeneratorCase() {
      return GeneratorCase.forNumber(
          generatorCase_);
    }

    public Builder clearGenerator() {
      generatorCase_ = 0;
      generator_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.HyperloopUniformGenerator, ai.promoted.proto.delivery.HyperloopUniformGenerator.Builder, ai.promoted.proto.delivery.HyperloopUniformGeneratorOrBuilder> uniformBuilder_;
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     * @return Whether the uniform field is set.
     */
    @java.lang.Override
    public boolean hasUniform() {
      return generatorCase_ == 1;
    }
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     * @return The uniform.
     */
    @java.lang.Override
    public ai.promoted.proto.delivery.HyperloopUniformGenerator getUniform() {
      if (uniformBuilder_ == null) {
        if (generatorCase_ == 1) {
          return (ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_;
        }
        return ai.promoted.proto.delivery.HyperloopUniformGenerator.getDefaultInstance();
      } else {
        if (generatorCase_ == 1) {
          return uniformBuilder_.getMessage();
        }
        return ai.promoted.proto.delivery.HyperloopUniformGenerator.getDefaultInstance();
      }
    }
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     */
    public Builder setUniform(ai.promoted.proto.delivery.HyperloopUniformGenerator value) {
      if (uniformBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        generator_ = value;
        onChanged();
      } else {
        uniformBuilder_.setMessage(value);
      }
      generatorCase_ = 1;
      return this;
    }
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     */
    public Builder setUniform(
        ai.promoted.proto.delivery.HyperloopUniformGenerator.Builder builderForValue) {
      if (uniformBuilder_ == null) {
        generator_ = builderForValue.build();
        onChanged();
      } else {
        uniformBuilder_.setMessage(builderForValue.build());
      }
      generatorCase_ = 1;
      return this;
    }
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     */
    public Builder mergeUniform(ai.promoted.proto.delivery.HyperloopUniformGenerator value) {
      if (uniformBuilder_ == null) {
        if (generatorCase_ == 1 &&
            generator_ != ai.promoted.proto.delivery.HyperloopUniformGenerator.getDefaultInstance()) {
          generator_ = ai.promoted.proto.delivery.HyperloopUniformGenerator.newBuilder((ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_)
              .mergeFrom(value).buildPartial();
        } else {
          generator_ = value;
        }
        onChanged();
      } else {
        if (generatorCase_ == 1) {
          uniformBuilder_.mergeFrom(value);
        }
        uniformBuilder_.setMessage(value);
      }
      generatorCase_ = 1;
      return this;
    }
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     */
    public Builder clearUniform() {
      if (uniformBuilder_ == null) {
        if (generatorCase_ == 1) {
          generatorCase_ = 0;
          generator_ = null;
          onChanged();
        }
      } else {
        if (generatorCase_ == 1) {
          generatorCase_ = 0;
          generator_ = null;
        }
        uniformBuilder_.clear();
      }
      return this;
    }
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     */
    public ai.promoted.proto.delivery.HyperloopUniformGenerator.Builder getUniformBuilder() {
      return getUniformFieldBuilder().getBuilder();
    }
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     */
    @java.lang.Override
    public ai.promoted.proto.delivery.HyperloopUniformGeneratorOrBuilder getUniformOrBuilder() {
      if ((generatorCase_ == 1) && (uniformBuilder_ != null)) {
        return uniformBuilder_.getMessageOrBuilder();
      } else {
        if (generatorCase_ == 1) {
          return (ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_;
        }
        return ai.promoted.proto.delivery.HyperloopUniformGenerator.getDefaultInstance();
      }
    }
    /**
     * .delivery.HyperloopUniformGenerator uniform = 1 [json_name = "uniform"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.HyperloopUniformGenerator, ai.promoted.proto.delivery.HyperloopUniformGenerator.Builder, ai.promoted.proto.delivery.HyperloopUniformGeneratorOrBuilder> 
        getUniformFieldBuilder() {
      if (uniformBuilder_ == null) {
        if (!(generatorCase_ == 1)) {
          generator_ = ai.promoted.proto.delivery.HyperloopUniformGenerator.getDefaultInstance();
        }
        uniformBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.delivery.HyperloopUniformGenerator, ai.promoted.proto.delivery.HyperloopUniformGenerator.Builder, ai.promoted.proto.delivery.HyperloopUniformGeneratorOrBuilder>(
                (ai.promoted.proto.delivery.HyperloopUniformGenerator) generator_,
                getParentForChildren(),
                isClean());
        generator_ = null;
      }
      generatorCase_ = 1;
      onChanged();;
      return uniformBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.HyperloopUniformMultiGenerator, ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.Builder, ai.promoted.proto.delivery.HyperloopUniformMultiGeneratorOrBuilder> uniformMultiBuilder_;
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     * @return Whether the uniformMulti field is set.
     */
    @java.lang.Override
    public boolean hasUniformMulti() {
      return generatorCase_ == 2;
    }
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     * @return The uniformMulti.
     */
    @java.lang.Override
    public ai.promoted.proto.delivery.HyperloopUniformMultiGenerator getUniformMulti() {
      if (uniformMultiBuilder_ == null) {
        if (generatorCase_ == 2) {
          return (ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_;
        }
        return ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.getDefaultInstance();
      } else {
        if (generatorCase_ == 2) {
          return uniformMultiBuilder_.getMessage();
        }
        return ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.getDefaultInstance();
      }
    }
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     */
    public Builder setUniformMulti(ai.promoted.proto.delivery.HyperloopUniformMultiGenerator value) {
      if (uniformMultiBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        generator_ = value;
        onChanged();
      } else {
        uniformMultiBuilder_.setMessage(value);
      }
      generatorCase_ = 2;
      return this;
    }
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     */
    public Builder setUniformMulti(
        ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.Builder builderForValue) {
      if (uniformMultiBuilder_ == null) {
        generator_ = builderForValue.build();
        onChanged();
      } else {
        uniformMultiBuilder_.setMessage(builderForValue.build());
      }
      generatorCase_ = 2;
      return this;
    }
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     */
    public Builder mergeUniformMulti(ai.promoted.proto.delivery.HyperloopUniformMultiGenerator value) {
      if (uniformMultiBuilder_ == null) {
        if (generatorCase_ == 2 &&
            generator_ != ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.getDefaultInstance()) {
          generator_ = ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.newBuilder((ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_)
              .mergeFrom(value).buildPartial();
        } else {
          generator_ = value;
        }
        onChanged();
      } else {
        if (generatorCase_ == 2) {
          uniformMultiBuilder_.mergeFrom(value);
        }
        uniformMultiBuilder_.setMessage(value);
      }
      generatorCase_ = 2;
      return this;
    }
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     */
    public Builder clearUniformMulti() {
      if (uniformMultiBuilder_ == null) {
        if (generatorCase_ == 2) {
          generatorCase_ = 0;
          generator_ = null;
          onChanged();
        }
      } else {
        if (generatorCase_ == 2) {
          generatorCase_ = 0;
          generator_ = null;
        }
        uniformMultiBuilder_.clear();
      }
      return this;
    }
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     */
    public ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.Builder getUniformMultiBuilder() {
      return getUniformMultiFieldBuilder().getBuilder();
    }
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     */
    @java.lang.Override
    public ai.promoted.proto.delivery.HyperloopUniformMultiGeneratorOrBuilder getUniformMultiOrBuilder() {
      if ((generatorCase_ == 2) && (uniformMultiBuilder_ != null)) {
        return uniformMultiBuilder_.getMessageOrBuilder();
      } else {
        if (generatorCase_ == 2) {
          return (ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_;
        }
        return ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.getDefaultInstance();
      }
    }
    /**
     * .delivery.HyperloopUniformMultiGenerator uniform_multi = 2 [json_name = "uniformMulti"];
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        ai.promoted.proto.delivery.HyperloopUniformMultiGenerator, ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.Builder, ai.promoted.proto.delivery.HyperloopUniformMultiGeneratorOrBuilder> 
        getUniformMultiFieldBuilder() {
      if (uniformMultiBuilder_ == null) {
        if (!(generatorCase_ == 2)) {
          generator_ = ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.getDefaultInstance();
        }
        uniformMultiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            ai.promoted.proto.delivery.HyperloopUniformMultiGenerator, ai.promoted.proto.delivery.HyperloopUniformMultiGenerator.Builder, ai.promoted.proto.delivery.HyperloopUniformMultiGeneratorOrBuilder>(
                (ai.promoted.proto.delivery.HyperloopUniformMultiGenerator) generator_,
                getParentForChildren(),
                isClean());
        generator_ = null;
      }
      generatorCase_ = 2;
      onChanged();;
      return uniformMultiBuilder_;
    }
    @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.HyperloopGeneratorExpression)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy