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

alluxio.grpc.CopyRequest Maven / Gradle / Ivy

// Generated by the protocol buffer alluxio.shaded.client.com.iler.  DO NOT EDIT!
// source: grpc/block_worker.proto

package alluxio.grpc;

/**
 * Protobuf type {@code alluxio.grpc.block.CopyRequest}
 */
public final class CopyRequest extends
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:alluxio.grpc.block.CopyRequest)
    CopyRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CopyRequest.newBuilder() to construct.
  private CopyRequest(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CopyRequest() {
    routes_ = java.util.Collections.emptyList();
  }

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

  @java.lang.Override
  public final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_CopyRequest_descriptor;
  }

  @java.lang.Override
  protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_CopyRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            alluxio.grpc.CopyRequest.class, alluxio.grpc.CopyRequest.Builder.class);
  }

  private int bitField0_;
  public static final int ROUTES_FIELD_NUMBER = 1;
  private java.util.List routes_;
  /**
   * repeated .alluxio.grpc.block.Route routes = 1;
   */
  @java.lang.Override
  public java.util.List getRoutesList() {
    return routes_;
  }
  /**
   * repeated .alluxio.grpc.block.Route routes = 1;
   */
  @java.lang.Override
  public java.util.List 
      getRoutesOrBuilderList() {
    return routes_;
  }
  /**
   * repeated .alluxio.grpc.block.Route routes = 1;
   */
  @java.lang.Override
  public int getRoutesCount() {
    return routes_.size();
  }
  /**
   * repeated .alluxio.grpc.block.Route routes = 1;
   */
  @java.lang.Override
  public alluxio.grpc.Route getRoutes(int index) {
    return routes_.get(index);
  }
  /**
   * repeated .alluxio.grpc.block.Route routes = 1;
   */
  @java.lang.Override
  public alluxio.grpc.RouteOrBuilder getRoutesOrBuilder(
      int index) {
    return routes_.get(index);
  }

  public static final int UFS_READ_OPTIONS_FIELD_NUMBER = 2;
  private alluxio.grpc.UfsReadOptions ufsReadOptions_;
  /**
   * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
   * @return Whether the ufsReadOptions field is set.
   */
  @java.lang.Override
  public boolean hasUfsReadOptions() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
   * @return The ufsReadOptions.
   */
  @java.lang.Override
  public alluxio.grpc.UfsReadOptions getUfsReadOptions() {
    return ufsReadOptions_ == null ? alluxio.grpc.UfsReadOptions.getDefaultInstance() : ufsReadOptions_;
  }
  /**
   * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
   */
  @java.lang.Override
  public alluxio.grpc.UfsReadOptionsOrBuilder getUfsReadOptionsOrBuilder() {
    return ufsReadOptions_ == null ? alluxio.grpc.UfsReadOptions.getDefaultInstance() : ufsReadOptions_;
  }

  public static final int WRITE_OPTIONS_FIELD_NUMBER = 3;
  private alluxio.grpc.WriteOptions writeOptions_;
  /**
   * required .alluxio.grpc.block.WriteOptions write_options = 3;
   * @return Whether the writeOptions field is set.
   */
  @java.lang.Override
  public boolean hasWriteOptions() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * required .alluxio.grpc.block.WriteOptions write_options = 3;
   * @return The writeOptions.
   */
  @java.lang.Override
  public alluxio.grpc.WriteOptions getWriteOptions() {
    return writeOptions_ == null ? alluxio.grpc.WriteOptions.getDefaultInstance() : writeOptions_;
  }
  /**
   * required .alluxio.grpc.block.WriteOptions write_options = 3;
   */
  @java.lang.Override
  public alluxio.grpc.WriteOptionsOrBuilder getWriteOptionsOrBuilder() {
    return writeOptions_ == null ? alluxio.grpc.WriteOptions.getDefaultInstance() : writeOptions_;
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    if (!hasWriteOptions()) {
      memoizedIsInitialized = 0;
      return false;
    }
    for (int i = 0; i < getRoutesCount(); i++) {
      if (!getRoutes(i).isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
    }
    if (hasUfsReadOptions()) {
      if (!getUfsReadOptions().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
    }
    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output)
                      throws java.alluxio.shaded.client.io.IOException {
    for (int i = 0; i < routes_.size(); i++) {
      output.writeMessage(1, routes_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(2, getUfsReadOptions());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getWriteOptions());
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < routes_.size(); i++) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteMessageSize(1, routes_.get(i));
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteMessageSize(2, getUfsReadOptions());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream
        .alluxio.shaded.client.com.uteMessageSize(3, getWriteOptions());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof alluxio.grpc.CopyRequest)) {
      return super.equals(obj);
    }
    alluxio.grpc.CopyRequest other = (alluxio.grpc.CopyRequest) obj;

    if (!getRoutesList()
        .equals(other.getRoutesList())) return false;
    if (hasUfsReadOptions() != other.hasUfsReadOptions()) return false;
    if (hasUfsReadOptions()) {
      if (!getUfsReadOptions()
          .equals(other.getUfsReadOptions())) return false;
    }
    if (hasWriteOptions() != other.hasWriteOptions()) return false;
    if (hasWriteOptions()) {
      if (!getWriteOptions()
          .equals(other.getWriteOptions())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getRoutesCount() > 0) {
      hash = (37 * hash) + ROUTES_FIELD_NUMBER;
      hash = (53 * hash) + getRoutesList().hashCode();
    }
    if (hasUfsReadOptions()) {
      hash = (37 * hash) + UFS_READ_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getUfsReadOptions().hashCode();
    }
    if (hasWriteOptions()) {
      hash = (37 * hash) + WRITE_OPTIONS_FIELD_NUMBER;
      hash = (53 * hash) + getWriteOptions().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static alluxio.grpc.CopyRequest parseFrom(
      java.nio.ByteBuffer data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.CopyRequest parseFrom(
      java.nio.ByteBuffer data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.CopyRequest parseFrom(
      alluxio.shaded.client.com.google.protobuf.ByteString data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.CopyRequest parseFrom(
      alluxio.shaded.client.com.google.protobuf.ByteString data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.CopyRequest parseFrom(byte[] data)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static alluxio.grpc.CopyRequest parseFrom(
      byte[] data,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static alluxio.grpc.CopyRequest parseFrom(java.alluxio.shaded.client.io.InputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static alluxio.grpc.CopyRequest parseFrom(
      java.alluxio.shaded.client.io.InputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }
  public static alluxio.grpc.CopyRequest parseDelimitedFrom(java.alluxio.shaded.client.io.InputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static alluxio.grpc.CopyRequest parseDelimitedFrom(
      java.alluxio.shaded.client.io.InputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static alluxio.grpc.CopyRequest parseFrom(
      alluxio.shaded.client.com.google.protobuf.CodedInputStream input)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static alluxio.grpc.CopyRequest parseFrom(
      alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
      alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.alluxio.shaded.client.io.IOException {
    return alluxio.shaded.client.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(alluxio.grpc.CopyRequest 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(
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code alluxio.grpc.block.CopyRequest}
   */
  public static final class Builder extends
      alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:alluxio.grpc.block.CopyRequest)
      alluxio.grpc.CopyRequestOrBuilder {
    public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_CopyRequest_descriptor;
    }

    @java.lang.Override
    protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_CopyRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              alluxio.grpc.CopyRequest.class, alluxio.grpc.CopyRequest.Builder.class);
    }

    // Construct using alluxio.grpc.CopyRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getRoutesFieldBuilder();
        getUfsReadOptionsFieldBuilder();
        getWriteOptionsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (routesBuilder_ == null) {
        routes_ = java.util.Collections.emptyList();
      } else {
        routes_ = null;
        routesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      if (ufsReadOptionsBuilder_ == null) {
        ufsReadOptions_ = null;
      } else {
        ufsReadOptionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      if (writeOptionsBuilder_ == null) {
        writeOptions_ = null;
      } else {
        writeOptionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }

    @java.lang.Override
    public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_CopyRequest_descriptor;
    }

    @java.lang.Override
    public alluxio.grpc.CopyRequest getDefaultInstanceForType() {
      return alluxio.grpc.CopyRequest.getDefaultInstance();
    }

    @java.lang.Override
    public alluxio.grpc.CopyRequest build() {
      alluxio.grpc.CopyRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public alluxio.grpc.CopyRequest buildPartial() {
      alluxio.grpc.CopyRequest result = new alluxio.grpc.CopyRequest(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (routesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          routes_ = java.util.Collections.unmodifiableList(routes_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.routes_ = routes_;
      } else {
        result.routes_ = routesBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        if (ufsReadOptionsBuilder_ == null) {
          result.ufsReadOptions_ = ufsReadOptions_;
        } else {
          result.ufsReadOptions_ = ufsReadOptionsBuilder_.build();
        }
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        if (writeOptionsBuilder_ == null) {
          result.writeOptions_ = writeOptions_;
        } else {
          result.writeOptions_ = writeOptionsBuilder_.build();
        }
        to_bitField0_ |= 0x00000002;
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        alluxio.shaded.client.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        alluxio.shaded.client.com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(alluxio.shaded.client.com.google.protobuf.Message other) {
      if (other instanceof alluxio.grpc.CopyRequest) {
        return mergeFrom((alluxio.grpc.CopyRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(alluxio.grpc.CopyRequest other) {
      if (other == alluxio.grpc.CopyRequest.getDefaultInstance()) return this;
      if (routesBuilder_ == null) {
        if (!other.routes_.isEmpty()) {
          if (routes_.isEmpty()) {
            routes_ = other.routes_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureRoutesIsMutable();
            routes_.addAll(other.routes_);
          }
          onChanged();
        }
      } else {
        if (!other.routes_.isEmpty()) {
          if (routesBuilder_.isEmpty()) {
            routesBuilder_.dispose();
            routesBuilder_ = null;
            routes_ = other.routes_;
            bitField0_ = (bitField0_ & ~0x00000001);
            routesBuilder_ = 
              alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getRoutesFieldBuilder() : null;
          } else {
            routesBuilder_.addAllMessages(other.routes_);
          }
        }
      }
      if (other.hasUfsReadOptions()) {
        mergeUfsReadOptions(other.getUfsReadOptions());
      }
      if (other.hasWriteOptions()) {
        mergeWriteOptions(other.getWriteOptions());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      if (!hasWriteOptions()) {
        return false;
      }
      for (int i = 0; i < getRoutesCount(); i++) {
        if (!getRoutes(i).isInitialized()) {
          return false;
        }
      }
      if (hasUfsReadOptions()) {
        if (!getUfsReadOptions().isInitialized()) {
          return false;
        }
      }
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
        alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.alluxio.shaded.client.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              alluxio.grpc.Route m =
                  input.readMessage(
                      alluxio.grpc.Route.PARSER,
                      extensionRegistry);
              if (routesBuilder_ == null) {
                ensureRoutesIsMutable();
                routes_.add(m);
              } else {
                routesBuilder_.addMessage(m);
              }
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getUfsReadOptionsFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getWriteOptionsFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private java.util.List routes_ =
      java.util.Collections.emptyList();
    private void ensureRoutesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        routes_ = new java.util.ArrayList(routes_);
        bitField0_ |= 0x00000001;
       }
    }

    private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
        alluxio.grpc.Route, alluxio.grpc.Route.Builder, alluxio.grpc.RouteOrBuilder> routesBuilder_;

    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public java.util.List getRoutesList() {
      if (routesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(routes_);
      } else {
        return routesBuilder_.getMessageList();
      }
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public int getRoutesCount() {
      if (routesBuilder_ == null) {
        return routes_.size();
      } else {
        return routesBuilder_.getCount();
      }
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public alluxio.grpc.Route getRoutes(int index) {
      if (routesBuilder_ == null) {
        return routes_.get(index);
      } else {
        return routesBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder setRoutes(
        int index, alluxio.grpc.Route value) {
      if (routesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRoutesIsMutable();
        routes_.set(index, value);
        onChanged();
      } else {
        routesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder setRoutes(
        int index, alluxio.grpc.Route.Builder builderForValue) {
      if (routesBuilder_ == null) {
        ensureRoutesIsMutable();
        routes_.set(index, builderForValue.build());
        onChanged();
      } else {
        routesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder addRoutes(alluxio.grpc.Route value) {
      if (routesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRoutesIsMutable();
        routes_.add(value);
        onChanged();
      } else {
        routesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder addRoutes(
        int index, alluxio.grpc.Route value) {
      if (routesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureRoutesIsMutable();
        routes_.add(index, value);
        onChanged();
      } else {
        routesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder addRoutes(
        alluxio.grpc.Route.Builder builderForValue) {
      if (routesBuilder_ == null) {
        ensureRoutesIsMutable();
        routes_.add(builderForValue.build());
        onChanged();
      } else {
        routesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder addRoutes(
        int index, alluxio.grpc.Route.Builder builderForValue) {
      if (routesBuilder_ == null) {
        ensureRoutesIsMutable();
        routes_.add(index, builderForValue.build());
        onChanged();
      } else {
        routesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder addAllRoutes(
        java.lang.Iterable values) {
      if (routesBuilder_ == null) {
        ensureRoutesIsMutable();
        alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, routes_);
        onChanged();
      } else {
        routesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder clearRoutes() {
      if (routesBuilder_ == null) {
        routes_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        routesBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public Builder removeRoutes(int index) {
      if (routesBuilder_ == null) {
        ensureRoutesIsMutable();
        routes_.remove(index);
        onChanged();
      } else {
        routesBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public alluxio.grpc.Route.Builder getRoutesBuilder(
        int index) {
      return getRoutesFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public alluxio.grpc.RouteOrBuilder getRoutesOrBuilder(
        int index) {
      if (routesBuilder_ == null) {
        return routes_.get(index);  } else {
        return routesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public java.util.List 
         getRoutesOrBuilderList() {
      if (routesBuilder_ != null) {
        return routesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(routes_);
      }
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public alluxio.grpc.Route.Builder addRoutesBuilder() {
      return getRoutesFieldBuilder().addBuilder(
          alluxio.grpc.Route.getDefaultInstance());
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public alluxio.grpc.Route.Builder addRoutesBuilder(
        int index) {
      return getRoutesFieldBuilder().addBuilder(
          index, alluxio.grpc.Route.getDefaultInstance());
    }
    /**
     * repeated .alluxio.grpc.block.Route routes = 1;
     */
    public java.util.List 
         getRoutesBuilderList() {
      return getRoutesFieldBuilder().getBuilderList();
    }
    private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
        alluxio.grpc.Route, alluxio.grpc.Route.Builder, alluxio.grpc.RouteOrBuilder> 
        getRoutesFieldBuilder() {
      if (routesBuilder_ == null) {
        routesBuilder_ = new alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3<
            alluxio.grpc.Route, alluxio.grpc.Route.Builder, alluxio.grpc.RouteOrBuilder>(
                routes_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        routes_ = null;
      }
      return routesBuilder_;
    }

    private alluxio.grpc.UfsReadOptions ufsReadOptions_;
    private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
        alluxio.grpc.UfsReadOptions, alluxio.grpc.UfsReadOptions.Builder, alluxio.grpc.UfsReadOptionsOrBuilder> ufsReadOptionsBuilder_;
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     * @return Whether the ufsReadOptions field is set.
     */
    public boolean hasUfsReadOptions() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     * @return The ufsReadOptions.
     */
    public alluxio.grpc.UfsReadOptions getUfsReadOptions() {
      if (ufsReadOptionsBuilder_ == null) {
        return ufsReadOptions_ == null ? alluxio.grpc.UfsReadOptions.getDefaultInstance() : ufsReadOptions_;
      } else {
        return ufsReadOptionsBuilder_.getMessage();
      }
    }
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     */
    public Builder setUfsReadOptions(alluxio.grpc.UfsReadOptions value) {
      if (ufsReadOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ufsReadOptions_ = value;
        onChanged();
      } else {
        ufsReadOptionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     */
    public Builder setUfsReadOptions(
        alluxio.grpc.UfsReadOptions.Builder builderForValue) {
      if (ufsReadOptionsBuilder_ == null) {
        ufsReadOptions_ = builderForValue.build();
        onChanged();
      } else {
        ufsReadOptionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     */
    public Builder mergeUfsReadOptions(alluxio.grpc.UfsReadOptions value) {
      if (ufsReadOptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
            ufsReadOptions_ != null &&
            ufsReadOptions_ != alluxio.grpc.UfsReadOptions.getDefaultInstance()) {
          ufsReadOptions_ =
            alluxio.grpc.UfsReadOptions.newBuilder(ufsReadOptions_).mergeFrom(value).buildPartial();
        } else {
          ufsReadOptions_ = value;
        }
        onChanged();
      } else {
        ufsReadOptionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     */
    public Builder clearUfsReadOptions() {
      if (ufsReadOptionsBuilder_ == null) {
        ufsReadOptions_ = null;
        onChanged();
      } else {
        ufsReadOptionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     */
    public alluxio.grpc.UfsReadOptions.Builder getUfsReadOptionsBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getUfsReadOptionsFieldBuilder().getBuilder();
    }
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     */
    public alluxio.grpc.UfsReadOptionsOrBuilder getUfsReadOptionsOrBuilder() {
      if (ufsReadOptionsBuilder_ != null) {
        return ufsReadOptionsBuilder_.getMessageOrBuilder();
      } else {
        return ufsReadOptions_ == null ?
            alluxio.grpc.UfsReadOptions.getDefaultInstance() : ufsReadOptions_;
      }
    }
    /**
     * optional .alluxio.grpc.block.UfsReadOptions ufs_read_options = 2;
     */
    private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
        alluxio.grpc.UfsReadOptions, alluxio.grpc.UfsReadOptions.Builder, alluxio.grpc.UfsReadOptionsOrBuilder> 
        getUfsReadOptionsFieldBuilder() {
      if (ufsReadOptionsBuilder_ == null) {
        ufsReadOptionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
            alluxio.grpc.UfsReadOptions, alluxio.grpc.UfsReadOptions.Builder, alluxio.grpc.UfsReadOptionsOrBuilder>(
                getUfsReadOptions(),
                getParentForChildren(),
                isClean());
        ufsReadOptions_ = null;
      }
      return ufsReadOptionsBuilder_;
    }

    private alluxio.grpc.WriteOptions writeOptions_;
    private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
        alluxio.grpc.WriteOptions, alluxio.grpc.WriteOptions.Builder, alluxio.grpc.WriteOptionsOrBuilder> writeOptionsBuilder_;
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     * @return Whether the writeOptions field is set.
     */
    public boolean hasWriteOptions() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     * @return The writeOptions.
     */
    public alluxio.grpc.WriteOptions getWriteOptions() {
      if (writeOptionsBuilder_ == null) {
        return writeOptions_ == null ? alluxio.grpc.WriteOptions.getDefaultInstance() : writeOptions_;
      } else {
        return writeOptionsBuilder_.getMessage();
      }
    }
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     */
    public Builder setWriteOptions(alluxio.grpc.WriteOptions value) {
      if (writeOptionsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        writeOptions_ = value;
        onChanged();
      } else {
        writeOptionsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     */
    public Builder setWriteOptions(
        alluxio.grpc.WriteOptions.Builder builderForValue) {
      if (writeOptionsBuilder_ == null) {
        writeOptions_ = builderForValue.build();
        onChanged();
      } else {
        writeOptionsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     */
    public Builder mergeWriteOptions(alluxio.grpc.WriteOptions value) {
      if (writeOptionsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
            writeOptions_ != null &&
            writeOptions_ != alluxio.grpc.WriteOptions.getDefaultInstance()) {
          writeOptions_ =
            alluxio.grpc.WriteOptions.newBuilder(writeOptions_).mergeFrom(value).buildPartial();
        } else {
          writeOptions_ = value;
        }
        onChanged();
      } else {
        writeOptionsBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     */
    public Builder clearWriteOptions() {
      if (writeOptionsBuilder_ == null) {
        writeOptions_ = null;
        onChanged();
      } else {
        writeOptionsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     */
    public alluxio.grpc.WriteOptions.Builder getWriteOptionsBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getWriteOptionsFieldBuilder().getBuilder();
    }
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     */
    public alluxio.grpc.WriteOptionsOrBuilder getWriteOptionsOrBuilder() {
      if (writeOptionsBuilder_ != null) {
        return writeOptionsBuilder_.getMessageOrBuilder();
      } else {
        return writeOptions_ == null ?
            alluxio.grpc.WriteOptions.getDefaultInstance() : writeOptions_;
      }
    }
    /**
     * required .alluxio.grpc.block.WriteOptions write_options = 3;
     */
    private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
        alluxio.grpc.WriteOptions, alluxio.grpc.WriteOptions.Builder, alluxio.grpc.WriteOptionsOrBuilder> 
        getWriteOptionsFieldBuilder() {
      if (writeOptionsBuilder_ == null) {
        writeOptionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3<
            alluxio.grpc.WriteOptions, alluxio.grpc.WriteOptions.Builder, alluxio.grpc.WriteOptionsOrBuilder>(
                getWriteOptions(),
                getParentForChildren(),
                isClean());
        writeOptions_ = null;
      }
      return writeOptionsBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final alluxio.shaded.client.com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:alluxio.grpc.block.CopyRequest)
  }

  // @@protoc_insertion_point(class_scope:alluxio.grpc.block.CopyRequest)
  private static final alluxio.grpc.CopyRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new alluxio.grpc.CopyRequest();
  }

  public static alluxio.grpc.CopyRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final alluxio.shaded.client.com.google.protobuf.Parser
      PARSER = new alluxio.shaded.client.com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public CopyRequest parsePartialFrom(
        alluxio.shaded.client.com.google.protobuf.CodedInputStream input,
        alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (alluxio.shaded.client.com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.alluxio.shaded.client.io.IOException e) {
        throw new alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static alluxio.shaded.client.com.google.protobuf.Parser parser() {
    return PARSER;
  }

  @java.lang.Override
  public alluxio.shaded.client.com.google.protobuf.Parser getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public alluxio.grpc.CopyRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy