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

io.axoniq.axonserver.grpc.event.Event Maven / Gradle / Ivy

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

package io.axoniq.axonserver.grpc.event;

/**
 * 
 * Message containing the information of an Event 
 * 
* * Protobuf type {@code io.axoniq.axonserver.grpc.event.Event} */ public final class Event extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.event.Event) EventOrBuilder { private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Event() { messageIdentifier_ = ""; aggregateIdentifier_ = ""; aggregateSequenceNumber_ = 0L; aggregateType_ = ""; timestamp_ = 0L; snapshot_ = false; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Event( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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: { java.lang.String s = input.readStringRequireUtf8(); messageIdentifier_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); aggregateIdentifier_ = s; break; } case 24: { aggregateSequenceNumber_ = input.readInt64(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); aggregateType_ = s; break; } case 40: { timestamp_ = input.readInt64(); break; } case 50: { io.axoniq.axonserver.grpc.SerializedObject.Builder subBuilder = null; if (payload_ != null) { subBuilder = payload_.toBuilder(); } payload_ = input.readMessage(io.axoniq.axonserver.grpc.SerializedObject.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(payload_); payload_ = subBuilder.buildPartial(); } break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { metaData_ = com.google.protobuf.MapField.newMapField( MetaDataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000040; } com.google.protobuf.MapEntry metaData__ = input.readMessage( MetaDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); metaData_.getMutableMap().put( metaData__.getKey(), metaData__.getValue()); break; } case 64: { snapshot_ = input.readBool(); break; } default: { if (!parseUnknownFieldProto3( 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 io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_Event_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetMetaData(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( io.axoniq.axonserver.grpc.event.Event.class, io.axoniq.axonserver.grpc.event.Event.Builder.class); } private int bitField0_; public static final int MESSAGE_IDENTIFIER_FIELD_NUMBER = 1; private volatile java.lang.Object messageIdentifier_; /** *
   * The unique identifier of this event 
   * 
* * string message_identifier = 1; */ public java.lang.String getMessageIdentifier() { java.lang.Object ref = messageIdentifier_; 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(); messageIdentifier_ = s; return s; } } /** *
   * The unique identifier of this event 
   * 
* * string message_identifier = 1; */ public com.google.protobuf.ByteString getMessageIdentifierBytes() { java.lang.Object ref = messageIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AGGREGATE_IDENTIFIER_FIELD_NUMBER = 2; private volatile java.lang.Object aggregateIdentifier_; /** *
   * The identifier of the Aggregate instance that published this event, if any 
   * 
* * string aggregate_identifier = 2; */ public java.lang.String getAggregateIdentifier() { java.lang.Object ref = aggregateIdentifier_; 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(); aggregateIdentifier_ = s; return s; } } /** *
   * The identifier of the Aggregate instance that published this event, if any 
   * 
* * string aggregate_identifier = 2; */ public com.google.protobuf.ByteString getAggregateIdentifierBytes() { java.lang.Object ref = aggregateIdentifier_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregateIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AGGREGATE_SEQUENCE_NUMBER_FIELD_NUMBER = 3; private long aggregateSequenceNumber_; /** *
   * The sequence number of the Event in the Aggregate instance that published it, if any 
   * 
* * int64 aggregate_sequence_number = 3; */ public long getAggregateSequenceNumber() { return aggregateSequenceNumber_; } public static final int AGGREGATE_TYPE_FIELD_NUMBER = 4; private volatile java.lang.Object aggregateType_; /** *
   * The Type of the Aggregate instance that published this Event, if any 
   * 
* * string aggregate_type = 4; */ public java.lang.String getAggregateType() { java.lang.Object ref = aggregateType_; 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(); aggregateType_ = s; return s; } } /** *
   * The Type of the Aggregate instance that published this Event, if any 
   * 
* * string aggregate_type = 4; */ public com.google.protobuf.ByteString getAggregateTypeBytes() { java.lang.Object ref = aggregateType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregateType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMESTAMP_FIELD_NUMBER = 5; private long timestamp_; /** *
   * The timestamp of the Event 
   * 
* * int64 timestamp = 5; */ public long getTimestamp() { return timestamp_; } public static final int PAYLOAD_FIELD_NUMBER = 6; private io.axoniq.axonserver.grpc.SerializedObject payload_; /** *
   * The Payload of the Event 
   * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public boolean hasPayload() { return payload_ != null; } /** *
   * The Payload of the Event 
   * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public io.axoniq.axonserver.grpc.SerializedObject getPayload() { return payload_ == null ? io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance() : payload_; } /** *
   * The Payload of the Event 
   * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public io.axoniq.axonserver.grpc.SerializedObjectOrBuilder getPayloadOrBuilder() { return getPayload(); } public static final int META_DATA_FIELD_NUMBER = 7; private static final class MetaDataDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.axoniq.axonserver.grpc.MetaDataValue> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_Event_MetaDataEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.axoniq.axonserver.grpc.MetaDataValue.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.axoniq.axonserver.grpc.MetaDataValue> metaData_; private com.google.protobuf.MapField internalGetMetaData() { if (metaData_ == null) { return com.google.protobuf.MapField.emptyMapField( MetaDataDefaultEntryHolder.defaultEntry); } return metaData_; } public int getMetaDataCount() { return internalGetMetaData().getMap().size(); } /** *
   * The Meta Data of the Event 
   * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public boolean containsMetaData( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetaData().getMap().containsKey(key); } /** * Use {@link #getMetaDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getMetaData() { return getMetaDataMap(); } /** *
   * The Meta Data of the Event 
   * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public java.util.Map getMetaDataMap() { return internalGetMetaData().getMap(); } /** *
   * The Meta Data of the Event 
   * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public io.axoniq.axonserver.grpc.MetaDataValue getMetaDataOrDefault( java.lang.String key, io.axoniq.axonserver.grpc.MetaDataValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMetaData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * The Meta Data of the Event 
   * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public io.axoniq.axonserver.grpc.MetaDataValue getMetaDataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMetaData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int SNAPSHOT_FIELD_NUMBER = 8; private boolean snapshot_; /** *
   * Flag indicating whether the Event is a snapshot Event 
   * 
* * bool snapshot = 8; */ public boolean getSnapshot() { return snapshot_; } 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 (!getMessageIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIdentifier_); } if (!getAggregateIdentifierBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, aggregateIdentifier_); } if (aggregateSequenceNumber_ != 0L) { output.writeInt64(3, aggregateSequenceNumber_); } if (!getAggregateTypeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, aggregateType_); } if (timestamp_ != 0L) { output.writeInt64(5, timestamp_); } if (payload_ != null) { output.writeMessage(6, getPayload()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetaData(), MetaDataDefaultEntryHolder.defaultEntry, 7); if (snapshot_ != false) { output.writeBool(8, snapshot_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getMessageIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, messageIdentifier_); } if (!getAggregateIdentifierBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, aggregateIdentifier_); } if (aggregateSequenceNumber_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(3, aggregateSequenceNumber_); } if (!getAggregateTypeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, aggregateType_); } if (timestamp_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(5, timestamp_); } if (payload_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPayload()); } for (java.util.Map.Entry entry : internalGetMetaData().getMap().entrySet()) { com.google.protobuf.MapEntry metaData__ = MetaDataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, metaData__); } if (snapshot_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, snapshot_); } 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 io.axoniq.axonserver.grpc.event.Event)) { return super.equals(obj); } io.axoniq.axonserver.grpc.event.Event other = (io.axoniq.axonserver.grpc.event.Event) obj; boolean result = true; result = result && getMessageIdentifier() .equals(other.getMessageIdentifier()); result = result && getAggregateIdentifier() .equals(other.getAggregateIdentifier()); result = result && (getAggregateSequenceNumber() == other.getAggregateSequenceNumber()); result = result && getAggregateType() .equals(other.getAggregateType()); result = result && (getTimestamp() == other.getTimestamp()); result = result && (hasPayload() == other.hasPayload()); if (hasPayload()) { result = result && getPayload() .equals(other.getPayload()); } result = result && internalGetMetaData().equals( other.internalGetMetaData()); result = result && (getSnapshot() == other.getSnapshot()); result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + MESSAGE_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getMessageIdentifier().hashCode(); hash = (37 * hash) + AGGREGATE_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getAggregateIdentifier().hashCode(); hash = (37 * hash) + AGGREGATE_SEQUENCE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAggregateSequenceNumber()); hash = (37 * hash) + AGGREGATE_TYPE_FIELD_NUMBER; hash = (53 * hash) + getAggregateType().hashCode(); hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimestamp()); if (hasPayload()) { hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); } if (!internalGetMetaData().getMap().isEmpty()) { hash = (37 * hash) + META_DATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetaData().hashCode(); } hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSnapshot()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.axoniq.axonserver.grpc.event.Event parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.event.Event parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.axoniq.axonserver.grpc.event.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.event.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.axoniq.axonserver.grpc.event.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.event.Event parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.axoniq.axonserver.grpc.event.Event parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.event.Event 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.axoniq.axonserver.grpc.event.Event parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.event.Event 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.axoniq.axonserver.grpc.event.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.event.Event 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(io.axoniq.axonserver.grpc.event.Event 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; } /** *
   * Message containing the information of an Event 
   * 
* * Protobuf type {@code io.axoniq.axonserver.grpc.event.Event} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.event.Event) io.axoniq.axonserver.grpc.event.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_Event_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 7: return internalGetMetaData(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 7: return internalGetMutableMetaData(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( io.axoniq.axonserver.grpc.event.Event.class, io.axoniq.axonserver.grpc.event.Event.Builder.class); } // Construct using io.axoniq.axonserver.grpc.event.Event.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(); messageIdentifier_ = ""; aggregateIdentifier_ = ""; aggregateSequenceNumber_ = 0L; aggregateType_ = ""; timestamp_ = 0L; if (payloadBuilder_ == null) { payload_ = null; } else { payload_ = null; payloadBuilder_ = null; } internalGetMutableMetaData().clear(); snapshot_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.axoniq.axonserver.grpc.event.EventOuterClass.internal_static_io_axoniq_axonserver_grpc_event_Event_descriptor; } @java.lang.Override public io.axoniq.axonserver.grpc.event.Event getDefaultInstanceForType() { return io.axoniq.axonserver.grpc.event.Event.getDefaultInstance(); } @java.lang.Override public io.axoniq.axonserver.grpc.event.Event build() { io.axoniq.axonserver.grpc.event.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.axoniq.axonserver.grpc.event.Event buildPartial() { io.axoniq.axonserver.grpc.event.Event result = new io.axoniq.axonserver.grpc.event.Event(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.messageIdentifier_ = messageIdentifier_; result.aggregateIdentifier_ = aggregateIdentifier_; result.aggregateSequenceNumber_ = aggregateSequenceNumber_; result.aggregateType_ = aggregateType_; result.timestamp_ = timestamp_; if (payloadBuilder_ == null) { result.payload_ = payload_; } else { result.payload_ = payloadBuilder_.build(); } result.metaData_ = internalGetMetaData(); result.metaData_.makeImmutable(); result.snapshot_ = snapshot_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.axoniq.axonserver.grpc.event.Event) { return mergeFrom((io.axoniq.axonserver.grpc.event.Event)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.axoniq.axonserver.grpc.event.Event other) { if (other == io.axoniq.axonserver.grpc.event.Event.getDefaultInstance()) return this; if (!other.getMessageIdentifier().isEmpty()) { messageIdentifier_ = other.messageIdentifier_; onChanged(); } if (!other.getAggregateIdentifier().isEmpty()) { aggregateIdentifier_ = other.aggregateIdentifier_; onChanged(); } if (other.getAggregateSequenceNumber() != 0L) { setAggregateSequenceNumber(other.getAggregateSequenceNumber()); } if (!other.getAggregateType().isEmpty()) { aggregateType_ = other.aggregateType_; onChanged(); } if (other.getTimestamp() != 0L) { setTimestamp(other.getTimestamp()); } if (other.hasPayload()) { mergePayload(other.getPayload()); } internalGetMutableMetaData().mergeFrom( other.internalGetMetaData()); if (other.getSnapshot() != false) { setSnapshot(other.getSnapshot()); } 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 { io.axoniq.axonserver.grpc.event.Event parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.axoniq.axonserver.grpc.event.Event) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object messageIdentifier_ = ""; /** *
     * The unique identifier of this event 
     * 
* * string message_identifier = 1; */ public java.lang.String getMessageIdentifier() { java.lang.Object ref = messageIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); messageIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The unique identifier of this event 
     * 
* * string message_identifier = 1; */ public com.google.protobuf.ByteString getMessageIdentifierBytes() { java.lang.Object ref = messageIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); messageIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The unique identifier of this event 
     * 
* * string message_identifier = 1; */ public Builder setMessageIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } messageIdentifier_ = value; onChanged(); return this; } /** *
     * The unique identifier of this event 
     * 
* * string message_identifier = 1; */ public Builder clearMessageIdentifier() { messageIdentifier_ = getDefaultInstance().getMessageIdentifier(); onChanged(); return this; } /** *
     * The unique identifier of this event 
     * 
* * string message_identifier = 1; */ public Builder setMessageIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); messageIdentifier_ = value; onChanged(); return this; } private java.lang.Object aggregateIdentifier_ = ""; /** *
     * The identifier of the Aggregate instance that published this event, if any 
     * 
* * string aggregate_identifier = 2; */ public java.lang.String getAggregateIdentifier() { java.lang.Object ref = aggregateIdentifier_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); aggregateIdentifier_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The identifier of the Aggregate instance that published this event, if any 
     * 
* * string aggregate_identifier = 2; */ public com.google.protobuf.ByteString getAggregateIdentifierBytes() { java.lang.Object ref = aggregateIdentifier_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregateIdentifier_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The identifier of the Aggregate instance that published this event, if any 
     * 
* * string aggregate_identifier = 2; */ public Builder setAggregateIdentifier( java.lang.String value) { if (value == null) { throw new NullPointerException(); } aggregateIdentifier_ = value; onChanged(); return this; } /** *
     * The identifier of the Aggregate instance that published this event, if any 
     * 
* * string aggregate_identifier = 2; */ public Builder clearAggregateIdentifier() { aggregateIdentifier_ = getDefaultInstance().getAggregateIdentifier(); onChanged(); return this; } /** *
     * The identifier of the Aggregate instance that published this event, if any 
     * 
* * string aggregate_identifier = 2; */ public Builder setAggregateIdentifierBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); aggregateIdentifier_ = value; onChanged(); return this; } private long aggregateSequenceNumber_ ; /** *
     * The sequence number of the Event in the Aggregate instance that published it, if any 
     * 
* * int64 aggregate_sequence_number = 3; */ public long getAggregateSequenceNumber() { return aggregateSequenceNumber_; } /** *
     * The sequence number of the Event in the Aggregate instance that published it, if any 
     * 
* * int64 aggregate_sequence_number = 3; */ public Builder setAggregateSequenceNumber(long value) { aggregateSequenceNumber_ = value; onChanged(); return this; } /** *
     * The sequence number of the Event in the Aggregate instance that published it, if any 
     * 
* * int64 aggregate_sequence_number = 3; */ public Builder clearAggregateSequenceNumber() { aggregateSequenceNumber_ = 0L; onChanged(); return this; } private java.lang.Object aggregateType_ = ""; /** *
     * The Type of the Aggregate instance that published this Event, if any 
     * 
* * string aggregate_type = 4; */ public java.lang.String getAggregateType() { java.lang.Object ref = aggregateType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); aggregateType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The Type of the Aggregate instance that published this Event, if any 
     * 
* * string aggregate_type = 4; */ public com.google.protobuf.ByteString getAggregateTypeBytes() { java.lang.Object ref = aggregateType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aggregateType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The Type of the Aggregate instance that published this Event, if any 
     * 
* * string aggregate_type = 4; */ public Builder setAggregateType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } aggregateType_ = value; onChanged(); return this; } /** *
     * The Type of the Aggregate instance that published this Event, if any 
     * 
* * string aggregate_type = 4; */ public Builder clearAggregateType() { aggregateType_ = getDefaultInstance().getAggregateType(); onChanged(); return this; } /** *
     * The Type of the Aggregate instance that published this Event, if any 
     * 
* * string aggregate_type = 4; */ public Builder setAggregateTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); aggregateType_ = value; onChanged(); return this; } private long timestamp_ ; /** *
     * The timestamp of the Event 
     * 
* * int64 timestamp = 5; */ public long getTimestamp() { return timestamp_; } /** *
     * The timestamp of the Event 
     * 
* * int64 timestamp = 5; */ public Builder setTimestamp(long value) { timestamp_ = value; onChanged(); return this; } /** *
     * The timestamp of the Event 
     * 
* * int64 timestamp = 5; */ public Builder clearTimestamp() { timestamp_ = 0L; onChanged(); return this; } private io.axoniq.axonserver.grpc.SerializedObject payload_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder> payloadBuilder_; /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public io.axoniq.axonserver.grpc.SerializedObject getPayload() { if (payloadBuilder_ == null) { return payload_ == null ? io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public Builder setPayload(io.axoniq.axonserver.grpc.SerializedObject value) { if (payloadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } payload_ = value; onChanged(); } else { payloadBuilder_.setMessage(value); } return this; } /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public Builder setPayload( io.axoniq.axonserver.grpc.SerializedObject.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public Builder mergePayload(io.axoniq.axonserver.grpc.SerializedObject value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = io.axoniq.axonserver.grpc.SerializedObject.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } onChanged(); } else { payloadBuilder_.mergeFrom(value); } return this; } /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public Builder clearPayload() { if (payloadBuilder_ == null) { payload_ = null; onChanged(); } else { payload_ = null; payloadBuilder_ = null; } return this; } /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public io.axoniq.axonserver.grpc.SerializedObject.Builder getPayloadBuilder() { onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ public io.axoniq.axonserver.grpc.SerializedObjectOrBuilder getPayloadOrBuilder() { if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { return payload_ == null ? io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance() : payload_; } } /** *
     * The Payload of the Event 
     * 
* * .io.axoniq.axonserver.grpc.SerializedObject payload = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder>( getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; } private com.google.protobuf.MapField< java.lang.String, io.axoniq.axonserver.grpc.MetaDataValue> metaData_; private com.google.protobuf.MapField internalGetMetaData() { if (metaData_ == null) { return com.google.protobuf.MapField.emptyMapField( MetaDataDefaultEntryHolder.defaultEntry); } return metaData_; } private com.google.protobuf.MapField internalGetMutableMetaData() { onChanged();; if (metaData_ == null) { metaData_ = com.google.protobuf.MapField.newMapField( MetaDataDefaultEntryHolder.defaultEntry); } if (!metaData_.isMutable()) { metaData_ = metaData_.copy(); } return metaData_; } public int getMetaDataCount() { return internalGetMetaData().getMap().size(); } /** *
     * The Meta Data of the Event 
     * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public boolean containsMetaData( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMetaData().getMap().containsKey(key); } /** * Use {@link #getMetaDataMap()} instead. */ @java.lang.Deprecated public java.util.Map getMetaData() { return getMetaDataMap(); } /** *
     * The Meta Data of the Event 
     * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public java.util.Map getMetaDataMap() { return internalGetMetaData().getMap(); } /** *
     * The Meta Data of the Event 
     * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public io.axoniq.axonserver.grpc.MetaDataValue getMetaDataOrDefault( java.lang.String key, io.axoniq.axonserver.grpc.MetaDataValue defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMetaData().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * The Meta Data of the Event 
     * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public io.axoniq.axonserver.grpc.MetaDataValue getMetaDataOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMetaData().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMetaData() { internalGetMutableMetaData().getMutableMap() .clear(); return this; } /** *
     * The Meta Data of the Event 
     * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public Builder removeMetaData( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableMetaData().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMetaData() { return internalGetMutableMetaData().getMutableMap(); } /** *
     * The Meta Data of the Event 
     * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public Builder putMetaData( java.lang.String key, io.axoniq.axonserver.grpc.MetaDataValue value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableMetaData().getMutableMap() .put(key, value); return this; } /** *
     * The Meta Data of the Event 
     * 
* * map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 7; */ public Builder putAllMetaData( java.util.Map values) { internalGetMutableMetaData().getMutableMap() .putAll(values); return this; } private boolean snapshot_ ; /** *
     * Flag indicating whether the Event is a snapshot Event 
     * 
* * bool snapshot = 8; */ public boolean getSnapshot() { return snapshot_; } /** *
     * Flag indicating whether the Event is a snapshot Event 
     * 
* * bool snapshot = 8; */ public Builder setSnapshot(boolean value) { snapshot_ = value; onChanged(); return this; } /** *
     * Flag indicating whether the Event is a snapshot Event 
     * 
* * bool snapshot = 8; */ public Builder clearSnapshot() { snapshot_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:io.axoniq.axonserver.grpc.event.Event) } // @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.event.Event) private static final io.axoniq.axonserver.grpc.event.Event DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.event.Event(); } public static io.axoniq.axonserver.grpc.event.Event getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Event parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Event(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 io.axoniq.axonserver.grpc.event.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy