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

alluxio.grpc.FileBlockInfo Maven / Gradle / Ivy

There is a newer version: 313
Show newest version
// Generated by the protocol buffer alluxio.shaded.client.com.iler.  DO NOT EDIT!
// source: grpc/file_system_master.proto

package alluxio.grpc;

/**
 * 
 **
 * Contains the information of a block in a file. In addition to the BlockInfo, it includes the
 * offset in the file, and the under file system locations of the block replicas.
 * 
* * Protobuf type {@code alluxio.grpc.file.FileBlockInfo} */ public final class FileBlockInfo extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:alluxio.grpc.file.FileBlockInfo) FileBlockInfoOrBuilder { private static final long serialVersionUID = 0L; // Use FileBlockInfo.newBuilder() to construct. private FileBlockInfo(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FileBlockInfo() { ufsLocations_ = java.util.Collections.emptyList(); ufsStringLocations_ = alluxio.shaded.client.com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FileBlockInfo(); } @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.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileBlockInfo_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileBlockInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.FileBlockInfo.class, alluxio.grpc.FileBlockInfo.Builder.class); } private int bitField0_; public static final int BLOCKINFO_FIELD_NUMBER = 1; private alluxio.grpc.BlockInfo blockInfo_; /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; * @return Whether the blockInfo field is set. */ @java.lang.Override public boolean hasBlockInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; * @return The blockInfo. */ @java.lang.Override public alluxio.grpc.BlockInfo getBlockInfo() { return blockInfo_ == null ? alluxio.grpc.BlockInfo.getDefaultInstance() : blockInfo_; } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; */ @java.lang.Override public alluxio.grpc.BlockInfoOrBuilder getBlockInfoOrBuilder() { return blockInfo_ == null ? alluxio.grpc.BlockInfo.getDefaultInstance() : blockInfo_; } public static final int OFFSET_FIELD_NUMBER = 2; private long offset_; /** * optional int64 offset = 2; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 offset = 2; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } public static final int UFSLOCATIONS_FIELD_NUMBER = 3; private java.util.List ufsLocations_; /** *
   * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
   * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ @java.lang.Override public java.util.List getUfsLocationsList() { return ufsLocations_; } /** *
   * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
   * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ @java.lang.Override public java.util.List getUfsLocationsOrBuilderList() { return ufsLocations_; } /** *
   * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
   * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ @java.lang.Override public int getUfsLocationsCount() { return ufsLocations_.size(); } /** *
   * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
   * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ @java.lang.Override public alluxio.grpc.WorkerNetAddress getUfsLocations(int index) { return ufsLocations_.get(index); } /** *
   * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
   * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ @java.lang.Override public alluxio.grpc.WorkerNetAddressOrBuilder getUfsLocationsOrBuilder( int index) { return ufsLocations_.get(index); } public static final int UFSSTRINGLOCATIONS_FIELD_NUMBER = 4; private alluxio.shaded.client.com.google.protobuf.LazyStringList ufsStringLocations_; /** * repeated string ufsStringLocations = 4; * @return A list containing the ufsStringLocations. */ public alluxio.shaded.client.com.google.protobuf.ProtocolStringList getUfsStringLocationsList() { return ufsStringLocations_; } /** * repeated string ufsStringLocations = 4; * @return The count of ufsStringLocations. */ public int getUfsStringLocationsCount() { return ufsStringLocations_.size(); } /** * repeated string ufsStringLocations = 4; * @param index The index of the element to return. * @return The ufsStringLocations at the given index. */ public java.lang.String getUfsStringLocations(int index) { return ufsStringLocations_.get(index); } /** * repeated string ufsStringLocations = 4; * @param index The index of the value to return. * @return The bytes of the ufsStringLocations at the given index. */ public alluxio.shaded.client.com.google.protobuf.ByteString getUfsStringLocationsBytes(int index) { return ufsStringLocations_.getByteString(index); } 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.writeMessage(1, getBlockInfo()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt64(2, offset_); } for (int i = 0; i < ufsLocations_.size(); i++) { output.writeMessage(3, ufsLocations_.get(i)); } for (int i = 0; i < ufsStringLocations_.size(); i++) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 4, ufsStringLocations_.getRaw(i)); } 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.uteMessageSize(1, getBlockInfo()); } if (((bitField0_ & 0x00000002) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt64Size(2, offset_); } for (int i = 0; i < ufsLocations_.size(); i++) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteMessageSize(3, ufsLocations_.get(i)); } { int dataSize = 0; for (int i = 0; i < ufsStringLocations_.size(); i++) { dataSize += alluxio.shaded.client.com.uteStringSizeNoTag(ufsStringLocations_.getRaw(i)); } size += dataSize; size += 1 * getUfsStringLocationsList().size(); } 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.FileBlockInfo)) { return super.equals(obj); } alluxio.grpc.FileBlockInfo other = (alluxio.grpc.FileBlockInfo) obj; if (hasBlockInfo() != other.hasBlockInfo()) return false; if (hasBlockInfo()) { if (!getBlockInfo() .equals(other.getBlockInfo())) return false; } if (hasOffset() != other.hasOffset()) return false; if (hasOffset()) { if (getOffset() != other.getOffset()) return false; } if (!getUfsLocationsList() .equals(other.getUfsLocationsList())) return false; if (!getUfsStringLocationsList() .equals(other.getUfsStringLocationsList())) 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 (hasBlockInfo()) { hash = (37 * hash) + BLOCKINFO_FIELD_NUMBER; hash = (53 * hash) + getBlockInfo().hashCode(); } if (hasOffset()) { hash = (37 * hash) + OFFSET_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashLong( getOffset()); } if (getUfsLocationsCount() > 0) { hash = (37 * hash) + UFSLOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getUfsLocationsList().hashCode(); } if (getUfsStringLocationsCount() > 0) { hash = (37 * hash) + UFSSTRINGLOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getUfsStringLocationsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static alluxio.grpc.FileBlockInfo parseFrom( java.nio.ByteBuffer data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.FileBlockInfo 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.FileBlockInfo 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.FileBlockInfo 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.FileBlockInfo parseFrom(byte[] data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.FileBlockInfo 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.FileBlockInfo 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.FileBlockInfo 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.FileBlockInfo 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.FileBlockInfo 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.FileBlockInfo 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.FileBlockInfo 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.FileBlockInfo 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; } /** *
   **
   * Contains the information of a block in a file. In addition to the BlockInfo, it includes the
   * offset in the file, and the under file system locations of the block replicas.
   * 
* * Protobuf type {@code alluxio.grpc.file.FileBlockInfo} */ public static final class Builder extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:alluxio.grpc.file.FileBlockInfo) alluxio.grpc.FileBlockInfoOrBuilder { public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileBlockInfo_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileBlockInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.FileBlockInfo.class, alluxio.grpc.FileBlockInfo.Builder.class); } // Construct using alluxio.grpc.FileBlockInfo.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) { getBlockInfoFieldBuilder(); getUfsLocationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (blockInfoBuilder_ == null) { blockInfo_ = null; } else { blockInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); offset_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); if (ufsLocationsBuilder_ == null) { ufsLocations_ = java.util.Collections.emptyList(); } else { ufsLocations_ = null; ufsLocationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); ufsStringLocations_ = alluxio.shaded.client.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.grpc.FileSystemMasterProto.internal_static_alluxio_grpc_file_FileBlockInfo_descriptor; } @java.lang.Override public alluxio.grpc.FileBlockInfo getDefaultInstanceForType() { return alluxio.grpc.FileBlockInfo.getDefaultInstance(); } @java.lang.Override public alluxio.grpc.FileBlockInfo build() { alluxio.grpc.FileBlockInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public alluxio.grpc.FileBlockInfo buildPartial() { alluxio.grpc.FileBlockInfo result = new alluxio.grpc.FileBlockInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (blockInfoBuilder_ == null) { result.blockInfo_ = blockInfo_; } else { result.blockInfo_ = blockInfoBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.offset_ = offset_; to_bitField0_ |= 0x00000002; } if (ufsLocationsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { ufsLocations_ = java.util.Collections.unmodifiableList(ufsLocations_); bitField0_ = (bitField0_ & ~0x00000004); } result.ufsLocations_ = ufsLocations_; } else { result.ufsLocations_ = ufsLocationsBuilder_.build(); } if (((bitField0_ & 0x00000008) != 0)) { ufsStringLocations_ = ufsStringLocations_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.ufsStringLocations_ = ufsStringLocations_; 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.FileBlockInfo) { return mergeFrom((alluxio.grpc.FileBlockInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.grpc.FileBlockInfo other) { if (other == alluxio.grpc.FileBlockInfo.getDefaultInstance()) return this; if (other.hasBlockInfo()) { mergeBlockInfo(other.getBlockInfo()); } if (other.hasOffset()) { setOffset(other.getOffset()); } if (ufsLocationsBuilder_ == null) { if (!other.ufsLocations_.isEmpty()) { if (ufsLocations_.isEmpty()) { ufsLocations_ = other.ufsLocations_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUfsLocationsIsMutable(); ufsLocations_.addAll(other.ufsLocations_); } onChanged(); } } else { if (!other.ufsLocations_.isEmpty()) { if (ufsLocationsBuilder_.isEmpty()) { ufsLocationsBuilder_.dispose(); ufsLocationsBuilder_ = null; ufsLocations_ = other.ufsLocations_; bitField0_ = (bitField0_ & ~0x00000004); ufsLocationsBuilder_ = alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUfsLocationsFieldBuilder() : null; } else { ufsLocationsBuilder_.addAllMessages(other.ufsLocations_); } } } if (!other.ufsStringLocations_.isEmpty()) { if (ufsStringLocations_.isEmpty()) { ufsStringLocations_ = other.ufsStringLocations_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureUfsStringLocationsIsMutable(); ufsStringLocations_.addAll(other.ufsStringLocations_); } 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 10: { input.readMessage( getBlockInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { offset_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { alluxio.grpc.WorkerNetAddress m = input.readMessage( alluxio.grpc.WorkerNetAddress.PARSER, extensionRegistry); if (ufsLocationsBuilder_ == null) { ensureUfsLocationsIsMutable(); ufsLocations_.add(m); } else { ufsLocationsBuilder_.addMessage(m); } break; } // case 26 case 34: { alluxio.shaded.client.com.google.protobuf.ByteString bs = input.readBytes(); ensureUfsStringLocationsIsMutable(); ufsStringLocations_.add(bs); break; } // case 34 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 alluxio.grpc.BlockInfo blockInfo_; private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.BlockInfo, alluxio.grpc.BlockInfo.Builder, alluxio.grpc.BlockInfoOrBuilder> blockInfoBuilder_; /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; * @return Whether the blockInfo field is set. */ public boolean hasBlockInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; * @return The blockInfo. */ public alluxio.grpc.BlockInfo getBlockInfo() { if (blockInfoBuilder_ == null) { return blockInfo_ == null ? alluxio.grpc.BlockInfo.getDefaultInstance() : blockInfo_; } else { return blockInfoBuilder_.getMessage(); } } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; */ public Builder setBlockInfo(alluxio.grpc.BlockInfo value) { if (blockInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } blockInfo_ = value; onChanged(); } else { blockInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; */ public Builder setBlockInfo( alluxio.grpc.BlockInfo.Builder builderForValue) { if (blockInfoBuilder_ == null) { blockInfo_ = builderForValue.build(); onChanged(); } else { blockInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; */ public Builder mergeBlockInfo(alluxio.grpc.BlockInfo value) { if (blockInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && blockInfo_ != null && blockInfo_ != alluxio.grpc.BlockInfo.getDefaultInstance()) { blockInfo_ = alluxio.grpc.BlockInfo.newBuilder(blockInfo_).mergeFrom(value).buildPartial(); } else { blockInfo_ = value; } onChanged(); } else { blockInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; */ public Builder clearBlockInfo() { if (blockInfoBuilder_ == null) { blockInfo_ = null; onChanged(); } else { blockInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; */ public alluxio.grpc.BlockInfo.Builder getBlockInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getBlockInfoFieldBuilder().getBuilder(); } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; */ public alluxio.grpc.BlockInfoOrBuilder getBlockInfoOrBuilder() { if (blockInfoBuilder_ != null) { return blockInfoBuilder_.getMessageOrBuilder(); } else { return blockInfo_ == null ? alluxio.grpc.BlockInfo.getDefaultInstance() : blockInfo_; } } /** * optional .alluxio.grpc.BlockInfo blockInfo = 1; */ private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.BlockInfo, alluxio.grpc.BlockInfo.Builder, alluxio.grpc.BlockInfoOrBuilder> getBlockInfoFieldBuilder() { if (blockInfoBuilder_ == null) { blockInfoBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.BlockInfo, alluxio.grpc.BlockInfo.Builder, alluxio.grpc.BlockInfoOrBuilder>( getBlockInfo(), getParentForChildren(), isClean()); blockInfo_ = null; } return blockInfoBuilder_; } private long offset_ ; /** * optional int64 offset = 2; * @return Whether the offset field is set. */ @java.lang.Override public boolean hasOffset() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int64 offset = 2; * @return The offset. */ @java.lang.Override public long getOffset() { return offset_; } /** * optional int64 offset = 2; * @param value The offset to set. * @return This builder for chaining. */ public Builder setOffset(long value) { bitField0_ |= 0x00000002; offset_ = value; onChanged(); return this; } /** * optional int64 offset = 2; * @return This builder for chaining. */ public Builder clearOffset() { bitField0_ = (bitField0_ & ~0x00000002); offset_ = 0L; onChanged(); return this; } private java.util.List ufsLocations_ = java.util.Collections.emptyList(); private void ensureUfsLocationsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { ufsLocations_ = new java.util.ArrayList(ufsLocations_); bitField0_ |= 0x00000004; } } private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3< alluxio.grpc.WorkerNetAddress, alluxio.grpc.WorkerNetAddress.Builder, alluxio.grpc.WorkerNetAddressOrBuilder> ufsLocationsBuilder_; /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public java.util.List getUfsLocationsList() { if (ufsLocationsBuilder_ == null) { return java.util.Collections.unmodifiableList(ufsLocations_); } else { return ufsLocationsBuilder_.getMessageList(); } } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public int getUfsLocationsCount() { if (ufsLocationsBuilder_ == null) { return ufsLocations_.size(); } else { return ufsLocationsBuilder_.getCount(); } } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public alluxio.grpc.WorkerNetAddress getUfsLocations(int index) { if (ufsLocationsBuilder_ == null) { return ufsLocations_.get(index); } else { return ufsLocationsBuilder_.getMessage(index); } } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder setUfsLocations( int index, alluxio.grpc.WorkerNetAddress value) { if (ufsLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUfsLocationsIsMutable(); ufsLocations_.set(index, value); onChanged(); } else { ufsLocationsBuilder_.setMessage(index, value); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder setUfsLocations( int index, alluxio.grpc.WorkerNetAddress.Builder builderForValue) { if (ufsLocationsBuilder_ == null) { ensureUfsLocationsIsMutable(); ufsLocations_.set(index, builderForValue.build()); onChanged(); } else { ufsLocationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder addUfsLocations(alluxio.grpc.WorkerNetAddress value) { if (ufsLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUfsLocationsIsMutable(); ufsLocations_.add(value); onChanged(); } else { ufsLocationsBuilder_.addMessage(value); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder addUfsLocations( int index, alluxio.grpc.WorkerNetAddress value) { if (ufsLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUfsLocationsIsMutable(); ufsLocations_.add(index, value); onChanged(); } else { ufsLocationsBuilder_.addMessage(index, value); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder addUfsLocations( alluxio.grpc.WorkerNetAddress.Builder builderForValue) { if (ufsLocationsBuilder_ == null) { ensureUfsLocationsIsMutable(); ufsLocations_.add(builderForValue.build()); onChanged(); } else { ufsLocationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder addUfsLocations( int index, alluxio.grpc.WorkerNetAddress.Builder builderForValue) { if (ufsLocationsBuilder_ == null) { ensureUfsLocationsIsMutable(); ufsLocations_.add(index, builderForValue.build()); onChanged(); } else { ufsLocationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder addAllUfsLocations( java.lang.Iterable values) { if (ufsLocationsBuilder_ == null) { ensureUfsLocationsIsMutable(); alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ufsLocations_); onChanged(); } else { ufsLocationsBuilder_.addAllMessages(values); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder clearUfsLocations() { if (ufsLocationsBuilder_ == null) { ufsLocations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { ufsLocationsBuilder_.clear(); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public Builder removeUfsLocations(int index) { if (ufsLocationsBuilder_ == null) { ensureUfsLocationsIsMutable(); ufsLocations_.remove(index); onChanged(); } else { ufsLocationsBuilder_.remove(index); } return this; } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public alluxio.grpc.WorkerNetAddress.Builder getUfsLocationsBuilder( int index) { return getUfsLocationsFieldBuilder().getBuilder(index); } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public alluxio.grpc.WorkerNetAddressOrBuilder getUfsLocationsOrBuilder( int index) { if (ufsLocationsBuilder_ == null) { return ufsLocations_.get(index); } else { return ufsLocationsBuilder_.getMessageOrBuilder(index); } } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public java.util.List getUfsLocationsOrBuilderList() { if (ufsLocationsBuilder_ != null) { return ufsLocationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ufsLocations_); } } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public alluxio.grpc.WorkerNetAddress.Builder addUfsLocationsBuilder() { return getUfsLocationsFieldBuilder().addBuilder( alluxio.grpc.WorkerNetAddress.getDefaultInstance()); } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public alluxio.grpc.WorkerNetAddress.Builder addUfsLocationsBuilder( int index) { return getUfsLocationsFieldBuilder().addBuilder( index, alluxio.grpc.WorkerNetAddress.getDefaultInstance()); } /** *
     * deprecated since 1.1 will be removed in 2.0 (replaced by ufsStringLocations)
     * 
* * repeated .alluxio.grpc.WorkerNetAddress ufsLocations = 3; */ public java.util.List getUfsLocationsBuilderList() { return getUfsLocationsFieldBuilder().getBuilderList(); } private alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3< alluxio.grpc.WorkerNetAddress, alluxio.grpc.WorkerNetAddress.Builder, alluxio.grpc.WorkerNetAddressOrBuilder> getUfsLocationsFieldBuilder() { if (ufsLocationsBuilder_ == null) { ufsLocationsBuilder_ = new alluxio.shaded.client.com.google.protobuf.RepeatedFieldBuilderV3< alluxio.grpc.WorkerNetAddress, alluxio.grpc.WorkerNetAddress.Builder, alluxio.grpc.WorkerNetAddressOrBuilder>( ufsLocations_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); ufsLocations_ = null; } return ufsLocationsBuilder_; } private alluxio.shaded.client.com.google.protobuf.LazyStringList ufsStringLocations_ = alluxio.shaded.client.com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUfsStringLocationsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { ufsStringLocations_ = new alluxio.shaded.client.com.google.protobuf.LazyStringArrayList(ufsStringLocations_); bitField0_ |= 0x00000008; } } /** * repeated string ufsStringLocations = 4; * @return A list containing the ufsStringLocations. */ public alluxio.shaded.client.com.google.protobuf.ProtocolStringList getUfsStringLocationsList() { return ufsStringLocations_.getUnmodifiableView(); } /** * repeated string ufsStringLocations = 4; * @return The count of ufsStringLocations. */ public int getUfsStringLocationsCount() { return ufsStringLocations_.size(); } /** * repeated string ufsStringLocations = 4; * @param index The index of the element to return. * @return The ufsStringLocations at the given index. */ public java.lang.String getUfsStringLocations(int index) { return ufsStringLocations_.get(index); } /** * repeated string ufsStringLocations = 4; * @param index The index of the value to return. * @return The bytes of the ufsStringLocations at the given index. */ public alluxio.shaded.client.com.google.protobuf.ByteString getUfsStringLocationsBytes(int index) { return ufsStringLocations_.getByteString(index); } /** * repeated string ufsStringLocations = 4; * @param index The index to set the value at. * @param value The ufsStringLocations to set. * @return This builder for chaining. */ public Builder setUfsStringLocations( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUfsStringLocationsIsMutable(); ufsStringLocations_.set(index, value); onChanged(); return this; } /** * repeated string ufsStringLocations = 4; * @param value The ufsStringLocations to add. * @return This builder for chaining. */ public Builder addUfsStringLocations( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUfsStringLocationsIsMutable(); ufsStringLocations_.add(value); onChanged(); return this; } /** * repeated string ufsStringLocations = 4; * @param values The ufsStringLocations to add. * @return This builder for chaining. */ public Builder addAllUfsStringLocations( java.lang.Iterable values) { ensureUfsStringLocationsIsMutable(); alluxio.shaded.client.com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ufsStringLocations_); onChanged(); return this; } /** * repeated string ufsStringLocations = 4; * @return This builder for chaining. */ public Builder clearUfsStringLocations() { ufsStringLocations_ = alluxio.shaded.client.com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string ufsStringLocations = 4; * @param value The bytes of the ufsStringLocations to add. * @return This builder for chaining. */ public Builder addUfsStringLocationsBytes( alluxio.shaded.client.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureUfsStringLocationsIsMutable(); ufsStringLocations_.add(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.file.FileBlockInfo) } // @@protoc_insertion_point(class_scope:alluxio.grpc.file.FileBlockInfo) private static final alluxio.grpc.FileBlockInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new alluxio.grpc.FileBlockInfo(); } public static alluxio.grpc.FileBlockInfo 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 FileBlockInfo 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.FileBlockInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy