/** * <code>string message = 2;</code> */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /**
/** * <code>string message = 2;</code> */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /**
/** * <code>string message = 2;</code> */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; }
public Builder mergeFrom(io.vitess.proto.Vtrpc.RPCError other) { if (other == io.vitess.proto.Vtrpc.RPCError.getDefaultInstance()) return this; if (other.legacyCode_ != 0) { setLegacyCodeValue(other.getLegacyCodeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(io.vitess.proto.Vtrpc.RPCError other) { if (other == io.vitess.proto.Vtrpc.RPCError.getDefaultInstance()) return this; if (other.legacyCode_ != 0) { setLegacyCodeValue(other.getLegacyCodeValue()); } if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>string message = 2;</code> */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; }
/** * <code>.vtrpc.Code code = 3;</code> */ public Builder setCodeValue(int value) { code_ = value; onChanged(); return this; } /**
/** * <code>.vtrpc.LegacyErrorCode legacy_code = 1;</code> */ public Builder setLegacyCode(io.vitess.proto.Vtrpc.LegacyErrorCode value) { if (value == null) { throw new NullPointerException(); } legacyCode_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>.vtrpc.LegacyErrorCode legacy_code = 1;</code> */ public Builder clearLegacyCode() { legacyCode_ = 0; onChanged(); return this; }
/** * <code>.vtrpc.LegacyErrorCode legacy_code = 1;</code> */ public Builder setLegacyCodeValue(int value) { legacyCode_ = value; onChanged(); return this; } /**
/** * <code>.vtrpc.Code code = 3;</code> */ public Builder clearCode() { code_ = 0; onChanged(); return this; } @java.lang.Override
/** * <code>.vtrpc.Code code = 3;</code> */ public Builder clearCode() { code_ = 0; onChanged(); return this; } @java.lang.Override
/** * <code>.vtrpc.Code code = 3;</code> */ public Builder setCode(io.vitess.proto.Vtrpc.Code value) { if (value == null) { throw new NullPointerException(); } code_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>.vtrpc.Code code = 3;</code> */ public Builder setCodeValue(int value) { code_ = value; onChanged(); return this; } /**
/** * <code>.vtrpc.Code code = 3;</code> */ public Builder setCode(io.vitess.proto.Vtrpc.Code value) { if (value == null) { throw new NullPointerException(); } code_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>string message = 2;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
/** * <code>string message = 2;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
/** * <code>.vtrpc.LegacyErrorCode legacy_code = 1;</code> */ public Builder setLegacyCode(io.vitess.proto.Vtrpc.LegacyErrorCode value) { if (value == null) { throw new NullPointerException(); } legacyCode_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>.vtrpc.LegacyErrorCode legacy_code = 1;</code> */ public Builder setLegacyCodeValue(int value) { legacyCode_ = value; onChanged(); return this; } /**
/** * <code>.vtrpc.LegacyErrorCode legacy_code = 1;</code> */ public Builder clearLegacyCode() { legacyCode_ = 0; onChanged(); return this; }