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

io.nats.stan.protobuf.PubMsg Maven / Gradle / Ivy

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

package io.nats.stan.protobuf;

/**
 * 
 * How messages are delivered to the STAN cluster
 * 
* * Protobuf type {@code pb.PubMsg} */ public final class PubMsg extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:pb.PubMsg) PubMsgOrBuilder { // Use PubMsg.newBuilder() to construct. private PubMsg(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PubMsg() { clientID_ = ""; guid_ = ""; subject_ = ""; reply_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; sha256_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private PubMsg( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); int mutable_bitField0_ = 0; try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!input.skipField(tag)) { done = true; } break; } case 10: { java.lang.String s = input.readStringRequireUtf8(); clientID_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); guid_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); subject_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); reply_ = s; break; } case 42: { data_ = input.readBytes(); break; } case 82: { sha256_ = input.readBytes(); 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 { makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.nats.stan.protobuf.Protocol.internal_static_pb_PubMsg_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.nats.stan.protobuf.Protocol.internal_static_pb_PubMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( io.nats.stan.protobuf.PubMsg.class, io.nats.stan.protobuf.PubMsg.Builder.class); } public static final int CLIENTID_FIELD_NUMBER = 1; private volatile java.lang.Object clientID_; /** *
   * ClientID
   * 
* * optional string clientID = 1; */ public java.lang.String getClientID() { java.lang.Object ref = clientID_; 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(); clientID_ = s; return s; } } /** *
   * ClientID
   * 
* * optional string clientID = 1; */ public com.google.protobuf.ByteString getClientIDBytes() { java.lang.Object ref = clientID_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int GUID_FIELD_NUMBER = 2; private volatile java.lang.Object guid_; /** *
   * guid
   * 
* * optional string guid = 2; */ public java.lang.String getGuid() { java.lang.Object ref = guid_; 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(); guid_ = s; return s; } } /** *
   * guid
   * 
* * optional string guid = 2; */ public com.google.protobuf.ByteString getGuidBytes() { java.lang.Object ref = guid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); guid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SUBJECT_FIELD_NUMBER = 3; private volatile java.lang.Object subject_; /** *
   * subject
   * 
* * optional string subject = 3; */ public java.lang.String getSubject() { java.lang.Object ref = subject_; 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(); subject_ = s; return s; } } /** *
   * subject
   * 
* * optional string subject = 3; */ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPLY_FIELD_NUMBER = 4; private volatile java.lang.Object reply_; /** *
   * optional reply
   * 
* * optional string reply = 4; */ public java.lang.String getReply() { java.lang.Object ref = reply_; 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(); reply_ = s; return s; } } /** *
   * optional reply
   * 
* * optional string reply = 4; */ public com.google.protobuf.ByteString getReplyBytes() { java.lang.Object ref = reply_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reply_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 5; private com.google.protobuf.ByteString data_; /** *
   * payload
   * 
* * optional bytes data = 5; */ public com.google.protobuf.ByteString getData() { return data_; } public static final int SHA256_FIELD_NUMBER = 10; private com.google.protobuf.ByteString sha256_; /** *
   * optional sha256 of data
   * 
* * optional bytes sha256 = 10; */ public com.google.protobuf.ByteString getSha256() { return sha256_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getClientIDBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientID_); } if (!getGuidBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, guid_); } if (!getSubjectBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subject_); } if (!getReplyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reply_); } if (!data_.isEmpty()) { output.writeBytes(5, data_); } if (!sha256_.isEmpty()) { output.writeBytes(10, sha256_); } } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getClientIDBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientID_); } if (!getGuidBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, guid_); } if (!getSubjectBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subject_); } if (!getReplyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reply_); } if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, data_); } if (!sha256_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, sha256_); } memoizedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.nats.stan.protobuf.PubMsg)) { return super.equals(obj); } io.nats.stan.protobuf.PubMsg other = (io.nats.stan.protobuf.PubMsg) obj; boolean result = true; result = result && getClientID() .equals(other.getClientID()); result = result && getGuid() .equals(other.getGuid()); result = result && getSubject() .equals(other.getSubject()); result = result && getReply() .equals(other.getReply()); result = result && getData() .equals(other.getData()); result = result && getSha256() .equals(other.getSha256()); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + CLIENTID_FIELD_NUMBER; hash = (53 * hash) + getClientID().hashCode(); hash = (37 * hash) + GUID_FIELD_NUMBER; hash = (53 * hash) + getGuid().hashCode(); hash = (37 * hash) + SUBJECT_FIELD_NUMBER; hash = (53 * hash) + getSubject().hashCode(); hash = (37 * hash) + REPLY_FIELD_NUMBER; hash = (53 * hash) + getReply().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); hash = (37 * hash) + SHA256_FIELD_NUMBER; hash = (53 * hash) + getSha256().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.nats.stan.protobuf.PubMsg parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.nats.stan.protobuf.PubMsg parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.nats.stan.protobuf.PubMsg parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.nats.stan.protobuf.PubMsg parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.nats.stan.protobuf.PubMsg parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.nats.stan.protobuf.PubMsg 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 io.nats.stan.protobuf.PubMsg parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.nats.stan.protobuf.PubMsg 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 io.nats.stan.protobuf.PubMsg parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.nats.stan.protobuf.PubMsg parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.nats.stan.protobuf.PubMsg prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
   * How messages are delivered to the STAN cluster
   * 
* * Protobuf type {@code pb.PubMsg} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:pb.PubMsg) io.nats.stan.protobuf.PubMsgOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.nats.stan.protobuf.Protocol.internal_static_pb_PubMsg_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.nats.stan.protobuf.Protocol.internal_static_pb_PubMsg_fieldAccessorTable .ensureFieldAccessorsInitialized( io.nats.stan.protobuf.PubMsg.class, io.nats.stan.protobuf.PubMsg.Builder.class); } // Construct using io.nats.stan.protobuf.PubMsg.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); clientID_ = ""; guid_ = ""; subject_ = ""; reply_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; sha256_ = com.google.protobuf.ByteString.EMPTY; return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.nats.stan.protobuf.Protocol.internal_static_pb_PubMsg_descriptor; } public io.nats.stan.protobuf.PubMsg getDefaultInstanceForType() { return io.nats.stan.protobuf.PubMsg.getDefaultInstance(); } public io.nats.stan.protobuf.PubMsg build() { io.nats.stan.protobuf.PubMsg result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.nats.stan.protobuf.PubMsg buildPartial() { io.nats.stan.protobuf.PubMsg result = new io.nats.stan.protobuf.PubMsg(this); result.clientID_ = clientID_; result.guid_ = guid_; result.subject_ = subject_; result.reply_ = reply_; result.data_ = data_; result.sha256_ = sha256_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.nats.stan.protobuf.PubMsg) { return mergeFrom((io.nats.stan.protobuf.PubMsg)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.nats.stan.protobuf.PubMsg other) { if (other == io.nats.stan.protobuf.PubMsg.getDefaultInstance()) return this; if (!other.getClientID().isEmpty()) { clientID_ = other.clientID_; onChanged(); } if (!other.getGuid().isEmpty()) { guid_ = other.guid_; onChanged(); } if (!other.getSubject().isEmpty()) { subject_ = other.subject_; onChanged(); } if (!other.getReply().isEmpty()) { reply_ = other.reply_; onChanged(); } if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.getSha256() != com.google.protobuf.ByteString.EMPTY) { setSha256(other.getSha256()); } onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.nats.stan.protobuf.PubMsg parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.nats.stan.protobuf.PubMsg) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object clientID_ = ""; /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public java.lang.String getClientID() { java.lang.Object ref = clientID_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientID_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public com.google.protobuf.ByteString getClientIDBytes() { java.lang.Object ref = clientID_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clientID_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public Builder setClientID( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientID_ = value; onChanged(); return this; } /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public Builder clearClientID() { clientID_ = getDefaultInstance().getClientID(); onChanged(); return this; } /** *
     * ClientID
     * 
* * optional string clientID = 1; */ public Builder setClientIDBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientID_ = value; onChanged(); return this; } private java.lang.Object guid_ = ""; /** *
     * guid
     * 
* * optional string guid = 2; */ public java.lang.String getGuid() { java.lang.Object ref = guid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); guid_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * guid
     * 
* * optional string guid = 2; */ public com.google.protobuf.ByteString getGuidBytes() { java.lang.Object ref = guid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); guid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * guid
     * 
* * optional string guid = 2; */ public Builder setGuid( java.lang.String value) { if (value == null) { throw new NullPointerException(); } guid_ = value; onChanged(); return this; } /** *
     * guid
     * 
* * optional string guid = 2; */ public Builder clearGuid() { guid_ = getDefaultInstance().getGuid(); onChanged(); return this; } /** *
     * guid
     * 
* * optional string guid = 2; */ public Builder setGuidBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); guid_ = value; onChanged(); return this; } private java.lang.Object subject_ = ""; /** *
     * subject
     * 
* * optional string subject = 3; */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subject_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * subject
     * 
* * optional string subject = 3; */ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * subject
     * 
* * optional string subject = 3; */ public Builder setSubject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subject_ = value; onChanged(); return this; } /** *
     * subject
     * 
* * optional string subject = 3; */ public Builder clearSubject() { subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** *
     * subject
     * 
* * optional string subject = 3; */ public Builder setSubjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subject_ = value; onChanged(); return this; } private java.lang.Object reply_ = ""; /** *
     * optional reply
     * 
* * optional string reply = 4; */ public java.lang.String getReply() { java.lang.Object ref = reply_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reply_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * optional reply
     * 
* * optional string reply = 4; */ public com.google.protobuf.ByteString getReplyBytes() { java.lang.Object ref = reply_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); reply_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * optional reply
     * 
* * optional string reply = 4; */ public Builder setReply( java.lang.String value) { if (value == null) { throw new NullPointerException(); } reply_ = value; onChanged(); return this; } /** *
     * optional reply
     * 
* * optional string reply = 4; */ public Builder clearReply() { reply_ = getDefaultInstance().getReply(); onChanged(); return this; } /** *
     * optional reply
     * 
* * optional string reply = 4; */ public Builder setReplyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reply_ = value; onChanged(); return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
     * payload
     * 
* * optional bytes data = 5; */ public com.google.protobuf.ByteString getData() { return data_; } /** *
     * payload
     * 
* * optional bytes data = 5; */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); return this; } /** *
     * payload
     * 
* * optional bytes data = 5; */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private com.google.protobuf.ByteString sha256_ = com.google.protobuf.ByteString.EMPTY; /** *
     * optional sha256 of data
     * 
* * optional bytes sha256 = 10; */ public com.google.protobuf.ByteString getSha256() { return sha256_; } /** *
     * optional sha256 of data
     * 
* * optional bytes sha256 = 10; */ public Builder setSha256(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } sha256_ = value; onChanged(); return this; } /** *
     * optional sha256 of data
     * 
* * optional bytes sha256 = 10; */ public Builder clearSha256() { sha256_ = getDefaultInstance().getSha256(); onChanged(); return this; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return this; } // @@protoc_insertion_point(builder_scope:pb.PubMsg) } // @@protoc_insertion_point(class_scope:pb.PubMsg) private static final io.nats.stan.protobuf.PubMsg DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.nats.stan.protobuf.PubMsg(); } public static io.nats.stan.protobuf.PubMsg getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public PubMsg parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PubMsg(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public io.nats.stan.protobuf.PubMsg getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy