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

com.salesforce.eventbus.protobuf.ProducerEvent Maven / Gradle / Ivy

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

package com.salesforce.eventbus.protobuf;

/**
 * 
 *
 * Represents an event that an event publishing app creates.
 * 
* * Protobuf type {@code eventbus.v1.ProducerEvent} */ public final class ProducerEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:eventbus.v1.ProducerEvent) ProducerEventOrBuilder { private static final long serialVersionUID = 0L; // Use ProducerEvent.newBuilder() to construct. private ProducerEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ProducerEvent() { id_ = ""; schemaId_ = ""; payload_ = com.google.protobuf.ByteString.EMPTY; headers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ProducerEvent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_ProducerEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_ProducerEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.salesforce.eventbus.protobuf.ProducerEvent.class, com.salesforce.eventbus.protobuf.ProducerEvent.Builder.class); } public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** *
   * Either a user-provided ID or a system generated guid
   * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
   * Either a user-provided ID or a system generated guid
   * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SCHEMA_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object schemaId_ = ""; /** *
   * Schema fingerprint for this event which is hash of the schema
   * 
* * string schema_id = 2; * @return The schemaId. */ @java.lang.Override public java.lang.String getSchemaId() { java.lang.Object ref = schemaId_; 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(); schemaId_ = s; return s; } } /** *
   * Schema fingerprint for this event which is hash of the schema
   * 
* * string schema_id = 2; * @return The bytes for schemaId. */ @java.lang.Override public com.google.protobuf.ByteString getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PAYLOAD_FIELD_NUMBER = 3; private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
   * The message data field
   * 
* * bytes payload = 3; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } public static final int HEADERS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List headers_; /** *
   * Reserved for future use. Key-value pairs of headers.
   * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ @java.lang.Override public java.util.List getHeadersList() { return headers_; } /** *
   * Reserved for future use. Key-value pairs of headers.
   * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ @java.lang.Override public java.util.List getHeadersOrBuilderList() { return headers_; } /** *
   * Reserved for future use. Key-value pairs of headers.
   * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ @java.lang.Override public int getHeadersCount() { return headers_.size(); } /** *
   * Reserved for future use. Key-value pairs of headers.
   * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ @java.lang.Override public com.salesforce.eventbus.protobuf.EventHeader getHeaders(int index) { return headers_.get(index); } /** *
   * Reserved for future use. Key-value pairs of headers.
   * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ @java.lang.Override public com.salesforce.eventbus.protobuf.EventHeaderOrBuilder getHeadersOrBuilder( int index) { return headers_.get(index); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaId_); } if (!payload_.isEmpty()) { output.writeBytes(3, payload_); } for (int i = 0; i < headers_.size(); i++) { output.writeMessage(4, headers_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaId_); } if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, payload_); } for (int i = 0; i < headers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, headers_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.salesforce.eventbus.protobuf.ProducerEvent)) { return super.equals(obj); } com.salesforce.eventbus.protobuf.ProducerEvent other = (com.salesforce.eventbus.protobuf.ProducerEvent) obj; if (!getId() .equals(other.getId())) return false; if (!getSchemaId() .equals(other.getSchemaId())) return false; if (!getPayload() .equals(other.getPayload())) return false; if (!getHeadersList() .equals(other.getHeadersList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + SCHEMA_ID_FIELD_NUMBER; hash = (53 * hash) + getSchemaId().hashCode(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); if (getHeadersCount() > 0) { hash = (37 * hash) + HEADERS_FIELD_NUMBER; hash = (53 * hash) + getHeadersList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.salesforce.eventbus.protobuf.ProducerEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.salesforce.eventbus.protobuf.ProducerEvent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.salesforce.eventbus.protobuf.ProducerEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.salesforce.eventbus.protobuf.ProducerEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.salesforce.eventbus.protobuf.ProducerEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.salesforce.eventbus.protobuf.ProducerEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.salesforce.eventbus.protobuf.ProducerEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.salesforce.eventbus.protobuf.ProducerEvent 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 com.salesforce.eventbus.protobuf.ProducerEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.salesforce.eventbus.protobuf.ProducerEvent 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 com.salesforce.eventbus.protobuf.ProducerEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.salesforce.eventbus.protobuf.ProducerEvent 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(com.salesforce.eventbus.protobuf.ProducerEvent 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; } /** *
   *
   * Represents an event that an event publishing app creates.
   * 
* * Protobuf type {@code eventbus.v1.ProducerEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:eventbus.v1.ProducerEvent) com.salesforce.eventbus.protobuf.ProducerEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_ProducerEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_ProducerEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.salesforce.eventbus.protobuf.ProducerEvent.class, com.salesforce.eventbus.protobuf.ProducerEvent.Builder.class); } // Construct using com.salesforce.eventbus.protobuf.ProducerEvent.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; id_ = ""; schemaId_ = ""; payload_ = com.google.protobuf.ByteString.EMPTY; if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); } else { headers_ = null; headersBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.salesforce.eventbus.protobuf.PubSubProto.internal_static_eventbus_v1_ProducerEvent_descriptor; } @java.lang.Override public com.salesforce.eventbus.protobuf.ProducerEvent getDefaultInstanceForType() { return com.salesforce.eventbus.protobuf.ProducerEvent.getDefaultInstance(); } @java.lang.Override public com.salesforce.eventbus.protobuf.ProducerEvent build() { com.salesforce.eventbus.protobuf.ProducerEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.salesforce.eventbus.protobuf.ProducerEvent buildPartial() { com.salesforce.eventbus.protobuf.ProducerEvent result = new com.salesforce.eventbus.protobuf.ProducerEvent(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.salesforce.eventbus.protobuf.ProducerEvent result) { if (headersBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { headers_ = java.util.Collections.unmodifiableList(headers_); bitField0_ = (bitField0_ & ~0x00000008); } result.headers_ = headers_; } else { result.headers_ = headersBuilder_.build(); } } private void buildPartial0(com.salesforce.eventbus.protobuf.ProducerEvent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.id_ = id_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.schemaId_ = schemaId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.payload_ = payload_; } } @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 com.salesforce.eventbus.protobuf.ProducerEvent) { return mergeFrom((com.salesforce.eventbus.protobuf.ProducerEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.salesforce.eventbus.protobuf.ProducerEvent other) { if (other == com.salesforce.eventbus.protobuf.ProducerEvent.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getSchemaId().isEmpty()) { schemaId_ = other.schemaId_; bitField0_ |= 0x00000002; onChanged(); } if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } if (headersBuilder_ == null) { if (!other.headers_.isEmpty()) { if (headers_.isEmpty()) { headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureHeadersIsMutable(); headers_.addAll(other.headers_); } onChanged(); } } else { if (!other.headers_.isEmpty()) { if (headersBuilder_.isEmpty()) { headersBuilder_.dispose(); headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000008); headersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { id_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { schemaId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { payload_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.salesforce.eventbus.protobuf.EventHeader m = input.readMessage( com.salesforce.eventbus.protobuf.EventHeader.parser(), extensionRegistry); if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(m); } else { headersBuilder_.addMessage(m); } break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * Either a user-provided ID or a system generated guid
     * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Either a user-provided ID or a system generated guid
     * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Either a user-provided ID or a system generated guid
     * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Either a user-provided ID or a system generated guid
     * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Either a user-provided ID or a system generated guid
     * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object schemaId_ = ""; /** *
     * Schema fingerprint for this event which is hash of the schema
     * 
* * string schema_id = 2; * @return The schemaId. */ public java.lang.String getSchemaId() { java.lang.Object ref = schemaId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Schema fingerprint for this event which is hash of the schema
     * 
* * string schema_id = 2; * @return The bytes for schemaId. */ public com.google.protobuf.ByteString getSchemaIdBytes() { java.lang.Object ref = schemaId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); schemaId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Schema fingerprint for this event which is hash of the schema
     * 
* * string schema_id = 2; * @param value The schemaId to set. * @return This builder for chaining. */ public Builder setSchemaId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } schemaId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Schema fingerprint for this event which is hash of the schema
     * 
* * string schema_id = 2; * @return This builder for chaining. */ public Builder clearSchemaId() { schemaId_ = getDefaultInstance().getSchemaId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Schema fingerprint for this event which is hash of the schema
     * 
* * string schema_id = 2; * @param value The bytes for schemaId to set. * @return This builder for chaining. */ public Builder setSchemaIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; /** *
     * The message data field
     * 
* * bytes payload = 3; * @return The payload. */ @java.lang.Override public com.google.protobuf.ByteString getPayload() { return payload_; } /** *
     * The message data field
     * 
* * bytes payload = 3; * @param value The payload to set. * @return This builder for chaining. */ public Builder setPayload(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } payload_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * The message data field
     * 
* * bytes payload = 3; * @return This builder for chaining. */ public Builder clearPayload() { bitField0_ = (bitField0_ & ~0x00000004); payload_ = getDefaultInstance().getPayload(); onChanged(); return this; } private java.util.List headers_ = java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.salesforce.eventbus.protobuf.EventHeader, com.salesforce.eventbus.protobuf.EventHeader.Builder, com.salesforce.eventbus.protobuf.EventHeaderOrBuilder> headersBuilder_; /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public java.util.List getHeadersList() { if (headersBuilder_ == null) { return java.util.Collections.unmodifiableList(headers_); } else { return headersBuilder_.getMessageList(); } } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public int getHeadersCount() { if (headersBuilder_ == null) { return headers_.size(); } else { return headersBuilder_.getCount(); } } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public com.salesforce.eventbus.protobuf.EventHeader getHeaders(int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessage(index); } } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder setHeaders( int index, com.salesforce.eventbus.protobuf.EventHeader value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.set(index, value); onChanged(); } else { headersBuilder_.setMessage(index, value); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder setHeaders( int index, com.salesforce.eventbus.protobuf.EventHeader.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.set(index, builderForValue.build()); onChanged(); } else { headersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder addHeaders(com.salesforce.eventbus.protobuf.EventHeader value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(value); onChanged(); } else { headersBuilder_.addMessage(value); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder addHeaders( int index, com.salesforce.eventbus.protobuf.EventHeader value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(index, value); onChanged(); } else { headersBuilder_.addMessage(index, value); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder addHeaders( com.salesforce.eventbus.protobuf.EventHeader.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder addHeaders( int index, com.salesforce.eventbus.protobuf.EventHeader.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(index, builderForValue.build()); onChanged(); } else { headersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder addAllHeaders( java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder clearHeaders() { if (headersBuilder_ == null) { headers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { headersBuilder_.clear(); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public Builder removeHeaders(int index) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.remove(index); onChanged(); } else { headersBuilder_.remove(index); } return this; } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public com.salesforce.eventbus.protobuf.EventHeader.Builder getHeadersBuilder( int index) { return getHeadersFieldBuilder().getBuilder(index); } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public com.salesforce.eventbus.protobuf.EventHeaderOrBuilder getHeadersOrBuilder( int index) { if (headersBuilder_ == null) { return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public java.util.List getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(headers_); } } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public com.salesforce.eventbus.protobuf.EventHeader.Builder addHeadersBuilder() { return getHeadersFieldBuilder().addBuilder( com.salesforce.eventbus.protobuf.EventHeader.getDefaultInstance()); } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public com.salesforce.eventbus.protobuf.EventHeader.Builder addHeadersBuilder( int index) { return getHeadersFieldBuilder().addBuilder( index, com.salesforce.eventbus.protobuf.EventHeader.getDefaultInstance()); } /** *
     * Reserved for future use. Key-value pairs of headers.
     * 
* * repeated .eventbus.v1.EventHeader headers = 4; */ public java.util.List getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.salesforce.eventbus.protobuf.EventHeader, com.salesforce.eventbus.protobuf.EventHeader.Builder, com.salesforce.eventbus.protobuf.EventHeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.salesforce.eventbus.protobuf.EventHeader, com.salesforce.eventbus.protobuf.EventHeader.Builder, com.salesforce.eventbus.protobuf.EventHeaderOrBuilder>( headers_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } @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:eventbus.v1.ProducerEvent) } // @@protoc_insertion_point(class_scope:eventbus.v1.ProducerEvent) private static final com.salesforce.eventbus.protobuf.ProducerEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.salesforce.eventbus.protobuf.ProducerEvent(); } public static com.salesforce.eventbus.protobuf.ProducerEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ProducerEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.salesforce.eventbus.protobuf.ProducerEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy