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

alluxio.grpc.CommitBlockPRequest Maven / Gradle / Ivy

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

package alluxio.grpc;

/**
 * Protobuf type {@code alluxio.grpc.block.CommitBlockPRequest}
 */
public final class CommitBlockPRequest extends
    alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:alluxio.grpc.block.CommitBlockPRequest)
    CommitBlockPRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CommitBlockPRequest.newBuilder() to construct.
  private CommitBlockPRequest(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CommitBlockPRequest() {
    tierAlias_ = "";
    mediumType_ = "";
  }

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

  @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.BlockMasterProto.internal_static_alluxio_grpc_block_CommitBlockPRequest_descriptor;
  }

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

  private int bitField0_;
  public static final int WORKERID_FIELD_NUMBER = 1;
  private long workerId_;
  /**
   * 
   ** the id of the worker 
   * 
* * optional int64 workerId = 1; * @return Whether the workerId field is set. */ @java.lang.Override public boolean hasWorkerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   ** the id of the worker 
   * 
* * optional int64 workerId = 1; * @return The workerId. */ @java.lang.Override public long getWorkerId() { return workerId_; } public static final int USEDBYTESONTIER_FIELD_NUMBER = 2; private long usedBytesOnTier_; /** *
   ** the space used in bytes on the target tier 
   * 
* * optional int64 usedBytesOnTier = 2; * @return Whether the usedBytesOnTier field is set. */ @java.lang.Override public boolean hasUsedBytesOnTier() { return ((bitField0_ & 0x00000002) != 0); } /** *
   ** the space used in bytes on the target tier 
   * 
* * optional int64 usedBytesOnTier = 2; * @return The usedBytesOnTier. */ @java.lang.Override public long getUsedBytesOnTier() { return usedBytesOnTier_; } public static final int TIERALIAS_FIELD_NUMBER = 3; private volatile java.lang.Object tierAlias_; /** *
   ** the alias of the target tier 
   * 
* * optional string tierAlias = 3; * @return Whether the tierAlias field is set. */ @java.lang.Override public boolean hasTierAlias() { return ((bitField0_ & 0x00000004) != 0); } /** *
   ** the alias of the target tier 
   * 
* * optional string tierAlias = 3; * @return The tierAlias. */ @java.lang.Override public java.lang.String getTierAlias() { java.lang.Object ref = tierAlias_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { tierAlias_ = s; } return s; } } /** *
   ** the alias of the target tier 
   * 
* * optional string tierAlias = 3; * @return The bytes for tierAlias. */ @java.lang.Override public alluxio.shaded.client.com.google.protobuf.ByteString getTierAliasBytes() { java.lang.Object ref = tierAlias_; if (ref instanceof java.lang.String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tierAlias_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } public static final int BLOCKID_FIELD_NUMBER = 4; private long blockId_; /** *
   ** the id of the block being alluxio.shaded.client.com.itted 
   * 
* * optional int64 blockId = 4; * @return Whether the blockId field is set. */ @java.lang.Override public boolean hasBlockId() { return ((bitField0_ & 0x00000008) != 0); } /** *
   ** the id of the block being alluxio.shaded.client.com.itted 
   * 
* * optional int64 blockId = 4; * @return The blockId. */ @java.lang.Override public long getBlockId() { return blockId_; } public static final int LENGTH_FIELD_NUMBER = 5; private long length_; /** *
   ** the length of the block being alluxio.shaded.client.com.itted 
   * 
* * optional int64 length = 5; * @return Whether the length field is set. */ @java.lang.Override public boolean hasLength() { return ((bitField0_ & 0x00000010) != 0); } /** *
   ** the length of the block being alluxio.shaded.client.com.itted 
   * 
* * optional int64 length = 5; * @return The length. */ @java.lang.Override public long getLength() { return length_; } public static final int OPTIONS_FIELD_NUMBER = 6; private alluxio.grpc.CommitBlockPOptions options_; /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; * @return Whether the options field is set. */ @java.lang.Override public boolean hasOptions() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; * @return The options. */ @java.lang.Override public alluxio.grpc.CommitBlockPOptions getOptions() { return options_ == null ? alluxio.grpc.CommitBlockPOptions.getDefaultInstance() : options_; } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; */ @java.lang.Override public alluxio.grpc.CommitBlockPOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? alluxio.grpc.CommitBlockPOptions.getDefaultInstance() : options_; } public static final int MEDIUMTYPE_FIELD_NUMBER = 7; private volatile java.lang.Object mediumType_; /** * optional string mediumType = 7; * @return Whether the mediumType field is set. */ @java.lang.Override public boolean hasMediumType() { return ((bitField0_ & 0x00000040) != 0); } /** * optional string mediumType = 7; * @return The mediumType. */ @java.lang.Override public java.lang.String getMediumType() { java.lang.Object ref = mediumType_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { mediumType_ = s; } return s; } } /** * optional string mediumType = 7; * @return The bytes for mediumType. */ @java.lang.Override public alluxio.shaded.client.com.google.protobuf.ByteString getMediumTypeBytes() { java.lang.Object ref = mediumType_; if (ref instanceof java.lang.String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mediumType_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } 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(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output) throws java.alluxio.shaded.client.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, workerId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, usedBytesOnTier_); } if (((bitField0_ & 0x00000004) != 0)) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tierAlias_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt64(4, blockId_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt64(5, length_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getOptions()); } if (((bitField0_ & 0x00000040) != 0)) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 7, mediumType_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(1, workerId_); } if (((bitField0_ & 0x00000002) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(2, usedBytesOnTier_); } if (((bitField0_ & 0x00000004) != 0)) { size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(3, tierAlias_); } if (((bitField0_ & 0x00000008) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(4, blockId_); } if (((bitField0_ & 0x00000010) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(5, length_); } if (((bitField0_ & 0x00000020) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteMessageSize(6, getOptions()); } if (((bitField0_ & 0x00000040) != 0)) { size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(7, mediumType_); } 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.CommitBlockPRequest)) { return super.equals(obj); } alluxio.grpc.CommitBlockPRequest other = (alluxio.grpc.CommitBlockPRequest) obj; if (hasWorkerId() != other.hasWorkerId()) return false; if (hasWorkerId()) { if (getWorkerId() != other.getWorkerId()) return false; } if (hasUsedBytesOnTier() != other.hasUsedBytesOnTier()) return false; if (hasUsedBytesOnTier()) { if (getUsedBytesOnTier() != other.getUsedBytesOnTier()) return false; } if (hasTierAlias() != other.hasTierAlias()) return false; if (hasTierAlias()) { if (!getTierAlias() .equals(other.getTierAlias())) return false; } if (hasBlockId() != other.hasBlockId()) return false; if (hasBlockId()) { if (getBlockId() != other.getBlockId()) return false; } if (hasLength() != other.hasLength()) return false; if (hasLength()) { if (getLength() != other.getLength()) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (hasMediumType() != other.hasMediumType()) return false; if (hasMediumType()) { if (!getMediumType() .equals(other.getMediumType())) 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 (hasWorkerId()) { hash = (37 * hash) + WORKERID_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getWorkerId()); } if (hasUsedBytesOnTier()) { hash = (37 * hash) + USEDBYTESONTIER_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getUsedBytesOnTier()); } if (hasTierAlias()) { hash = (37 * hash) + TIERALIAS_FIELD_NUMBER; hash = (53 * hash) + getTierAlias().hashCode(); } if (hasBlockId()) { hash = (37 * hash) + BLOCKID_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getBlockId()); } if (hasLength()) { hash = (37 * hash) + LENGTH_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getLength()); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } if (hasMediumType()) { hash = (37 * hash) + MEDIUMTYPE_FIELD_NUMBER; hash = (53 * hash) + getMediumType().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static alluxio.grpc.CommitBlockPRequest parseFrom( java.nio.ByteBuffer data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest parseFrom(byte[] data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest 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.CommitBlockPRequest} */ public static final class Builder extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:alluxio.grpc.block.CommitBlockPRequest) alluxio.grpc.CommitBlockPRequestOrBuilder { public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.BlockMasterProto.internal_static_alluxio_grpc_block_CommitBlockPRequest_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.BlockMasterProto.internal_static_alluxio_grpc_block_CommitBlockPRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.CommitBlockPRequest.class, alluxio.grpc.CommitBlockPRequest.Builder.class); } // Construct using alluxio.grpc.CommitBlockPRequest.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) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); workerId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); usedBytesOnTier_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); tierAlias_ = ""; bitField0_ = (bitField0_ & ~0x00000004); blockId_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); length_ = 0L; bitField0_ = (bitField0_ & ~0x00000010); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); mediumType_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.grpc.BlockMasterProto.internal_static_alluxio_grpc_block_CommitBlockPRequest_descriptor; } @java.lang.Override public alluxio.grpc.CommitBlockPRequest getDefaultInstanceForType() { return alluxio.grpc.CommitBlockPRequest.getDefaultInstance(); } @java.lang.Override public alluxio.grpc.CommitBlockPRequest build() { alluxio.grpc.CommitBlockPRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public alluxio.grpc.CommitBlockPRequest buildPartial() { alluxio.grpc.CommitBlockPRequest result = new alluxio.grpc.CommitBlockPRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.workerId_ = workerId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.usedBytesOnTier_ = usedBytesOnTier_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.tierAlias_ = tierAlias_; if (((from_bitField0_ & 0x00000008) != 0)) { result.blockId_ = blockId_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.length_ = length_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000040; } result.mediumType_ = mediumType_; 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.CommitBlockPRequest) { return mergeFrom((alluxio.grpc.CommitBlockPRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.grpc.CommitBlockPRequest other) { if (other == alluxio.grpc.CommitBlockPRequest.getDefaultInstance()) return this; if (other.hasWorkerId()) { setWorkerId(other.getWorkerId()); } if (other.hasUsedBytesOnTier()) { setUsedBytesOnTier(other.getUsedBytesOnTier()); } if (other.hasTierAlias()) { bitField0_ |= 0x00000004; tierAlias_ = other.tierAlias_; onChanged(); } if (other.hasBlockId()) { setBlockId(other.getBlockId()); } if (other.hasLength()) { setLength(other.getLength()); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } if (other.hasMediumType()) { bitField0_ |= 0x00000040; mediumType_ = other.mediumType_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { 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 8: { workerId_ = input.readInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { usedBytesOnTier_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { tierAlias_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { blockId_ = input.readInt64(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { length_ = input.readInt64(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage( getOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { mediumType_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 58 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 long workerId_ ; /** *
     ** the id of the worker 
     * 
* * optional int64 workerId = 1; * @return Whether the workerId field is set. */ @java.lang.Override public boolean hasWorkerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     ** the id of the worker 
     * 
* * optional int64 workerId = 1; * @return The workerId. */ @java.lang.Override public long getWorkerId() { return workerId_; } /** *
     ** the id of the worker 
     * 
* * optional int64 workerId = 1; * @param value The workerId to set. * @return This builder for chaining. */ public Builder setWorkerId(long value) { bitField0_ |= 0x00000001; workerId_ = value; onChanged(); return this; } /** *
     ** the id of the worker 
     * 
* * optional int64 workerId = 1; * @return This builder for chaining. */ public Builder clearWorkerId() { bitField0_ = (bitField0_ & ~0x00000001); workerId_ = 0L; onChanged(); return this; } private long usedBytesOnTier_ ; /** *
     ** the space used in bytes on the target tier 
     * 
* * optional int64 usedBytesOnTier = 2; * @return Whether the usedBytesOnTier field is set. */ @java.lang.Override public boolean hasUsedBytesOnTier() { return ((bitField0_ & 0x00000002) != 0); } /** *
     ** the space used in bytes on the target tier 
     * 
* * optional int64 usedBytesOnTier = 2; * @return The usedBytesOnTier. */ @java.lang.Override public long getUsedBytesOnTier() { return usedBytesOnTier_; } /** *
     ** the space used in bytes on the target tier 
     * 
* * optional int64 usedBytesOnTier = 2; * @param value The usedBytesOnTier to set. * @return This builder for chaining. */ public Builder setUsedBytesOnTier(long value) { bitField0_ |= 0x00000002; usedBytesOnTier_ = value; onChanged(); return this; } /** *
     ** the space used in bytes on the target tier 
     * 
* * optional int64 usedBytesOnTier = 2; * @return This builder for chaining. */ public Builder clearUsedBytesOnTier() { bitField0_ = (bitField0_ & ~0x00000002); usedBytesOnTier_ = 0L; onChanged(); return this; } private java.lang.Object tierAlias_ = ""; /** *
     ** the alias of the target tier 
     * 
* * optional string tierAlias = 3; * @return Whether the tierAlias field is set. */ public boolean hasTierAlias() { return ((bitField0_ & 0x00000004) != 0); } /** *
     ** the alias of the target tier 
     * 
* * optional string tierAlias = 3; * @return The tierAlias. */ public java.lang.String getTierAlias() { java.lang.Object ref = tierAlias_; if (!(ref instanceof java.lang.String)) { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { tierAlias_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     ** the alias of the target tier 
     * 
* * optional string tierAlias = 3; * @return The bytes for tierAlias. */ public alluxio.shaded.client.com.google.protobuf.ByteString getTierAliasBytes() { java.lang.Object ref = tierAlias_; if (ref instanceof String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); tierAlias_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } /** *
     ** the alias of the target tier 
     * 
* * optional string tierAlias = 3; * @param value The tierAlias to set. * @return This builder for chaining. */ public Builder setTierAlias( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tierAlias_ = value; onChanged(); return this; } /** *
     ** the alias of the target tier 
     * 
* * optional string tierAlias = 3; * @return This builder for chaining. */ public Builder clearTierAlias() { bitField0_ = (bitField0_ & ~0x00000004); tierAlias_ = getDefaultInstance().getTierAlias(); onChanged(); return this; } /** *
     ** the alias of the target tier 
     * 
* * optional string tierAlias = 3; * @param value The bytes for tierAlias to set. * @return This builder for chaining. */ public Builder setTierAliasBytes( alluxio.shaded.client.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tierAlias_ = value; onChanged(); return this; } private long blockId_ ; /** *
     ** the id of the block being alluxio.shaded.client.com.itted 
     * 
* * optional int64 blockId = 4; * @return Whether the blockId field is set. */ @java.lang.Override public boolean hasBlockId() { return ((bitField0_ & 0x00000008) != 0); } /** *
     ** the id of the block being alluxio.shaded.client.com.itted 
     * 
* * optional int64 blockId = 4; * @return The blockId. */ @java.lang.Override public long getBlockId() { return blockId_; } /** *
     ** the id of the block being alluxio.shaded.client.com.itted 
     * 
* * optional int64 blockId = 4; * @param value The blockId to set. * @return This builder for chaining. */ public Builder setBlockId(long value) { bitField0_ |= 0x00000008; blockId_ = value; onChanged(); return this; } /** *
     ** the id of the block being alluxio.shaded.client.com.itted 
     * 
* * optional int64 blockId = 4; * @return This builder for chaining. */ public Builder clearBlockId() { bitField0_ = (bitField0_ & ~0x00000008); blockId_ = 0L; onChanged(); return this; } private long length_ ; /** *
     ** the length of the block being alluxio.shaded.client.com.itted 
     * 
* * optional int64 length = 5; * @return Whether the length field is set. */ @java.lang.Override public boolean hasLength() { return ((bitField0_ & 0x00000010) != 0); } /** *
     ** the length of the block being alluxio.shaded.client.com.itted 
     * 
* * optional int64 length = 5; * @return The length. */ @java.lang.Override public long getLength() { return length_; } /** *
     ** the length of the block being alluxio.shaded.client.com.itted 
     * 
* * optional int64 length = 5; * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(long value) { bitField0_ |= 0x00000010; length_ = value; onChanged(); return this; } /** *
     ** the length of the block being alluxio.shaded.client.com.itted 
     * 
* * optional int64 length = 5; * @return This builder for chaining. */ public Builder clearLength() { bitField0_ = (bitField0_ & ~0x00000010); length_ = 0L; onChanged(); return this; } private alluxio.grpc.CommitBlockPOptions options_; private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.CommitBlockPOptions, alluxio.grpc.CommitBlockPOptions.Builder, alluxio.grpc.CommitBlockPOptionsOrBuilder> optionsBuilder_; /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; * @return The options. */ public alluxio.grpc.CommitBlockPOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? alluxio.grpc.CommitBlockPOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; */ public Builder setOptions(alluxio.grpc.CommitBlockPOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; */ public Builder setOptions( alluxio.grpc.CommitBlockPOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; */ public Builder mergeOptions(alluxio.grpc.CommitBlockPOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && options_ != null && options_ != alluxio.grpc.CommitBlockPOptions.getDefaultInstance()) { options_ = alluxio.grpc.CommitBlockPOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; */ public alluxio.grpc.CommitBlockPOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; */ public alluxio.grpc.CommitBlockPOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? alluxio.grpc.CommitBlockPOptions.getDefaultInstance() : options_; } } /** * optional .alluxio.grpc.block.CommitBlockPOptions options = 6; */ private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.CommitBlockPOptions, alluxio.grpc.CommitBlockPOptions.Builder, alluxio.grpc.CommitBlockPOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.CommitBlockPOptions, alluxio.grpc.CommitBlockPOptions.Builder, alluxio.grpc.CommitBlockPOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private java.lang.Object mediumType_ = ""; /** * optional string mediumType = 7; * @return Whether the mediumType field is set. */ public boolean hasMediumType() { return ((bitField0_ & 0x00000040) != 0); } /** * optional string mediumType = 7; * @return The mediumType. */ public java.lang.String getMediumType() { java.lang.Object ref = mediumType_; if (!(ref instanceof java.lang.String)) { alluxio.shaded.client.com.google.protobuf.ByteString bs = (alluxio.shaded.client.com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { mediumType_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string mediumType = 7; * @return The bytes for mediumType. */ public alluxio.shaded.client.com.google.protobuf.ByteString getMediumTypeBytes() { java.lang.Object ref = mediumType_; if (ref instanceof String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mediumType_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } /** * optional string mediumType = 7; * @param value The mediumType to set. * @return This builder for chaining. */ public Builder setMediumType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; mediumType_ = value; onChanged(); return this; } /** * optional string mediumType = 7; * @return This builder for chaining. */ public Builder clearMediumType() { bitField0_ = (bitField0_ & ~0x00000040); mediumType_ = getDefaultInstance().getMediumType(); onChanged(); return this; } /** * optional string mediumType = 7; * @param value The bytes for mediumType to set. * @return This builder for chaining. */ public Builder setMediumTypeBytes( alluxio.shaded.client.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; mediumType_ = value; onChanged(); return this; } @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.CommitBlockPRequest) } // @@protoc_insertion_point(class_scope:alluxio.grpc.block.CommitBlockPRequest) private static final alluxio.grpc.CommitBlockPRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new alluxio.grpc.CommitBlockPRequest(); } public static alluxio.grpc.CommitBlockPRequest 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 CommitBlockPRequest 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.CommitBlockPRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy