All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.phenopackets.schema.v1.core.Update Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: base.proto

package org.phenopackets.schema.v1.core;

/**
 * 
 * Information about when an update to a record occurred, who or what made the update and any pertinent information
 * regarding the content and/or reason for the update
 * 
* * Protobuf type {@code org.phenopackets.schema.v1.core.Update} */ public final class Update extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:org.phenopackets.schema.v1.core.Update) UpdateOrBuilder { private static final long serialVersionUID = 0L; // Use Update.newBuilder() to construct. private Update(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Update() { updatedBy_ = ""; comment_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Update(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Update( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (timestamp_ != null) { subBuilder = timestamp_.toBuilder(); } timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(timestamp_); timestamp_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); updatedBy_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); comment_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( org.phenopackets.schema.v1.core.Update.class, org.phenopackets.schema.v1.core.Update.Builder.class); } public static final int TIMESTAMP_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp timestamp_; /** *
   * ISO8601 UTC timestamps at which this record was updated, in
   * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
   * REQUIRED
   * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public boolean hasTimestamp() { return timestamp_ != null; } /** *
   * ISO8601 UTC timestamps at which this record was updated, in
   * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
   * REQUIRED
   * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.Timestamp getTimestamp() { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } /** *
   * ISO8601 UTC timestamps at which this record was updated, in
   * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
   * REQUIRED
   * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { return getTimestamp(); } public static final int UPDATED_BY_FIELD_NUMBER = 2; private volatile java.lang.Object updatedBy_; /** *
   * Information about the person/organisation/network that has updated the phenopacket.
   * OPTIONAL
   * 
* * string updated_by = 2; */ public java.lang.String getUpdatedBy() { java.lang.Object ref = updatedBy_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); updatedBy_ = s; return s; } } /** *
   * Information about the person/organisation/network that has updated the phenopacket.
   * OPTIONAL
   * 
* * string updated_by = 2; */ public com.google.protobuf.ByteString getUpdatedByBytes() { java.lang.Object ref = updatedBy_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); updatedBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMMENT_FIELD_NUMBER = 3; private volatile java.lang.Object comment_; /** *
   * Textual comment about the changes made to the content and/or reason for the update.
   * OPTIONAL
   * 
* * string comment = 3; */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } } /** *
   * Textual comment about the changes made to the content and/or reason for the update.
   * OPTIONAL
   * 
* * string comment = 3; */ public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); comment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (timestamp_ != null) { output.writeMessage(1, getTimestamp()); } if (!getUpdatedByBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, updatedBy_); } if (!getCommentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, comment_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (timestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getTimestamp()); } if (!getUpdatedByBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, updatedBy_); } if (!getCommentBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, comment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.phenopackets.schema.v1.core.Update)) { return super.equals(obj); } org.phenopackets.schema.v1.core.Update other = (org.phenopackets.schema.v1.core.Update) obj; if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) return false; } if (!getUpdatedBy() .equals(other.getUpdatedBy())) return false; if (!getComment() .equals(other.getComment())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().hashCode(); } hash = (37 * hash) + UPDATED_BY_FIELD_NUMBER; hash = (53 * hash) + getUpdatedBy().hashCode(); hash = (37 * hash) + COMMENT_FIELD_NUMBER; hash = (53 * hash) + getComment().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.phenopackets.schema.v1.core.Update parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Update parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.phenopackets.schema.v1.core.Update parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Update parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.phenopackets.schema.v1.core.Update parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.phenopackets.schema.v1.core.Update parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.phenopackets.schema.v1.core.Update parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.Update parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static org.phenopackets.schema.v1.core.Update parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.Update parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static org.phenopackets.schema.v1.core.Update parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.phenopackets.schema.v1.core.Update parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(org.phenopackets.schema.v1.core.Update prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Information about when an update to a record occurred, who or what made the update and any pertinent information
   * regarding the content and/or reason for the update
   * 
* * Protobuf type {@code org.phenopackets.schema.v1.core.Update} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:org.phenopackets.schema.v1.core.Update) org.phenopackets.schema.v1.core.UpdateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Update_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Update_fieldAccessorTable .ensureFieldAccessorsInitialized( org.phenopackets.schema.v1.core.Update.class, org.phenopackets.schema.v1.core.Update.Builder.class); } // Construct using org.phenopackets.schema.v1.core.Update.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (timestampBuilder_ == null) { timestamp_ = null; } else { timestamp_ = null; timestampBuilder_ = null; } updatedBy_ = ""; comment_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.phenopackets.schema.v1.core.Base.internal_static_org_phenopackets_schema_v1_core_Update_descriptor; } @java.lang.Override public org.phenopackets.schema.v1.core.Update getDefaultInstanceForType() { return org.phenopackets.schema.v1.core.Update.getDefaultInstance(); } @java.lang.Override public org.phenopackets.schema.v1.core.Update build() { org.phenopackets.schema.v1.core.Update result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.phenopackets.schema.v1.core.Update buildPartial() { org.phenopackets.schema.v1.core.Update result = new org.phenopackets.schema.v1.core.Update(this); if (timestampBuilder_ == null) { result.timestamp_ = timestamp_; } else { result.timestamp_ = timestampBuilder_.build(); } result.updatedBy_ = updatedBy_; result.comment_ = comment_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.phenopackets.schema.v1.core.Update) { return mergeFrom((org.phenopackets.schema.v1.core.Update)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.phenopackets.schema.v1.core.Update other) { if (other == org.phenopackets.schema.v1.core.Update.getDefaultInstance()) return this; if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } if (!other.getUpdatedBy().isEmpty()) { updatedBy_ = other.updatedBy_; onChanged(); } if (!other.getComment().isEmpty()) { comment_ = other.comment_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.phenopackets.schema.v1.core.Update parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.phenopackets.schema.v1.core.Update) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Timestamp timestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_; /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public boolean hasTimestamp() { return timestampBuilder_ != null || timestamp_ != null; } /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.Timestamp getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public Builder setTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; onChanged(); } else { timestampBuilder_.setMessage(value); } return this; } /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public Builder setTimestamp( com.google.protobuf.Timestamp.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); onChanged(); } else { timestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { if (timestampBuilder_ == null) { if (timestamp_ != null) { timestamp_ = com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } onChanged(); } else { timestampBuilder_.mergeFrom(value); } return this; } /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public Builder clearTimestamp() { if (timestampBuilder_ == null) { timestamp_ = null; onChanged(); } else { timestamp_ = null; timestampBuilder_ = null; } return this; } /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; } } /** *
     * ISO8601 UTC timestamps at which this record was updated, in
     * the format YYYY-MM-DDTHH:MM:SS.SSSZ e.g. 2007-12-03T10:15:30.00Z
     * REQUIRED
     * 
* * .google.protobuf.Timestamp timestamp = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private java.lang.Object updatedBy_ = ""; /** *
     * Information about the person/organisation/network that has updated the phenopacket.
     * OPTIONAL
     * 
* * string updated_by = 2; */ public java.lang.String getUpdatedBy() { java.lang.Object ref = updatedBy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); updatedBy_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Information about the person/organisation/network that has updated the phenopacket.
     * OPTIONAL
     * 
* * string updated_by = 2; */ public com.google.protobuf.ByteString getUpdatedByBytes() { java.lang.Object ref = updatedBy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); updatedBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Information about the person/organisation/network that has updated the phenopacket.
     * OPTIONAL
     * 
* * string updated_by = 2; */ public Builder setUpdatedBy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } updatedBy_ = value; onChanged(); return this; } /** *
     * Information about the person/organisation/network that has updated the phenopacket.
     * OPTIONAL
     * 
* * string updated_by = 2; */ public Builder clearUpdatedBy() { updatedBy_ = getDefaultInstance().getUpdatedBy(); onChanged(); return this; } /** *
     * Information about the person/organisation/network that has updated the phenopacket.
     * OPTIONAL
     * 
* * string updated_by = 2; */ public Builder setUpdatedByBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); updatedBy_ = value; onChanged(); return this; } private java.lang.Object comment_ = ""; /** *
     * Textual comment about the changes made to the content and/or reason for the update.
     * OPTIONAL
     * 
* * string comment = 3; */ public java.lang.String getComment() { java.lang.Object ref = comment_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); comment_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Textual comment about the changes made to the content and/or reason for the update.
     * OPTIONAL
     * 
* * string comment = 3; */ public com.google.protobuf.ByteString getCommentBytes() { java.lang.Object ref = comment_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); comment_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Textual comment about the changes made to the content and/or reason for the update.
     * OPTIONAL
     * 
* * string comment = 3; */ public Builder setComment( java.lang.String value) { if (value == null) { throw new NullPointerException(); } comment_ = value; onChanged(); return this; } /** *
     * Textual comment about the changes made to the content and/or reason for the update.
     * OPTIONAL
     * 
* * string comment = 3; */ public Builder clearComment() { comment_ = getDefaultInstance().getComment(); onChanged(); return this; } /** *
     * Textual comment about the changes made to the content and/or reason for the update.
     * OPTIONAL
     * 
* * string comment = 3; */ public Builder setCommentBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); comment_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:org.phenopackets.schema.v1.core.Update) } // @@protoc_insertion_point(class_scope:org.phenopackets.schema.v1.core.Update) private static final org.phenopackets.schema.v1.core.Update DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.phenopackets.schema.v1.core.Update(); } public static org.phenopackets.schema.v1.core.Update getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Update parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Update(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public org.phenopackets.schema.v1.core.Update getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy