/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder clearNotes() { if (notesBuilder_ == null) { notes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { notesBuilder_.clear(); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder addNotes(io.grafeas.v1beta1.Note value) { if (notesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNotesIsMutable(); notes_.add(value); onChanged(); } else { notesBuilder_.addMessage(value); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder setNotes(int index, io.grafeas.v1beta1.Note value) { if (notesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNotesIsMutable(); notes_.set(index, value); onChanged(); } else { notesBuilder_.setMessage(index, value); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder addAllNotes(java.lang.Iterable<? extends io.grafeas.v1beta1.Note> values) { if (notesBuilder_ == null) { ensureNotesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notes_); onChanged(); } else { notesBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder addNotes(int index, io.grafeas.v1beta1.Note.Builder builderForValue) { if (notesBuilder_ == null) { ensureNotesIsMutable(); notes_.add(index, builderForValue.build()); onChanged(); } else { notesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder removeNotes(int index) { if (notesBuilder_ == null) { ensureNotesIsMutable(); notes_.remove(index); onChanged(); } else { notesBuilder_.remove(index); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder setNotes(int index, io.grafeas.v1beta1.Note.Builder builderForValue) { if (notesBuilder_ == null) { ensureNotesIsMutable(); notes_.set(index, builderForValue.build()); onChanged(); } else { notesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The next pagination token in the list response. It should be used as * `page_token` for the following request. An empty value means no more * results. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; }
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder addNotes(io.grafeas.v1beta1.Note.Builder builderForValue) { if (notesBuilder_ == null) { ensureNotesIsMutable(); notes_.add(builderForValue.build()); onChanged(); } else { notesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The next pagination token in the list response. It should be used as * `page_token` for the following request. An empty value means no more * results. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder addNotes(int index, io.grafeas.v1beta1.Note value) { if (notesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureNotesIsMutable(); notes_.add(index, value); onChanged(); } else { notesBuilder_.addMessage(index, value); } return this; } /**
/** * * * <pre> * The next pagination token in the list response. It should be used as * `page_token` for the following request. An empty value means no more * results. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; onChanged(); return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder addNotes(io.grafeas.v1beta1.Note.Builder builderForValue) { if (notesBuilder_ == null) { ensureNotesIsMutable(); notes_.add(builderForValue.build()); onChanged(); } else { notesBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder addAllNotes(java.lang.Iterable<? extends io.grafeas.v1beta1.Note> values) { if (notesBuilder_ == null) { ensureNotesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notes_); onChanged(); } else { notesBuilder_.addAllMessages(values); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder addNotes(int index, io.grafeas.v1beta1.Note.Builder builderForValue) { if (notesBuilder_ == null) { ensureNotesIsMutable(); notes_.add(index, builderForValue.build()); onChanged(); } else { notesBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The next pagination token in the list response. It should be used as * `page_token` for the following request. An empty value means no more * results. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; onChanged(); return this; }
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder removeNotes(int index) { if (notesBuilder_ == null) { ensureNotesIsMutable(); notes_.remove(index); onChanged(); } else { notesBuilder_.remove(index); } return this; } /**
/** * * * <pre> * The notes requested. * </pre> * * <code>repeated .grafeas.v1beta1.Note notes = 1;</code> */ public Builder setNotes(int index, io.grafeas.v1beta1.Note.Builder builderForValue) { if (notesBuilder_ == null) { ensureNotesIsMutable(); notes_.set(index, builderForValue.build()); onChanged(); } else { notesBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * * * <pre> * The next pagination token in the list response. It should be used as * `page_token` for the following request. An empty value means no more * results. * </pre> * * <code>string next_page_token = 2;</code> */ public Builder clearNextPageToken() { nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /**