@java.lang.Override public Builder newBuilderForType() { return newBuilder(); }
public Builder mergeFrom(io.grafeas.v1beta1.Note other) { if (other == io.grafeas.v1beta1.Note.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); if (!other.getShortDescription().isEmpty()) { shortDescription_ = other.shortDescription_; onChanged(); if (!other.getLongDescription().isEmpty()) { longDescription_ = other.longDescription_; onChanged(); setKindValue(other.getKindValue()); if (other.hasExpirationTime()) { mergeExpirationTime(other.getExpirationTime()); if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); switch (other.getTypeCase()) { case VULNERABILITY: mergeVulnerability(other.getVulnerability()); break;
@java.lang.Override public io.grafeas.v1beta1.Note buildPartial() { io.grafeas.v1beta1.Note result = new io.grafeas.v1beta1.Note(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0;
/** * * * <pre> * A detailed description of this note. * </pre> * * <code>string long_description = 3;</code> */ public Builder clearLongDescription() { longDescription_ = getDefaultInstance().getLongDescription(); onChanged(); return this; } /**
/** * * * <pre> * A one sentence description of this note. * </pre> * * <code>string short_description = 2;</code> */ public Builder clearShortDescription() { shortDescription_ = getDefaultInstance().getShortDescription(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The name of the note in the form of * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); if (!getShortDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortDescription_); if (!getLongDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, longDescription_); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpirationTime()); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); dataSize += computeStringSizeNoTag(relatedNoteNames_.getRaw(i)); size += 1 * getRelatedNoteNamesList().size();
/** * * * <pre> * The updated note. * </pre> * * <code>.grafeas.v1beta1.Note note = 2;</code> */ public io.grafeas.v1beta1.Note getNote() { return note_ == null ? io.grafeas.v1beta1.Note.getDefaultInstance() : note_; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); if (!getShortDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortDescription_); if (!getLongDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, longDescription_); output.writeMessage(6, getExpirationTime()); output.writeMessage(7, getCreateTime()); output.writeMessage(8, getUpdateTime());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.grafeas.v1beta1.CreateNoteRequest)) { return super.equals(obj); } io.grafeas.v1beta1.CreateNoteRequest other = (io.grafeas.v1beta1.CreateNoteRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getNoteId().equals(other.getNoteId()); result = result && (hasNote() == other.hasNote()); if (hasNote()) { result = result && getNote().equals(other.getNote()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * Output only. The time this note was created. This field can be used as a * filter in list requests. * </pre> * * <code>.google.protobuf.Timestamp create_time = 7;</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); }
result = result && getName().equals(other.getName()); result = result && getShortDescription().equals(other.getShortDescription()); result = result && getLongDescription().equals(other.getLongDescription()); result = result && kind_ == other.kind_; result = result && getRelatedUrlList().equals(other.getRelatedUrlList()); result = result && (hasExpirationTime() == other.hasExpirationTime()); if (hasExpirationTime()) { result = result && getExpirationTime().equals(other.getExpirationTime()); result = result && (hasCreateTime() == other.hasCreateTime()); if (hasCreateTime()) { result = result && getCreateTime().equals(other.getCreateTime()); result = result && (hasUpdateTime() == other.hasUpdateTime()); if (hasUpdateTime()) { result = result && getUpdateTime().equals(other.getUpdateTime()); result = result && getRelatedNoteNamesList().equals(other.getRelatedNoteNamesList()); result = result && getTypeCase().equals(other.getTypeCase()); if (!result) return false; switch (typeCase_) { case 10: result = result && getVulnerability().equals(other.getVulnerability()); break; case 11: result = result && getBuild().equals(other.getBuild()); break; case 12: result = result && getBaseImage().equals(other.getBaseImage());
if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); if (!getShortDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortDescription_); if (!getLongDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, longDescription_); size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpirationTime()); size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); dataSize += computeStringSizeNoTag(relatedNoteNames_.getRaw(i)); size += 1 * getRelatedNoteNamesList().size();
/** * * * <pre> * The note to create. * </pre> * * <code>.grafeas.v1beta1.Note note = 3;</code> */ public io.grafeas.v1beta1.Note getNote() { return note_ == null ? io.grafeas.v1beta1.Note.getDefaultInstance() : note_; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); if (!getShortDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortDescription_); if (!getLongDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, longDescription_); output.writeMessage(6, getExpirationTime()); output.writeMessage(7, getCreateTime()); output.writeMessage(8, getUpdateTime());
/** * * * <pre> * A detailed description of this note. * </pre> * * <code>string long_description = 3;</code> */ public Builder clearLongDescription() { longDescription_ = getDefaultInstance().getLongDescription(); onChanged(); return this; } /**
/** * * * <pre> * A one sentence description of this note. * </pre> * * <code>string short_description = 2;</code> */ public Builder clearShortDescription() { shortDescription_ = getDefaultInstance().getShortDescription(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The name of the note in the form of * `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. * </pre> * * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.grafeas.v1beta1.UpdateNoteRequest)) { return super.equals(obj); } io.grafeas.v1beta1.UpdateNoteRequest other = (io.grafeas.v1beta1.UpdateNoteRequest) obj; boolean result = true; result = result && getName().equals(other.getName()); result = result && (hasNote() == other.hasNote()); if (hasNote()) { result = result && getNote().equals(other.getNote()); } result = result && (hasUpdateMask() == other.hasUpdateMask()); if (hasUpdateMask()) { result = result && getUpdateMask().equals(other.getUpdateMask()); } result = result && unknownFields.equals(other.unknownFields); return result; }
/** * * * <pre> * Output only. The time this note was created. This field can be used as a * filter in list requests. * </pre> * * <code>.google.protobuf.Timestamp create_time = 7;</code> */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); }