com.oracle.coherence.grpc.MapEventResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coherence-grpc Show documentation
Show all versions of coherence-grpc Show documentation
Coherence gRPC Common Functionality
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: messages.proto
package com.oracle.coherence.grpc;
/**
*
* A response containing a MapEvent for a MapListener
*
*
* Protobuf type {@code coherence.MapEventResponse}
*/
public final class MapEventResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:coherence.MapEventResponse)
MapEventResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MapEventResponse.newBuilder() to construct.
private MapEventResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MapEventResponse() {
key_ = com.google.protobuf.ByteString.EMPTY;
newValue_ = com.google.protobuf.ByteString.EMPTY;
oldValue_ = com.google.protobuf.ByteString.EMPTY;
transformationState_ = 0;
filterIds_ = emptyLongList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MapEventResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.oracle.coherence.grpc.Messages.internal_static_coherence_MapEventResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.oracle.coherence.grpc.Messages.internal_static_coherence_MapEventResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.oracle.coherence.grpc.MapEventResponse.class, com.oracle.coherence.grpc.MapEventResponse.Builder.class);
}
/**
*
* An enum of TransformationState values to describes how a CacheEvent has been or should be transformed.
*
*
* Protobuf enum {@code coherence.MapEventResponse.TransformationState}
*/
public enum TransformationState
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Value used to indicate that an event is non-transformable and should
* not be passed to any transformer-based listeners.
*
*
* NON_TRANSFORMABLE = 0;
*/
NON_TRANSFORMABLE(0),
/**
*
* Value used to indicate that an event is transformable and could be
* passed to transformer-based listeners.
*
*
* TRANSFORMABLE = 1;
*/
TRANSFORMABLE(1),
/**
*
* Value used to indicate that an event has been transformed, and should
* only be passed to transformer-based listeners.
*
*
* TRANSFORMED = 2;
*/
TRANSFORMED(2),
UNRECOGNIZED(-1),
;
/**
*
* Value used to indicate that an event is non-transformable and should
* not be passed to any transformer-based listeners.
*
*
* NON_TRANSFORMABLE = 0;
*/
public static final int NON_TRANSFORMABLE_VALUE = 0;
/**
*
* Value used to indicate that an event is transformable and could be
* passed to transformer-based listeners.
*
*
* TRANSFORMABLE = 1;
*/
public static final int TRANSFORMABLE_VALUE = 1;
/**
*
* Value used to indicate that an event has been transformed, and should
* only be passed to transformer-based listeners.
*
*
* TRANSFORMED = 2;
*/
public static final int TRANSFORMED_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TransformationState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TransformationState forNumber(int value) {
switch (value) {
case 0: return NON_TRANSFORMABLE;
case 1: return TRANSFORMABLE;
case 2: return TRANSFORMED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TransformationState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TransformationState findValueByNumber(int number) {
return TransformationState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.oracle.coherence.grpc.MapEventResponse.getDescriptor().getEnumTypes().get(0);
}
private static final TransformationState[] VALUES = values();
public static TransformationState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TransformationState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:coherence.MapEventResponse.TransformationState)
}
public static final int ID_FIELD_NUMBER = 1;
private int id_ = 0;
/**
*
* The type of the event
*
*
* int32 id = 1;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int KEY_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The key of the entry
*
*
* bytes key = 2;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
public static final int NEWVALUE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString newValue_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The new value of the entry
*
*
* bytes newValue = 3;
* @return The newValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNewValue() {
return newValue_;
}
public static final int OLDVALUE_FIELD_NUMBER = 4;
private com.google.protobuf.ByteString oldValue_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The old value of the entry
*
*
* bytes oldValue = 4;
* @return The oldValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOldValue() {
return oldValue_;
}
public static final int TRANSFORMATIONSTATE_FIELD_NUMBER = 5;
private int transformationState_ = 0;
/**
*
* TransformationState describes how a CacheEvent has been or should be transformed.
*
*
* .coherence.MapEventResponse.TransformationState transformationState = 5;
* @return The enum numeric value on the wire for transformationState.
*/
@java.lang.Override public int getTransformationStateValue() {
return transformationState_;
}
/**
*
* TransformationState describes how a CacheEvent has been or should be transformed.
*
*
* .coherence.MapEventResponse.TransformationState transformationState = 5;
* @return The transformationState.
*/
@java.lang.Override public com.oracle.coherence.grpc.MapEventResponse.TransformationState getTransformationState() {
com.oracle.coherence.grpc.MapEventResponse.TransformationState result = com.oracle.coherence.grpc.MapEventResponse.TransformationState.forNumber(transformationState_);
return result == null ? com.oracle.coherence.grpc.MapEventResponse.TransformationState.UNRECOGNIZED : result;
}
public static final int FILTERIDS_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private com.google.protobuf.Internal.LongList filterIds_;
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @return A list containing the filterIds.
*/
@java.lang.Override
public java.util.List
getFilterIdsList() {
return filterIds_;
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @return The count of filterIds.
*/
public int getFilterIdsCount() {
return filterIds_.size();
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @param index The index of the element to return.
* @return The filterIds at the given index.
*/
public long getFilterIds(int index) {
return filterIds_.getLong(index);
}
private int filterIdsMemoizedSerializedSize = -1;
public static final int SYNTHETIC_FIELD_NUMBER = 7;
private boolean synthetic_ = false;
/**
*
* A flag indicating whether the event is a synthetic event.
*
*
* bool synthetic = 7;
* @return The synthetic.
*/
@java.lang.Override
public boolean getSynthetic() {
return synthetic_;
}
public static final int PRIMING_FIELD_NUMBER = 8;
private boolean priming_ = false;
/**
*
* A flag indicating whether the event is a priming event.
*
*
* bool priming = 8;
* @return The priming.
*/
@java.lang.Override
public boolean getPriming() {
return priming_;
}
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 {
getSerializedSize();
if (id_ != 0) {
output.writeInt32(1, id_);
}
if (!key_.isEmpty()) {
output.writeBytes(2, key_);
}
if (!newValue_.isEmpty()) {
output.writeBytes(3, newValue_);
}
if (!oldValue_.isEmpty()) {
output.writeBytes(4, oldValue_);
}
if (transformationState_ != com.oracle.coherence.grpc.MapEventResponse.TransformationState.NON_TRANSFORMABLE.getNumber()) {
output.writeEnum(5, transformationState_);
}
if (getFilterIdsList().size() > 0) {
output.writeUInt32NoTag(50);
output.writeUInt32NoTag(filterIdsMemoizedSerializedSize);
}
for (int i = 0; i < filterIds_.size(); i++) {
output.writeInt64NoTag(filterIds_.getLong(i));
}
if (synthetic_ != false) {
output.writeBool(7, synthetic_);
}
if (priming_ != false) {
output.writeBool(8, priming_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, id_);
}
if (!key_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, key_);
}
if (!newValue_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, newValue_);
}
if (!oldValue_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, oldValue_);
}
if (transformationState_ != com.oracle.coherence.grpc.MapEventResponse.TransformationState.NON_TRANSFORMABLE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, transformationState_);
}
{
int dataSize = 0;
for (int i = 0; i < filterIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt64SizeNoTag(filterIds_.getLong(i));
}
size += dataSize;
if (!getFilterIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
filterIdsMemoizedSerializedSize = dataSize;
}
if (synthetic_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, synthetic_);
}
if (priming_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, priming_);
}
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.oracle.coherence.grpc.MapEventResponse)) {
return super.equals(obj);
}
com.oracle.coherence.grpc.MapEventResponse other = (com.oracle.coherence.grpc.MapEventResponse) obj;
if (getId()
!= other.getId()) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (!getNewValue()
.equals(other.getNewValue())) return false;
if (!getOldValue()
.equals(other.getOldValue())) return false;
if (transformationState_ != other.transformationState_) return false;
if (!getFilterIdsList()
.equals(other.getFilterIdsList())) return false;
if (getSynthetic()
!= other.getSynthetic()) return false;
if (getPriming()
!= other.getPriming()) 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();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + NEWVALUE_FIELD_NUMBER;
hash = (53 * hash) + getNewValue().hashCode();
hash = (37 * hash) + OLDVALUE_FIELD_NUMBER;
hash = (53 * hash) + getOldValue().hashCode();
hash = (37 * hash) + TRANSFORMATIONSTATE_FIELD_NUMBER;
hash = (53 * hash) + transformationState_;
if (getFilterIdsCount() > 0) {
hash = (37 * hash) + FILTERIDS_FIELD_NUMBER;
hash = (53 * hash) + getFilterIdsList().hashCode();
}
hash = (37 * hash) + SYNTHETIC_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSynthetic());
hash = (37 * hash) + PRIMING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPriming());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.oracle.coherence.grpc.MapEventResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.oracle.coherence.grpc.MapEventResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.oracle.coherence.grpc.MapEventResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.oracle.coherence.grpc.MapEventResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.oracle.coherence.grpc.MapEventResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.oracle.coherence.grpc.MapEventResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.oracle.coherence.grpc.MapEventResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.oracle.coherence.grpc.MapEventResponse 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.oracle.coherence.grpc.MapEventResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.oracle.coherence.grpc.MapEventResponse 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.oracle.coherence.grpc.MapEventResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.oracle.coherence.grpc.MapEventResponse 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.oracle.coherence.grpc.MapEventResponse 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;
}
/**
*
* A response containing a MapEvent for a MapListener
*
*
* Protobuf type {@code coherence.MapEventResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:coherence.MapEventResponse)
com.oracle.coherence.grpc.MapEventResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.oracle.coherence.grpc.Messages.internal_static_coherence_MapEventResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.oracle.coherence.grpc.Messages.internal_static_coherence_MapEventResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.oracle.coherence.grpc.MapEventResponse.class, com.oracle.coherence.grpc.MapEventResponse.Builder.class);
}
// Construct using com.oracle.coherence.grpc.MapEventResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0;
key_ = com.google.protobuf.ByteString.EMPTY;
newValue_ = com.google.protobuf.ByteString.EMPTY;
oldValue_ = com.google.protobuf.ByteString.EMPTY;
transformationState_ = 0;
filterIds_ = emptyLongList();
synthetic_ = false;
priming_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.oracle.coherence.grpc.Messages.internal_static_coherence_MapEventResponse_descriptor;
}
@java.lang.Override
public com.oracle.coherence.grpc.MapEventResponse getDefaultInstanceForType() {
return com.oracle.coherence.grpc.MapEventResponse.getDefaultInstance();
}
@java.lang.Override
public com.oracle.coherence.grpc.MapEventResponse build() {
com.oracle.coherence.grpc.MapEventResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.oracle.coherence.grpc.MapEventResponse buildPartial() {
com.oracle.coherence.grpc.MapEventResponse result = new com.oracle.coherence.grpc.MapEventResponse(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.oracle.coherence.grpc.MapEventResponse result) {
if (((bitField0_ & 0x00000020) != 0)) {
filterIds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.filterIds_ = filterIds_;
}
private void buildPartial0(com.oracle.coherence.grpc.MapEventResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.key_ = key_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.newValue_ = newValue_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.oldValue_ = oldValue_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.transformationState_ = transformationState_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.synthetic_ = synthetic_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.priming_ = priming_;
}
}
@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.oracle.coherence.grpc.MapEventResponse) {
return mergeFrom((com.oracle.coherence.grpc.MapEventResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.oracle.coherence.grpc.MapEventResponse other) {
if (other == com.oracle.coherence.grpc.MapEventResponse.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (other.getKey() != com.google.protobuf.ByteString.EMPTY) {
setKey(other.getKey());
}
if (other.getNewValue() != com.google.protobuf.ByteString.EMPTY) {
setNewValue(other.getNewValue());
}
if (other.getOldValue() != com.google.protobuf.ByteString.EMPTY) {
setOldValue(other.getOldValue());
}
if (other.transformationState_ != 0) {
setTransformationStateValue(other.getTransformationStateValue());
}
if (!other.filterIds_.isEmpty()) {
if (filterIds_.isEmpty()) {
filterIds_ = other.filterIds_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureFilterIdsIsMutable();
filterIds_.addAll(other.filterIds_);
}
onChanged();
}
if (other.getSynthetic() != false) {
setSynthetic(other.getSynthetic());
}
if (other.getPriming() != false) {
setPriming(other.getPriming());
}
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 8: {
id_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18: {
key_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
newValue_ = input.readBytes();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
oldValue_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40: {
transformationState_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
long v = input.readInt64();
ensureFilterIdsIsMutable();
filterIds_.addLong(v);
break;
} // case 48
case 50: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
ensureFilterIdsIsMutable();
while (input.getBytesUntilLimit() > 0) {
filterIds_.addLong(input.readInt64());
}
input.popLimit(limit);
break;
} // case 50
case 56: {
synthetic_ = input.readBool();
bitField0_ |= 0x00000040;
break;
} // case 56
case 64: {
priming_ = input.readBool();
bitField0_ |= 0x00000080;
break;
} // case 64
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 int id_ ;
/**
*
* The type of the event
*
*
* int32 id = 1;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
*
* The type of the event
*
*
* int32 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The type of the event
*
*
* int32 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The key of the entry
*
*
* bytes key = 2;
* @return The key.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKey() {
return key_;
}
/**
*
* The key of the entry
*
*
* bytes key = 2;
* @param value The key to set.
* @return This builder for chaining.
*/
public Builder setKey(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
key_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The key of the entry
*
*
* bytes key = 2;
* @return This builder for chaining.
*/
public Builder clearKey() {
bitField0_ = (bitField0_ & ~0x00000002);
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
private com.google.protobuf.ByteString newValue_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The new value of the entry
*
*
* bytes newValue = 3;
* @return The newValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNewValue() {
return newValue_;
}
/**
*
* The new value of the entry
*
*
* bytes newValue = 3;
* @param value The newValue to set.
* @return This builder for chaining.
*/
public Builder setNewValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
newValue_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* The new value of the entry
*
*
* bytes newValue = 3;
* @return This builder for chaining.
*/
public Builder clearNewValue() {
bitField0_ = (bitField0_ & ~0x00000004);
newValue_ = getDefaultInstance().getNewValue();
onChanged();
return this;
}
private com.google.protobuf.ByteString oldValue_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The old value of the entry
*
*
* bytes oldValue = 4;
* @return The oldValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString getOldValue() {
return oldValue_;
}
/**
*
* The old value of the entry
*
*
* bytes oldValue = 4;
* @param value The oldValue to set.
* @return This builder for chaining.
*/
public Builder setOldValue(com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
oldValue_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* The old value of the entry
*
*
* bytes oldValue = 4;
* @return This builder for chaining.
*/
public Builder clearOldValue() {
bitField0_ = (bitField0_ & ~0x00000008);
oldValue_ = getDefaultInstance().getOldValue();
onChanged();
return this;
}
private int transformationState_ = 0;
/**
*
* TransformationState describes how a CacheEvent has been or should be transformed.
*
*
* .coherence.MapEventResponse.TransformationState transformationState = 5;
* @return The enum numeric value on the wire for transformationState.
*/
@java.lang.Override public int getTransformationStateValue() {
return transformationState_;
}
/**
*
* TransformationState describes how a CacheEvent has been or should be transformed.
*
*
* .coherence.MapEventResponse.TransformationState transformationState = 5;
* @param value The enum numeric value on the wire for transformationState to set.
* @return This builder for chaining.
*/
public Builder setTransformationStateValue(int value) {
transformationState_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* TransformationState describes how a CacheEvent has been or should be transformed.
*
*
* .coherence.MapEventResponse.TransformationState transformationState = 5;
* @return The transformationState.
*/
@java.lang.Override
public com.oracle.coherence.grpc.MapEventResponse.TransformationState getTransformationState() {
com.oracle.coherence.grpc.MapEventResponse.TransformationState result = com.oracle.coherence.grpc.MapEventResponse.TransformationState.forNumber(transformationState_);
return result == null ? com.oracle.coherence.grpc.MapEventResponse.TransformationState.UNRECOGNIZED : result;
}
/**
*
* TransformationState describes how a CacheEvent has been or should be transformed.
*
*
* .coherence.MapEventResponse.TransformationState transformationState = 5;
* @param value The transformationState to set.
* @return This builder for chaining.
*/
public Builder setTransformationState(com.oracle.coherence.grpc.MapEventResponse.TransformationState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
transformationState_ = value.getNumber();
onChanged();
return this;
}
/**
*
* TransformationState describes how a CacheEvent has been or should be transformed.
*
*
* .coherence.MapEventResponse.TransformationState transformationState = 5;
* @return This builder for chaining.
*/
public Builder clearTransformationState() {
bitField0_ = (bitField0_ & ~0x00000010);
transformationState_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Internal.LongList filterIds_ = emptyLongList();
private void ensureFilterIdsIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
filterIds_ = mutableCopy(filterIds_);
bitField0_ |= 0x00000020;
}
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @return A list containing the filterIds.
*/
public java.util.List
getFilterIdsList() {
return ((bitField0_ & 0x00000020) != 0) ?
java.util.Collections.unmodifiableList(filterIds_) : filterIds_;
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @return The count of filterIds.
*/
public int getFilterIdsCount() {
return filterIds_.size();
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @param index The index of the element to return.
* @return The filterIds at the given index.
*/
public long getFilterIds(int index) {
return filterIds_.getLong(index);
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @param index The index to set the value at.
* @param value The filterIds to set.
* @return This builder for chaining.
*/
public Builder setFilterIds(
int index, long value) {
ensureFilterIdsIsMutable();
filterIds_.setLong(index, value);
onChanged();
return this;
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @param value The filterIds to add.
* @return This builder for chaining.
*/
public Builder addFilterIds(long value) {
ensureFilterIdsIsMutable();
filterIds_.addLong(value);
onChanged();
return this;
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @param values The filterIds to add.
* @return This builder for chaining.
*/
public Builder addAllFilterIds(
java.lang.Iterable extends java.lang.Long> values) {
ensureFilterIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filterIds_);
onChanged();
return this;
}
/**
*
* The Filter identifiers applicable to the event.
*
*
* repeated int64 filterIds = 6;
* @return This builder for chaining.
*/
public Builder clearFilterIds() {
filterIds_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
private boolean synthetic_ ;
/**
*
* A flag indicating whether the event is a synthetic event.
*
*
* bool synthetic = 7;
* @return The synthetic.
*/
@java.lang.Override
public boolean getSynthetic() {
return synthetic_;
}
/**
*
* A flag indicating whether the event is a synthetic event.
*
*
* bool synthetic = 7;
* @param value The synthetic to set.
* @return This builder for chaining.
*/
public Builder setSynthetic(boolean value) {
synthetic_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* A flag indicating whether the event is a synthetic event.
*
*
* bool synthetic = 7;
* @return This builder for chaining.
*/
public Builder clearSynthetic() {
bitField0_ = (bitField0_ & ~0x00000040);
synthetic_ = false;
onChanged();
return this;
}
private boolean priming_ ;
/**
*
* A flag indicating whether the event is a priming event.
*
*
* bool priming = 8;
* @return The priming.
*/
@java.lang.Override
public boolean getPriming() {
return priming_;
}
/**
*
* A flag indicating whether the event is a priming event.
*
*
* bool priming = 8;
* @param value The priming to set.
* @return This builder for chaining.
*/
public Builder setPriming(boolean value) {
priming_ = value;
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
* A flag indicating whether the event is a priming event.
*
*
* bool priming = 8;
* @return This builder for chaining.
*/
public Builder clearPriming() {
bitField0_ = (bitField0_ & ~0x00000080);
priming_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:coherence.MapEventResponse)
}
// @@protoc_insertion_point(class_scope:coherence.MapEventResponse)
private static final com.oracle.coherence.grpc.MapEventResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.oracle.coherence.grpc.MapEventResponse();
}
public static com.oracle.coherence.grpc.MapEventResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MapEventResponse 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.oracle.coherence.grpc.MapEventResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy