/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public Builder setNote(io.grafeas.v1beta1.Note value) { if (noteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } note_ = value; onChanged(); } else { noteBuilder_.setMessage(value); } return this; } /**
/** * * * <pre> * The ID to use for this note. * </pre> * * <code>string note_id = 2;</code> */ public Builder setNoteId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } noteId_ = value; onChanged(); return this; } /**
/** * * * <pre> * The ID to use for this note. * </pre> * * <code>string note_id = 2;</code> */ public Builder setNoteIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); noteId_ = value; onChanged(); return this; }
/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public Builder setNote(io.grafeas.v1beta1.Note.Builder builderForValue) { if (noteBuilder_ == null) { note_ = builderForValue.build(); onChanged(); } else { noteBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The ID to use for this note. * </pre> * * <code>string note_id = 2;</code> */ public Builder setNoteId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } noteId_ = value; onChanged(); return this; } /**
/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public Builder clearNote() { if (noteBuilder_ == null) { note_ = null; onChanged(); } else { note_ = null; noteBuilder_ = null; } return this; } /**
public Builder mergeFrom(io.grafeas.v1beta1.CreateNoteRequest other) { if (other == io.grafeas.v1beta1.CreateNoteRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getNoteId().isEmpty()) { noteId_ = other.noteId_; onChanged(); } if (other.hasNote()) { mergeNote(other.getNote()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The ID to use for this note. * </pre> * * <code>string note_id = 2;</code> */ public Builder setNoteIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); noteId_ = value; onChanged(); return this; }
/** * * * <pre> * The name of the project in the form of `projects/[PROJECT_ID]`, under which * the note is to be created. * </pre> * * <code>string parent = 1;</code> */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /**
/** * * * <pre> * The ID to use for this note. * </pre> * * <code>string note_id = 2;</code> */ public Builder clearNoteId() { noteId_ = getDefaultInstance().getNoteId(); onChanged(); return this; } /**
/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public io.grafeas.v1beta1.Note.Builder getNoteBuilder() { onChanged(); return getNoteFieldBuilder().getBuilder(); } /**
/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public Builder clearNote() { if (noteBuilder_ == null) { note_ = null; onChanged(); } else { note_ = null; noteBuilder_ = null; } return this; } /**
/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public Builder mergeNote(io.grafeas.v1beta1.Note value) { if (noteBuilder_ == null) { if (note_ != null) { note_ = io.grafeas.v1beta1.Note.newBuilder(note_).mergeFrom(value).buildPartial(); } else { note_ = value; } onChanged(); } else { noteBuilder_.mergeFrom(value); } return this; } /**
/** * * * <pre> * The name of the project in the form of `projects/[PROJECT_ID]`, under which * the note is to be created. * </pre> * * <code>string parent = 1;</code> */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; onChanged(); return this; }
/** * * * <pre> * The name of the project in the form of `projects/[PROJECT_ID]`, under which * the note is to be created. * </pre> * * <code>string parent = 1;</code> */ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parent_ = value; onChanged(); return this; } /**
/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public Builder setNote(io.grafeas.v1beta1.Note.Builder builderForValue) { if (noteBuilder_ == null) { note_ = builderForValue.build(); onChanged(); } else { noteBuilder_.setMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom(io.grafeas.v1beta1.CreateNoteRequest other) { if (other == io.grafeas.v1beta1.CreateNoteRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); } if (!other.getNoteId().isEmpty()) { noteId_ = other.noteId_; onChanged(); } if (other.hasNote()) { mergeNote(other.getNote()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * * * <pre> * The name of the project in the form of `projects/[PROJECT_ID]`, under which * the note is to be created. * </pre> * * <code>string parent = 1;</code> */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /**
/** * * * <pre> * The ID to use for this note. * </pre> * * <code>string note_id = 2;</code> */ public Builder clearNoteId() { noteId_ = getDefaultInstance().getNoteId(); onChanged(); return this; } /**
/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public io.grafeas.v1beta1.Note.Builder getNoteBuilder() { onChanged(); return getNoteFieldBuilder().getBuilder(); } /**