/** * <code>string message = 1;</code> */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; onChanged(); return this; } /**
/** * <code>string message = 1;</code> */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; onChanged(); return this; }
/** * <code>.com.example.grpc.Language from = 2;</code> */ public Builder setFrom(com.example.grpc.Language value) { if (value == null) { throw new NullPointerException(); } from_ = value.getNumber(); onChanged(); return this; } /**
public Builder mergeFrom(com.example.grpc.TranslationRequest other) { if (other == com.example.grpc.TranslationRequest.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); } if (other.from_ != 0) { setFromValue(other.getFromValue()); } if (other.to_ != 0) { setToValue(other.getToValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <code>.com.example.grpc.Language to = 3;</code> */ public Builder setTo(com.example.grpc.Language value) { if (value == null) { throw new NullPointerException(); } to_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>.com.example.grpc.Language to = 3;</code> */ public Builder setToValue(int value) { to_ = value; onChanged(); return this; } /**
/** * <code>.com.example.grpc.Language from = 2;</code> */ public Builder clearFrom() { from_ = 0; onChanged(); return this; }
/** * <code>.com.example.grpc.Language from = 2;</code> */ public Builder setFromValue(int value) { from_ = value; onChanged(); return this; } /**
/** * <code>string message = 1;</code> */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /**
/** * <code>.com.example.grpc.Language to = 3;</code> */ public Builder clearTo() { to_ = 0; onChanged(); return this; } public final Builder setUnknownFields(