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

alluxio.grpc.WriteRequestCommand Maven / Gradle / Ivy

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

package alluxio.grpc;

/**
 * 
 * The write request alluxio.shaded.client.com.and.
 * next available id: 11
 * 
* * Protobuf type {@code alluxio.grpc.block.WriteRequestCommand} */ public final class WriteRequestCommand extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:alluxio.grpc.block.WriteRequestCommand) WriteRequestCommandOrBuilder { private static final long serialVersionUID = 0L; // Use WriteRequestCommand.newBuilder() to construct. private WriteRequestCommand(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private WriteRequestCommand() { type_ = 0; mediumType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new WriteRequestCommand(); } @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_WriteRequestCommand_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_WriteRequestCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.WriteRequestCommand.class, alluxio.grpc.WriteRequestCommand.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .alluxio.grpc.block.RequestType type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .alluxio.grpc.block.RequestType type = 1; * @return The type. */ @java.lang.Override public alluxio.grpc.RequestType getType() { @SuppressWarnings("deprecation") alluxio.grpc.RequestType result = alluxio.grpc.RequestType.valueOf(type_); return result == null ? alluxio.grpc.RequestType.ALLUXIO_BLOCK : result; } public static final int ID_FIELD_NUMBER = 2; private long id_; /** *
   * The block ID or UFS file ID.
   * 
* * optional int64 id = 2; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The block ID or UFS file ID.
   * 
* * optional int64 id = 2; * @return The id. */ @java.lang.Override public long getId() { return id_; } public static final int OFFSET_FIELD_NUMBER = 3; private long offset_; /** * optional int64 offset = 3; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 offset = 3; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } public static final int TIER_FIELD_NUMBER = 4; private int tier_; /** *
   * This is only applicable for block write.
   * 
* * optional int32 tier = 4; * @return Whether the tier field is set. */ @java.lang.Override public boolean hasTier() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * This is only applicable for block write.
   * 
* * optional int32 tier = 4; * @return The tier. */ @java.lang.Override public int getTier() { return tier_; } public static final int FLUSH_FIELD_NUMBER = 5; private boolean flush_; /** * optional bool flush = 5; * @return Whether the flush field is set. */ @java.lang.Override public boolean hasFlush() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool flush = 5; * @return The flush. */ @java.lang.Override public boolean getFlush() { return flush_; } public static final int CREATE_UFS_FILE_OPTIONS_FIELD_NUMBER = 6; private alluxio.proto.dataserver.Protocol.CreateUfsFileOptions createUfsFileOptions_; /** *
   * Cancel, close and error will be handled by standard gRPC stream APIs.
   * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; * @return Whether the createUfsFileOptions field is set. */ @java.lang.Override public boolean hasCreateUfsFileOptions() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Cancel, close and error will be handled by standard gRPC stream APIs.
   * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; * @return The createUfsFileOptions. */ @java.lang.Override public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions getCreateUfsFileOptions() { return createUfsFileOptions_ == null ? alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance() : createUfsFileOptions_; } /** *
   * Cancel, close and error will be handled by standard gRPC stream APIs.
   * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; */ @java.lang.Override public alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder getCreateUfsFileOptionsOrBuilder() { return createUfsFileOptions_ == null ? alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance() : createUfsFileOptions_; } public static final int MEDIUM_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object mediumType_; /** * optional string medium_type = 8; * @return Whether the mediumType field is set. */ @java.lang.Override public boolean hasMediumType() { return ((bitField0_ & 0x00000040) != 0); } /** * optional string medium_type = 8; * @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 medium_type = 8; * @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; } } public static final int PIN_ON_CREATE_FIELD_NUMBER = 9; private boolean pinOnCreate_; /** * optional bool pin_on_create = 9; * @return Whether the pinOnCreate field is set. */ @java.lang.Override public boolean hasPinOnCreate() { return ((bitField0_ & 0x00000080) != 0); } /** * optional bool pin_on_create = 9; * @return The pinOnCreate. */ @java.lang.Override public boolean getPinOnCreate() { return pinOnCreate_; } public static final int SPACE_TO_RESERVE_FIELD_NUMBER = 10; private long spaceToReserve_; /** * optional int64 space_to_reserve = 10; * @return Whether the spaceToReserve field is set. */ @java.lang.Override public boolean hasSpaceToReserve() { return ((bitField0_ & 0x00000100) != 0); } /** * optional int64 space_to_reserve = 10; * @return The spaceToReserve. */ @java.lang.Override public long getSpaceToReserve() { return spaceToReserve_; } 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.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, id_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt64(3, offset_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, tier_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, flush_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getCreateUfsFileOptions()); } if (((bitField0_ & 0x00000040) != 0)) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 8, mediumType_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(9, pinOnCreate_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt64(10, spaceToReserve_); } 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.uteEnumSize(1, type_); } if (((bitField0_ & 0x00000002) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(2, id_); } if (((bitField0_ & 0x00000004) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(3, offset_); } if (((bitField0_ & 0x00000008) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt32Size(4, tier_); } if (((bitField0_ & 0x00000010) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteBoolSize(5, flush_); } if (((bitField0_ & 0x00000020) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteMessageSize(6, getCreateUfsFileOptions()); } if (((bitField0_ & 0x00000040) != 0)) { size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(8, mediumType_); } if (((bitField0_ & 0x00000080) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteBoolSize(9, pinOnCreate_); } if (((bitField0_ & 0x00000100) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(10, spaceToReserve_); } 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.WriteRequestCommand)) { return super.equals(obj); } alluxio.grpc.WriteRequestCommand other = (alluxio.grpc.WriteRequestCommand) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (getOffset() != other.getOffset()) return false; } if (hasTier() != other.hasTier()) return false; if (hasTier()) { if (getTier() != other.getTier()) return false; } if (hasFlush() != other.hasFlush()) return false; if (hasFlush()) { if (getFlush() != other.getFlush()) return false; } if (hasCreateUfsFileOptions() != other.hasCreateUfsFileOptions()) return false; if (hasCreateUfsFileOptions()) { if (!getCreateUfsFileOptions() .equals(other.getCreateUfsFileOptions())) return false; } if (hasMediumType() != other.hasMediumType()) return false; if (hasMediumType()) { if (!getMediumType() .equals(other.getMediumType())) return false; } if (hasPinOnCreate() != other.hasPinOnCreate()) return false; if (hasPinOnCreate()) { if (getPinOnCreate() != other.getPinOnCreate()) return false; } if (hasSpaceToReserve() != other.hasSpaceToReserve()) return false; if (hasSpaceToReserve()) { if (getSpaceToReserve() != other.getSpaceToReserve()) 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getId()); } if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getOffset()); } if (hasTier()) { hash = (37 * hash) + TIER_FIELD_NUMBER; hash = (53 * hash) + getTier(); } if (hasFlush()) { hash = (37 * hash) + FLUSH_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getFlush()); } if (hasCreateUfsFileOptions()) { hash = (37 * hash) + CREATE_UFS_FILE_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getCreateUfsFileOptions().hashCode(); } if (hasMediumType()) { hash = (37 * hash) + MEDIUM_TYPE_FIELD_NUMBER; hash = (53 * hash) + getMediumType().hashCode(); } if (hasPinOnCreate()) { hash = (37 * hash) + PIN_ON_CREATE_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getPinOnCreate()); } if (hasSpaceToReserve()) { hash = (37 * hash) + SPACE_TO_RESERVE_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getSpaceToReserve()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static alluxio.grpc.WriteRequestCommand parseFrom( java.nio.ByteBuffer data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.WriteRequestCommand 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.WriteRequestCommand 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.WriteRequestCommand 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.WriteRequestCommand parseFrom(byte[] data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.WriteRequestCommand 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.WriteRequestCommand 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.WriteRequestCommand 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.WriteRequestCommand 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.WriteRequestCommand 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.WriteRequestCommand 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.WriteRequestCommand 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.WriteRequestCommand 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; } /** *
   * The write request alluxio.shaded.client.com.and.
   * next available id: 11
   * 
* * Protobuf type {@code alluxio.grpc.block.WriteRequestCommand} */ public static final class Builder extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:alluxio.grpc.block.WriteRequestCommand) alluxio.grpc.WriteRequestCommandOrBuilder { public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_WriteRequestCommand_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_WriteRequestCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.WriteRequestCommand.class, alluxio.grpc.WriteRequestCommand.Builder.class); } // Construct using alluxio.grpc.WriteRequestCommand.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) { getCreateUfsFileOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = 0; bitField0_ = (bitField0_ & ~0x00000001); id_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); offset_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); tier_ = 0; bitField0_ = (bitField0_ & ~0x00000008); flush_ = false; bitField0_ = (bitField0_ & ~0x00000010); if (createUfsFileOptionsBuilder_ == null) { createUfsFileOptions_ = null; } else { createUfsFileOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); mediumType_ = ""; bitField0_ = (bitField0_ & ~0x00000040); pinOnCreate_ = false; bitField0_ = (bitField0_ & ~0x00000080); spaceToReserve_ = 0L; bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_WriteRequestCommand_descriptor; } @java.lang.Override public alluxio.grpc.WriteRequestCommand getDefaultInstanceForType() { return alluxio.grpc.WriteRequestCommand.getDefaultInstance(); } @java.lang.Override public alluxio.grpc.WriteRequestCommand build() { alluxio.grpc.WriteRequestCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public alluxio.grpc.WriteRequestCommand buildPartial() { alluxio.grpc.WriteRequestCommand result = new alluxio.grpc.WriteRequestCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.offset_ = offset_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.tier_ = tier_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.flush_ = flush_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (createUfsFileOptionsBuilder_ == null) { result.createUfsFileOptions_ = createUfsFileOptions_; } else { result.createUfsFileOptions_ = createUfsFileOptionsBuilder_.build(); } to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000040; } result.mediumType_ = mediumType_; if (((from_bitField0_ & 0x00000080) != 0)) { result.pinOnCreate_ = pinOnCreate_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.spaceToReserve_ = spaceToReserve_; to_bitField0_ |= 0x00000100; } 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.WriteRequestCommand) { return mergeFrom((alluxio.grpc.WriteRequestCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.grpc.WriteRequestCommand other) { if (other == alluxio.grpc.WriteRequestCommand.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasId()) { setId(other.getId()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (other.hasTier()) { setTier(other.getTier()); } if (other.hasFlush()) { setFlush(other.getFlush()); } if (other.hasCreateUfsFileOptions()) { mergeCreateUfsFileOptions(other.getCreateUfsFileOptions()); } if (other.hasMediumType()) { bitField0_ |= 0x00000040; mediumType_ = other.mediumType_; onChanged(); } if (other.hasPinOnCreate()) { setPinOnCreate(other.getPinOnCreate()); } if (other.hasSpaceToReserve()) { setSpaceToReserve(other.getSpaceToReserve()); } 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: { int tmpRaw = input.readEnum(); alluxio.grpc.RequestType tmpValue = alluxio.grpc.RequestType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { type_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 16: { id_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { offset_ = input.readInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { tier_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { flush_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage( getCreateUfsFileOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 66: { mediumType_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 66 case 72: { pinOnCreate_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 72 case 80: { spaceToReserve_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 80 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 int type_ = 0; /** * optional .alluxio.grpc.block.RequestType type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .alluxio.grpc.block.RequestType type = 1; * @return The type. */ @java.lang.Override public alluxio.grpc.RequestType getType() { @SuppressWarnings("deprecation") alluxio.grpc.RequestType result = alluxio.grpc.RequestType.valueOf(type_); return result == null ? alluxio.grpc.RequestType.ALLUXIO_BLOCK : result; } /** * optional .alluxio.grpc.block.RequestType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(alluxio.grpc.RequestType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .alluxio.grpc.block.RequestType type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; } private long id_ ; /** *
     * The block ID or UFS file ID.
     * 
* * optional int64 id = 2; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The block ID or UFS file ID.
     * 
* * optional int64 id = 2; * @return The id. */ @java.lang.Override public long getId() { return id_; } /** *
     * The block ID or UFS file ID.
     * 
* * optional int64 id = 2; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(long value) { bitField0_ |= 0x00000002; id_ = value; onChanged(); return this; } /** *
     * The block ID or UFS file ID.
     * 
* * optional int64 id = 2; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000002); id_ = 0L; onChanged(); return this; } private long offset_ ; /** * optional int64 offset = 3; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int64 offset = 3; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } /** * optional int64 offset = 3; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { bitField0_ |= 0x00000004; offset_ = value; onChanged(); return this; } /** * optional int64 offset = 3; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000004); offset_ = 0L; onChanged(); return this; } private int tier_ ; /** *
     * This is only applicable for block write.
     * 
* * optional int32 tier = 4; * @return Whether the tier field is set. */ @java.lang.Override public boolean hasTier() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * This is only applicable for block write.
     * 
* * optional int32 tier = 4; * @return The tier. */ @java.lang.Override public int getTier() { return tier_; } /** *
     * This is only applicable for block write.
     * 
* * optional int32 tier = 4; * @param value The tier to set. * @return This builder for chaining. */ public Builder setTier(int value) { bitField0_ |= 0x00000008; tier_ = value; onChanged(); return this; } /** *
     * This is only applicable for block write.
     * 
* * optional int32 tier = 4; * @return This builder for chaining. */ public Builder clearTier() { bitField0_ = (bitField0_ & ~0x00000008); tier_ = 0; onChanged(); return this; } private boolean flush_ ; /** * optional bool flush = 5; * @return Whether the flush field is set. */ @java.lang.Override public boolean hasFlush() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool flush = 5; * @return The flush. */ @java.lang.Override public boolean getFlush() { return flush_; } /** * optional bool flush = 5; * @param value The flush to set. * @return This builder for chaining. */ public Builder setFlush(boolean value) { bitField0_ |= 0x00000010; flush_ = value; onChanged(); return this; } /** * optional bool flush = 5; * @return This builder for chaining. */ public Builder clearFlush() { bitField0_ = (bitField0_ & ~0x00000010); flush_ = false; onChanged(); return this; } private alluxio.proto.dataserver.Protocol.CreateUfsFileOptions createUfsFileOptions_; private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.proto.dataserver.Protocol.CreateUfsFileOptions, alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder, alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder> createUfsFileOptionsBuilder_; /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; * @return Whether the createUfsFileOptions field is set. */ public boolean hasCreateUfsFileOptions() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; * @return The createUfsFileOptions. */ public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions getCreateUfsFileOptions() { if (createUfsFileOptionsBuilder_ == null) { return createUfsFileOptions_ == null ? alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance() : createUfsFileOptions_; } else { return createUfsFileOptionsBuilder_.getMessage(); } } /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; */ public Builder setCreateUfsFileOptions(alluxio.proto.dataserver.Protocol.CreateUfsFileOptions value) { if (createUfsFileOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createUfsFileOptions_ = value; onChanged(); } else { createUfsFileOptionsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; */ public Builder setCreateUfsFileOptions( alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder builderForValue) { if (createUfsFileOptionsBuilder_ == null) { createUfsFileOptions_ = builderForValue.build(); onChanged(); } else { createUfsFileOptionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; */ public Builder mergeCreateUfsFileOptions(alluxio.proto.dataserver.Protocol.CreateUfsFileOptions value) { if (createUfsFileOptionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && createUfsFileOptions_ != null && createUfsFileOptions_ != alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance()) { createUfsFileOptions_ = alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.newBuilder(createUfsFileOptions_).mergeFrom(value).buildPartial(); } else { createUfsFileOptions_ = value; } onChanged(); } else { createUfsFileOptionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; */ public Builder clearCreateUfsFileOptions() { if (createUfsFileOptionsBuilder_ == null) { createUfsFileOptions_ = null; onChanged(); } else { createUfsFileOptionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; */ public alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder getCreateUfsFileOptionsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getCreateUfsFileOptionsFieldBuilder().getBuilder(); } /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; */ public alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder getCreateUfsFileOptionsOrBuilder() { if (createUfsFileOptionsBuilder_ != null) { return createUfsFileOptionsBuilder_.getMessageOrBuilder(); } else { return createUfsFileOptions_ == null ? alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.getDefaultInstance() : createUfsFileOptions_; } } /** *
     * Cancel, close and error will be handled by standard gRPC stream APIs.
     * 
* * optional .alluxio.proto.dataserver.CreateUfsFileOptions create_ufs_file_options = 6; */ private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.proto.dataserver.Protocol.CreateUfsFileOptions, alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder, alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder> getCreateUfsFileOptionsFieldBuilder() { if (createUfsFileOptionsBuilder_ == null) { createUfsFileOptionsBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.proto.dataserver.Protocol.CreateUfsFileOptions, alluxio.proto.dataserver.Protocol.CreateUfsFileOptions.Builder, alluxio.proto.dataserver.Protocol.CreateUfsFileOptionsOrBuilder>( getCreateUfsFileOptions(), getParentForChildren(), isClean()); createUfsFileOptions_ = null; } return createUfsFileOptionsBuilder_; } private java.lang.Object mediumType_ = ""; /** * optional string medium_type = 8; * @return Whether the mediumType field is set. */ public boolean hasMediumType() { return ((bitField0_ & 0x00000040) != 0); } /** * optional string medium_type = 8; * @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 medium_type = 8; * @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 medium_type = 8; * @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 medium_type = 8; * @return This builder for chaining. */ public Builder clearMediumType() { bitField0_ = (bitField0_ & ~0x00000040); mediumType_ = getDefaultInstance().getMediumType(); onChanged(); return this; } /** * optional string medium_type = 8; * @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; } private boolean pinOnCreate_ ; /** * optional bool pin_on_create = 9; * @return Whether the pinOnCreate field is set. */ @java.lang.Override public boolean hasPinOnCreate() { return ((bitField0_ & 0x00000080) != 0); } /** * optional bool pin_on_create = 9; * @return The pinOnCreate. */ @java.lang.Override public boolean getPinOnCreate() { return pinOnCreate_; } /** * optional bool pin_on_create = 9; * @param value The pinOnCreate to set. * @return This builder for chaining. */ public Builder setPinOnCreate(boolean value) { bitField0_ |= 0x00000080; pinOnCreate_ = value; onChanged(); return this; } /** * optional bool pin_on_create = 9; * @return This builder for chaining. */ public Builder clearPinOnCreate() { bitField0_ = (bitField0_ & ~0x00000080); pinOnCreate_ = false; onChanged(); return this; } private long spaceToReserve_ ; /** * optional int64 space_to_reserve = 10; * @return Whether the spaceToReserve field is set. */ @java.lang.Override public boolean hasSpaceToReserve() { return ((bitField0_ & 0x00000100) != 0); } /** * optional int64 space_to_reserve = 10; * @return The spaceToReserve. */ @java.lang.Override public long getSpaceToReserve() { return spaceToReserve_; } /** * optional int64 space_to_reserve = 10; * @param value The spaceToReserve to set. * @return This builder for chaining. */ public Builder setSpaceToReserve(long value) { bitField0_ |= 0x00000100; spaceToReserve_ = value; onChanged(); return this; } /** * optional int64 space_to_reserve = 10; * @return This builder for chaining. */ public Builder clearSpaceToReserve() { bitField0_ = (bitField0_ & ~0x00000100); spaceToReserve_ = 0L; 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.WriteRequestCommand) } // @@protoc_insertion_point(class_scope:alluxio.grpc.block.WriteRequestCommand) private static final alluxio.grpc.WriteRequestCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new alluxio.grpc.WriteRequestCommand(); } public static alluxio.grpc.WriteRequestCommand 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 WriteRequestCommand 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.WriteRequestCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy