/** * <code>optional .hadoop.yarn.SerializedExceptionProto cause = 4;</code> */ public Builder setCause(org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto value) { if (causeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cause_ = value; onChanged(); } else { causeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional string trace = 2;</code> */ public Builder setTraceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; trace_ = value; onChanged(); return this; }
/** * <code>optional string trace = 2;</code> */ public Builder setTrace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; trace_ = value; onChanged(); return this; } /**
public Builder mergeFrom(org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto other) { if (other == org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance()) return this; if (other.hasMessage()) { bitField0_ |= 0x00000001; message_ = other.message_; onChanged(); } if (other.hasTrace()) { bitField0_ |= 0x00000002; trace_ = other.trace_; onChanged(); } if (other.hasClassName()) { bitField0_ |= 0x00000004; className_ = other.className_; onChanged(); } if (other.hasCause()) { mergeCause(other.getCause()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
/** * <code>optional .hadoop.yarn.SerializedExceptionProto cause = 4;</code> */ public Builder mergeCause(org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto value) { if (causeBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008) && cause_ != org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance()) { cause_ = org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.newBuilder(cause_).mergeFrom(value).buildPartial(); } else { cause_ = value; } onChanged(); } else { causeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .hadoop.yarn.SerializedExceptionProto cause = 4;</code> */ public Builder clearCause() { if (causeBuilder_ == null) { cause_ = org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.getDefaultInstance(); onChanged(); } else { causeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /**
/** * <code>optional string message = 1;</code> */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; message_ = value; onChanged(); return this; } /**
/** * <code>optional .hadoop.yarn.SerializedExceptionProto cause = 4;</code> */ public Builder setCause( org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder builderForValue) { if (causeBuilder_ == null) { cause_ = builderForValue.build(); onChanged(); } else { causeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional string class_name = 3;</code> */ public Builder setClassNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; className_ = value; onChanged(); return this; }
/** * <code>optional string message = 1;</code> */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; message_ = value; onChanged(); return this; }
/** * <code>optional string class_name = 3;</code> */ public Builder setClassName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; className_ = value; onChanged(); return this; } /**
/** * <code>optional string class_name = 3;</code> */ public Builder clearClassName() { bitField0_ = (bitField0_ & ~0x00000004); className_ = getDefaultInstance().getClassName(); onChanged(); return this; } /**
/** * <code>optional string trace = 2;</code> */ public Builder clearTrace() { bitField0_ = (bitField0_ & ~0x00000002); trace_ = getDefaultInstance().getTrace(); onChanged(); return this; } /**
/** * <code>optional string message = 1;</code> */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000001); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
/** * <code>optional .hadoop.yarn.SerializedExceptionProto cause = 4;</code> */ public org.apache.hadoop.yarn.proto.YarnProtos.SerializedExceptionProto.Builder getCauseBuilder() { bitField0_ |= 0x00000008; onChanged(); return getCauseFieldBuilder().getBuilder(); } /**