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

alluxio.grpc.LoadFailure 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/block_worker.proto

package alluxio.grpc;

/**
 * 
 * load subtask failure, either metadata or load block we only need to input one of them
 * 
* * Protobuf type {@code alluxio.grpc.block.LoadFailure} */ public final class LoadFailure extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:alluxio.grpc.block.LoadFailure) LoadFailureOrBuilder { private static final long serialVersionUID = 0L; // Use LoadFailure.newBuilder() to construct. private LoadFailure(alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LoadFailure() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LoadFailure(); } @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_LoadFailure_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_LoadFailure_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.LoadFailure.class, alluxio.grpc.LoadFailure.Builder.class); } private int bitField0_; public static final int SUBTASK_FIELD_NUMBER = 1; private alluxio.grpc.LoadSubTask subtask_; /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; * @return Whether the subtask field is set. */ @java.lang.Override public boolean hasSubtask() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; * @return The subtask. */ @java.lang.Override public alluxio.grpc.LoadSubTask getSubtask() { return subtask_ == null ? alluxio.grpc.LoadSubTask.getDefaultInstance() : subtask_; } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; */ @java.lang.Override public alluxio.grpc.LoadSubTaskOrBuilder getSubtaskOrBuilder() { return subtask_ == null ? alluxio.grpc.LoadSubTask.getDefaultInstance() : subtask_; } public static final int CODE_FIELD_NUMBER = 2; private int code_; /** *
   * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
   * 
* * optional int32 code = 2; * @return Whether the code field is set. */ @java.lang.Override public boolean hasCode() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
   * 
* * optional int32 code = 2; * @return The code. */ @java.lang.Override public int getCode() { return code_; } public static final int MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object message_; /** *
   * A developer-facing error message
   * 
* * optional string message = 3; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * A developer-facing error message
   * 
* * optional string message = 3; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } } /** *
   * A developer-facing error message
   * 
* * optional string message = 3; * @return The bytes for message. */ @java.lang.Override public alluxio.shaded.client.com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; 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); message_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } public static final int RETRYABLE_FIELD_NUMBER = 4; private boolean retryable_; /** * optional bool retryable = 4; * @return Whether the retryable field is set. */ @java.lang.Override public boolean hasRetryable() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool retryable = 4; * @return The retryable. */ @java.lang.Override public boolean getRetryable() { return retryable_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasSubtask()) { if (!getSubtask().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(alluxio.shaded.client.com.google.protobuf.CodedOutputStream output) throws java.alluxio.shaded.client.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getSubtask()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, code_); } if (((bitField0_ & 0x00000004) != 0)) { alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, retryable_); } 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, getSubtask()); } if (((bitField0_ & 0x00000002) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteInt32Size(2, code_); } if (((bitField0_ & 0x00000004) != 0)) { size += alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.alluxio.shaded.client.com.uteStringSize(3, message_); } if (((bitField0_ & 0x00000008) != 0)) { size += alluxio.shaded.client.com.google.protobuf.CodedOutputStream .alluxio.shaded.client.com.uteBoolSize(4, retryable_); } 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.LoadFailure)) { return super.equals(obj); } alluxio.grpc.LoadFailure other = (alluxio.grpc.LoadFailure) obj; if (hasSubtask() != other.hasSubtask()) return false; if (hasSubtask()) { if (!getSubtask() .equals(other.getSubtask())) return false; } if (hasCode() != other.hasCode()) return false; if (hasCode()) { if (getCode() != other.getCode()) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage() .equals(other.getMessage())) return false; } if (hasRetryable() != other.hasRetryable()) return false; if (hasRetryable()) { if (getRetryable() != other.getRetryable()) 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 (hasSubtask()) { hash = (37 * hash) + SUBTASK_FIELD_NUMBER; hash = (53 * hash) + getSubtask().hashCode(); } if (hasCode()) { hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } if (hasRetryable()) { hash = (37 * hash) + RETRYABLE_FIELD_NUMBER; hash = (53 * hash) + alluxio.shaded.client.com.google.protobuf.Internal.hashBoolean( getRetryable()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static alluxio.grpc.LoadFailure parseFrom( java.nio.ByteBuffer data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.LoadFailure 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.LoadFailure 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.LoadFailure 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.LoadFailure parseFrom(byte[] data) throws alluxio.shaded.client.com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static alluxio.grpc.LoadFailure 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.LoadFailure 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.LoadFailure 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.LoadFailure 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.LoadFailure 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.LoadFailure 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.LoadFailure 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.LoadFailure 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; } /** *
   * load subtask failure, either metadata or load block we only need to input one of them
   * 
* * Protobuf type {@code alluxio.grpc.block.LoadFailure} */ public static final class Builder extends alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:alluxio.grpc.block.LoadFailure) alluxio.grpc.LoadFailureOrBuilder { public static final alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptor() { return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_LoadFailure_descriptor; } @java.lang.Override protected alluxio.shaded.client.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_LoadFailure_fieldAccessorTable .ensureFieldAccessorsInitialized( alluxio.grpc.LoadFailure.class, alluxio.grpc.LoadFailure.Builder.class); } // Construct using alluxio.grpc.LoadFailure.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) { getSubtaskFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (subtaskBuilder_ == null) { subtask_ = null; } else { subtaskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); code_ = 0; bitField0_ = (bitField0_ & ~0x00000002); message_ = ""; bitField0_ = (bitField0_ & ~0x00000004); retryable_ = false; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public alluxio.shaded.client.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return alluxio.grpc.BlockWorkerProto.internal_static_alluxio_grpc_block_LoadFailure_descriptor; } @java.lang.Override public alluxio.grpc.LoadFailure getDefaultInstanceForType() { return alluxio.grpc.LoadFailure.getDefaultInstance(); } @java.lang.Override public alluxio.grpc.LoadFailure build() { alluxio.grpc.LoadFailure result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public alluxio.grpc.LoadFailure buildPartial() { alluxio.grpc.LoadFailure result = new alluxio.grpc.LoadFailure(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (subtaskBuilder_ == null) { result.subtask_ = subtask_; } else { result.subtask_ = subtaskBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.code_ = code_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.message_ = message_; if (((from_bitField0_ & 0x00000008) != 0)) { result.retryable_ = retryable_; to_bitField0_ |= 0x00000008; } 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.LoadFailure) { return mergeFrom((alluxio.grpc.LoadFailure)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(alluxio.grpc.LoadFailure other) { if (other == alluxio.grpc.LoadFailure.getDefaultInstance()) return this; if (other.hasSubtask()) { mergeSubtask(other.getSubtask()); } if (other.hasCode()) { setCode(other.getCode()); } if (other.hasMessage()) { bitField0_ |= 0x00000004; message_ = other.message_; onChanged(); } if (other.hasRetryable()) { setRetryable(other.getRetryable()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasSubtask()) { if (!getSubtask().isInitialized()) { return false; } } return true; } @java.lang.Override public Builder mergeFrom( alluxio.shaded.client.com.google.protobuf.CodedInputStream input, alluxio.shaded.client.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.alluxio.shaded.client.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getSubtaskFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { code_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { message_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { retryable_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 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.LoadSubTask subtask_; private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.LoadSubTask, alluxio.grpc.LoadSubTask.Builder, alluxio.grpc.LoadSubTaskOrBuilder> subtaskBuilder_; /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; * @return Whether the subtask field is set. */ public boolean hasSubtask() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; * @return The subtask. */ public alluxio.grpc.LoadSubTask getSubtask() { if (subtaskBuilder_ == null) { return subtask_ == null ? alluxio.grpc.LoadSubTask.getDefaultInstance() : subtask_; } else { return subtaskBuilder_.getMessage(); } } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; */ public Builder setSubtask(alluxio.grpc.LoadSubTask value) { if (subtaskBuilder_ == null) { if (value == null) { throw new NullPointerException(); } subtask_ = value; onChanged(); } else { subtaskBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; */ public Builder setSubtask( alluxio.grpc.LoadSubTask.Builder builderForValue) { if (subtaskBuilder_ == null) { subtask_ = builderForValue.build(); onChanged(); } else { subtaskBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; */ public Builder mergeSubtask(alluxio.grpc.LoadSubTask value) { if (subtaskBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && subtask_ != null && subtask_ != alluxio.grpc.LoadSubTask.getDefaultInstance()) { subtask_ = alluxio.grpc.LoadSubTask.newBuilder(subtask_).mergeFrom(value).buildPartial(); } else { subtask_ = value; } onChanged(); } else { subtaskBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; */ public Builder clearSubtask() { if (subtaskBuilder_ == null) { subtask_ = null; onChanged(); } else { subtaskBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; */ public alluxio.grpc.LoadSubTask.Builder getSubtaskBuilder() { bitField0_ |= 0x00000001; onChanged(); return getSubtaskFieldBuilder().getBuilder(); } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; */ public alluxio.grpc.LoadSubTaskOrBuilder getSubtaskOrBuilder() { if (subtaskBuilder_ != null) { return subtaskBuilder_.getMessageOrBuilder(); } else { return subtask_ == null ? alluxio.grpc.LoadSubTask.getDefaultInstance() : subtask_; } } /** * optional .alluxio.grpc.block.LoadSubTask subtask = 1; */ private alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.LoadSubTask, alluxio.grpc.LoadSubTask.Builder, alluxio.grpc.LoadSubTaskOrBuilder> getSubtaskFieldBuilder() { if (subtaskBuilder_ == null) { subtaskBuilder_ = new alluxio.shaded.client.com.google.protobuf.SingleFieldBuilderV3< alluxio.grpc.LoadSubTask, alluxio.grpc.LoadSubTask.Builder, alluxio.grpc.LoadSubTaskOrBuilder>( getSubtask(), getParentForChildren(), isClean()); subtask_ = null; } return subtaskBuilder_; } private int code_ ; /** *
     * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
     * 
* * optional int32 code = 2; * @return Whether the code field is set. */ @java.lang.Override public boolean hasCode() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
     * 
* * optional int32 code = 2; * @return The code. */ @java.lang.Override public int getCode() { return code_; } /** *
     * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
     * 
* * optional int32 code = 2; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(int value) { bitField0_ |= 0x00000002; code_ = value; onChanged(); return this; } /** *
     * The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
     * 
* * optional int32 code = 2; * @return This builder for chaining. */ public Builder clearCode() { bitField0_ = (bitField0_ & ~0x00000002); code_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** *
     * A developer-facing error message
     * 
* * optional string message = 3; * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * A developer-facing error message
     * 
* * optional string message = 3; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * A developer-facing error message
     * 
* * optional string message = 3; * @return The bytes for message. */ public alluxio.shaded.client.com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { alluxio.shaded.client.com.google.protobuf.ByteString b = alluxio.shaded.client.com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (alluxio.shaded.client.com.google.protobuf.ByteString) ref; } } /** *
     * A developer-facing error message
     * 
* * optional string message = 3; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } /** *
     * A developer-facing error message
     * 
* * optional string message = 3; * @return This builder for chaining. */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000004); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** *
     * A developer-facing error message
     * 
* * optional string message = 3; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( alluxio.shaded.client.com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; message_ = value; onChanged(); return this; } private boolean retryable_ ; /** * optional bool retryable = 4; * @return Whether the retryable field is set. */ @java.lang.Override public boolean hasRetryable() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool retryable = 4; * @return The retryable. */ @java.lang.Override public boolean getRetryable() { return retryable_; } /** * optional bool retryable = 4; * @param value The retryable to set. * @return This builder for chaining. */ public Builder setRetryable(boolean value) { bitField0_ |= 0x00000008; retryable_ = value; onChanged(); return this; } /** * optional bool retryable = 4; * @return This builder for chaining. */ public Builder clearRetryable() { bitField0_ = (bitField0_ & ~0x00000008); retryable_ = false; 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.LoadFailure) } // @@protoc_insertion_point(class_scope:alluxio.grpc.block.LoadFailure) private static final alluxio.grpc.LoadFailure DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new alluxio.grpc.LoadFailure(); } public static alluxio.grpc.LoadFailure 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 LoadFailure 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.LoadFailure getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy