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

io.helidon.config.etcd.internal.client.proto.Event Maven / Gradle / Ivy

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

package io.helidon.config.etcd.internal.client.proto;

/**
 * Protobuf type {@code mvccpb.Event}
 */
public final class Event extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:mvccpb.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() {
    type_ = 0;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new Event();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.helidon.config.etcd.internal.client.proto.Kv.internal_static_mvccpb_Event_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.helidon.config.etcd.internal.client.proto.Kv.internal_static_mvccpb_Event_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.helidon.config.etcd.internal.client.proto.Event.class, io.helidon.config.etcd.internal.client.proto.Event.Builder.class);
  }

  /**
   * Protobuf enum {@code mvccpb.Event.EventType}
   */
  public enum EventType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * PUT = 0;
     */
    PUT(0),
    /**
     * DELETE = 1;
     */
    DELETE(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * PUT = 0;
     */
    public static final int PUT_VALUE = 0;
    /**
     * DELETE = 1;
     */
    public static final int DELETE_VALUE = 1;


    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 EventType 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 EventType forNumber(int value) {
      switch (value) {
        case 0: return PUT;
        case 1: return DELETE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        EventType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public EventType findValueByNumber(int number) {
              return EventType.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 io.helidon.config.etcd.internal.client.proto.Event.getDescriptor().getEnumTypes().get(0);
    }

    private static final EventType[] VALUES = values();

    public static EventType 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 EventType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:mvccpb.Event.EventType)
  }

  public static final int TYPE_FIELD_NUMBER = 1;
  private int type_;
  /**
   * 
   * type is the kind of event. If type is a PUT, it indicates
   * new data has been stored to the key. If type is a DELETE,
   * it indicates the key was deleted.
   * 
* * .mvccpb.Event.EventType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
   * type is the kind of event. If type is a PUT, it indicates
   * new data has been stored to the key. If type is a DELETE,
   * it indicates the key was deleted.
   * 
* * .mvccpb.Event.EventType type = 1; * @return The type. */ @java.lang.Override public io.helidon.config.etcd.internal.client.proto.Event.EventType getType() { @SuppressWarnings("deprecation") io.helidon.config.etcd.internal.client.proto.Event.EventType result = io.helidon.config.etcd.internal.client.proto.Event.EventType.valueOf(type_); return result == null ? io.helidon.config.etcd.internal.client.proto.Event.EventType.UNRECOGNIZED : result; } public static final int KV_FIELD_NUMBER = 2; private io.helidon.config.etcd.internal.client.proto.KeyValue kv_; /** *
   * kv holds the KeyValue for the event.
   * A PUT event contains current kv pair.
   * A PUT event with kv.Version=1 indicates the creation of a key.
   * A DELETE/EXPIRE event contains the deleted key with
   * its modification revision set to the revision of deletion.
   * 
* * .mvccpb.KeyValue kv = 2; * @return Whether the kv field is set. */ @java.lang.Override public boolean hasKv() { return kv_ != null; } /** *
   * kv holds the KeyValue for the event.
   * A PUT event contains current kv pair.
   * A PUT event with kv.Version=1 indicates the creation of a key.
   * A DELETE/EXPIRE event contains the deleted key with
   * its modification revision set to the revision of deletion.
   * 
* * .mvccpb.KeyValue kv = 2; * @return The kv. */ @java.lang.Override public io.helidon.config.etcd.internal.client.proto.KeyValue getKv() { return kv_ == null ? io.helidon.config.etcd.internal.client.proto.KeyValue.getDefaultInstance() : kv_; } /** *
   * kv holds the KeyValue for the event.
   * A PUT event contains current kv pair.
   * A PUT event with kv.Version=1 indicates the creation of a key.
   * A DELETE/EXPIRE event contains the deleted key with
   * its modification revision set to the revision of deletion.
   * 
* * .mvccpb.KeyValue kv = 2; */ @java.lang.Override public io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder getKvOrBuilder() { return getKv(); } public static final int PREV_KV_FIELD_NUMBER = 3; private io.helidon.config.etcd.internal.client.proto.KeyValue prevKv_; /** *
   * prev_kv holds the key-value pair before the event happens.
   * 
* * .mvccpb.KeyValue prev_kv = 3; * @return Whether the prevKv field is set. */ @java.lang.Override public boolean hasPrevKv() { return prevKv_ != null; } /** *
   * prev_kv holds the key-value pair before the event happens.
   * 
* * .mvccpb.KeyValue prev_kv = 3; * @return The prevKv. */ @java.lang.Override public io.helidon.config.etcd.internal.client.proto.KeyValue getPrevKv() { return prevKv_ == null ? io.helidon.config.etcd.internal.client.proto.KeyValue.getDefaultInstance() : prevKv_; } /** *
   * prev_kv holds the key-value pair before the event happens.
   * 
* * .mvccpb.KeyValue prev_kv = 3; */ @java.lang.Override public io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder getPrevKvOrBuilder() { return getPrevKv(); } 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 (type_ != io.helidon.config.etcd.internal.client.proto.Event.EventType.PUT.getNumber()) { output.writeEnum(1, type_); } if (kv_ != null) { output.writeMessage(2, getKv()); } if (prevKv_ != null) { output.writeMessage(3, getPrevKv()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (type_ != io.helidon.config.etcd.internal.client.proto.Event.EventType.PUT.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (kv_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getKv()); } if (prevKv_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPrevKv()); } 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 io.helidon.config.etcd.internal.client.proto.Event)) { return super.equals(obj); } io.helidon.config.etcd.internal.client.proto.Event other = (io.helidon.config.etcd.internal.client.proto.Event) obj; if (type_ != other.type_) return false; if (hasKv() != other.hasKv()) return false; if (hasKv()) { if (!getKv() .equals(other.getKv())) return false; } if (hasPrevKv() != other.hasPrevKv()) return false; if (hasPrevKv()) { if (!getPrevKv() .equals(other.getPrevKv())) 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) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; if (hasKv()) { hash = (37 * hash) + KV_FIELD_NUMBER; hash = (53 * hash) + getKv().hashCode(); } if (hasPrevKv()) { hash = (37 * hash) + PREV_KV_FIELD_NUMBER; hash = (53 * hash) + getPrevKv().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static io.helidon.config.etcd.internal.client.proto.Event parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.helidon.config.etcd.internal.client.proto.Event parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.helidon.config.etcd.internal.client.proto.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.helidon.config.etcd.internal.client.proto.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.helidon.config.etcd.internal.client.proto.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.helidon.config.etcd.internal.client.proto.Event parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.helidon.config.etcd.internal.client.proto.Event parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.helidon.config.etcd.internal.client.proto.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.helidon.config.etcd.internal.client.proto.Event parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.helidon.config.etcd.internal.client.proto.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.helidon.config.etcd.internal.client.proto.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.helidon.config.etcd.internal.client.proto.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.helidon.config.etcd.internal.client.proto.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; } /** * Protobuf type {@code mvccpb.Event} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:mvccpb.Event) io.helidon.config.etcd.internal.client.proto.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.helidon.config.etcd.internal.client.proto.Kv.internal_static_mvccpb_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.helidon.config.etcd.internal.client.proto.Kv.internal_static_mvccpb_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( io.helidon.config.etcd.internal.client.proto.Event.class, io.helidon.config.etcd.internal.client.proto.Event.Builder.class); } // Construct using io.helidon.config.etcd.internal.client.proto.Event.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); type_ = 0; if (kvBuilder_ == null) { kv_ = null; } else { kv_ = null; kvBuilder_ = null; } if (prevKvBuilder_ == null) { prevKv_ = null; } else { prevKv_ = null; prevKvBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.helidon.config.etcd.internal.client.proto.Kv.internal_static_mvccpb_Event_descriptor; } @java.lang.Override public io.helidon.config.etcd.internal.client.proto.Event getDefaultInstanceForType() { return io.helidon.config.etcd.internal.client.proto.Event.getDefaultInstance(); } @java.lang.Override public io.helidon.config.etcd.internal.client.proto.Event build() { io.helidon.config.etcd.internal.client.proto.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.helidon.config.etcd.internal.client.proto.Event buildPartial() { io.helidon.config.etcd.internal.client.proto.Event result = new io.helidon.config.etcd.internal.client.proto.Event(this); result.type_ = type_; if (kvBuilder_ == null) { result.kv_ = kv_; } else { result.kv_ = kvBuilder_.build(); } if (prevKvBuilder_ == null) { result.prevKv_ = prevKv_; } else { result.prevKv_ = prevKvBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.helidon.config.etcd.internal.client.proto.Event) { return mergeFrom((io.helidon.config.etcd.internal.client.proto.Event)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.helidon.config.etcd.internal.client.proto.Event other) { if (other == io.helidon.config.etcd.internal.client.proto.Event.getDefaultInstance()) return this; if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (other.hasKv()) { mergeKv(other.getKv()); } if (other.hasPrevKv()) { mergePrevKv(other.getPrevKv()); } 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: { type_ = input.readEnum(); break; } // case 8 case 18: { input.readMessage( getKvFieldBuilder().getBuilder(), extensionRegistry); break; } // case 18 case 26: { input.readMessage( getPrevKvFieldBuilder().getBuilder(), extensionRegistry); break; } // case 26 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 type_ = 0; /** *
     * type is the kind of event. If type is a PUT, it indicates
     * new data has been stored to the key. If type is a DELETE,
     * it indicates the key was deleted.
     * 
* * .mvccpb.Event.EventType type = 1; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** *
     * type is the kind of event. If type is a PUT, it indicates
     * new data has been stored to the key. If type is a DELETE,
     * it indicates the key was deleted.
     * 
* * .mvccpb.Event.EventType type = 1; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** *
     * type is the kind of event. If type is a PUT, it indicates
     * new data has been stored to the key. If type is a DELETE,
     * it indicates the key was deleted.
     * 
* * .mvccpb.Event.EventType type = 1; * @return The type. */ @java.lang.Override public io.helidon.config.etcd.internal.client.proto.Event.EventType getType() { @SuppressWarnings("deprecation") io.helidon.config.etcd.internal.client.proto.Event.EventType result = io.helidon.config.etcd.internal.client.proto.Event.EventType.valueOf(type_); return result == null ? io.helidon.config.etcd.internal.client.proto.Event.EventType.UNRECOGNIZED : result; } /** *
     * type is the kind of event. If type is a PUT, it indicates
     * new data has been stored to the key. If type is a DELETE,
     * it indicates the key was deleted.
     * 
* * .mvccpb.Event.EventType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(io.helidon.config.etcd.internal.client.proto.Event.EventType value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** *
     * type is the kind of event. If type is a PUT, it indicates
     * new data has been stored to the key. If type is a DELETE,
     * it indicates the key was deleted.
     * 
* * .mvccpb.Event.EventType type = 1; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private io.helidon.config.etcd.internal.client.proto.KeyValue kv_; private com.google.protobuf.SingleFieldBuilderV3< io.helidon.config.etcd.internal.client.proto.KeyValue, io.helidon.config.etcd.internal.client.proto.KeyValue.Builder, io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder> kvBuilder_; /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; * @return Whether the kv field is set. */ public boolean hasKv() { return kvBuilder_ != null || kv_ != null; } /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; * @return The kv. */ public io.helidon.config.etcd.internal.client.proto.KeyValue getKv() { if (kvBuilder_ == null) { return kv_ == null ? io.helidon.config.etcd.internal.client.proto.KeyValue.getDefaultInstance() : kv_; } else { return kvBuilder_.getMessage(); } } /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; */ public Builder setKv(io.helidon.config.etcd.internal.client.proto.KeyValue value) { if (kvBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kv_ = value; onChanged(); } else { kvBuilder_.setMessage(value); } return this; } /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; */ public Builder setKv( io.helidon.config.etcd.internal.client.proto.KeyValue.Builder builderForValue) { if (kvBuilder_ == null) { kv_ = builderForValue.build(); onChanged(); } else { kvBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; */ public Builder mergeKv(io.helidon.config.etcd.internal.client.proto.KeyValue value) { if (kvBuilder_ == null) { if (kv_ != null) { kv_ = io.helidon.config.etcd.internal.client.proto.KeyValue.newBuilder(kv_).mergeFrom(value).buildPartial(); } else { kv_ = value; } onChanged(); } else { kvBuilder_.mergeFrom(value); } return this; } /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; */ public Builder clearKv() { if (kvBuilder_ == null) { kv_ = null; onChanged(); } else { kv_ = null; kvBuilder_ = null; } return this; } /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; */ public io.helidon.config.etcd.internal.client.proto.KeyValue.Builder getKvBuilder() { onChanged(); return getKvFieldBuilder().getBuilder(); } /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; */ public io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder getKvOrBuilder() { if (kvBuilder_ != null) { return kvBuilder_.getMessageOrBuilder(); } else { return kv_ == null ? io.helidon.config.etcd.internal.client.proto.KeyValue.getDefaultInstance() : kv_; } } /** *
     * kv holds the KeyValue for the event.
     * A PUT event contains current kv pair.
     * A PUT event with kv.Version=1 indicates the creation of a key.
     * A DELETE/EXPIRE event contains the deleted key with
     * its modification revision set to the revision of deletion.
     * 
* * .mvccpb.KeyValue kv = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.helidon.config.etcd.internal.client.proto.KeyValue, io.helidon.config.etcd.internal.client.proto.KeyValue.Builder, io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder> getKvFieldBuilder() { if (kvBuilder_ == null) { kvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.helidon.config.etcd.internal.client.proto.KeyValue, io.helidon.config.etcd.internal.client.proto.KeyValue.Builder, io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder>( getKv(), getParentForChildren(), isClean()); kv_ = null; } return kvBuilder_; } private io.helidon.config.etcd.internal.client.proto.KeyValue prevKv_; private com.google.protobuf.SingleFieldBuilderV3< io.helidon.config.etcd.internal.client.proto.KeyValue, io.helidon.config.etcd.internal.client.proto.KeyValue.Builder, io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder> prevKvBuilder_; /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; * @return Whether the prevKv field is set. */ public boolean hasPrevKv() { return prevKvBuilder_ != null || prevKv_ != null; } /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; * @return The prevKv. */ public io.helidon.config.etcd.internal.client.proto.KeyValue getPrevKv() { if (prevKvBuilder_ == null) { return prevKv_ == null ? io.helidon.config.etcd.internal.client.proto.KeyValue.getDefaultInstance() : prevKv_; } else { return prevKvBuilder_.getMessage(); } } /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; */ public Builder setPrevKv(io.helidon.config.etcd.internal.client.proto.KeyValue value) { if (prevKvBuilder_ == null) { if (value == null) { throw new NullPointerException(); } prevKv_ = value; onChanged(); } else { prevKvBuilder_.setMessage(value); } return this; } /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; */ public Builder setPrevKv( io.helidon.config.etcd.internal.client.proto.KeyValue.Builder builderForValue) { if (prevKvBuilder_ == null) { prevKv_ = builderForValue.build(); onChanged(); } else { prevKvBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; */ public Builder mergePrevKv(io.helidon.config.etcd.internal.client.proto.KeyValue value) { if (prevKvBuilder_ == null) { if (prevKv_ != null) { prevKv_ = io.helidon.config.etcd.internal.client.proto.KeyValue.newBuilder(prevKv_).mergeFrom(value).buildPartial(); } else { prevKv_ = value; } onChanged(); } else { prevKvBuilder_.mergeFrom(value); } return this; } /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; */ public Builder clearPrevKv() { if (prevKvBuilder_ == null) { prevKv_ = null; onChanged(); } else { prevKv_ = null; prevKvBuilder_ = null; } return this; } /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; */ public io.helidon.config.etcd.internal.client.proto.KeyValue.Builder getPrevKvBuilder() { onChanged(); return getPrevKvFieldBuilder().getBuilder(); } /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; */ public io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder getPrevKvOrBuilder() { if (prevKvBuilder_ != null) { return prevKvBuilder_.getMessageOrBuilder(); } else { return prevKv_ == null ? io.helidon.config.etcd.internal.client.proto.KeyValue.getDefaultInstance() : prevKv_; } } /** *
     * prev_kv holds the key-value pair before the event happens.
     * 
* * .mvccpb.KeyValue prev_kv = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.helidon.config.etcd.internal.client.proto.KeyValue, io.helidon.config.etcd.internal.client.proto.KeyValue.Builder, io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder> getPrevKvFieldBuilder() { if (prevKvBuilder_ == null) { prevKvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.helidon.config.etcd.internal.client.proto.KeyValue, io.helidon.config.etcd.internal.client.proto.KeyValue.Builder, io.helidon.config.etcd.internal.client.proto.KeyValueOrBuilder>( getPrevKv(), getParentForChildren(), isClean()); prevKv_ = null; } return prevKvBuilder_; } @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:mvccpb.Event) } // @@protoc_insertion_point(class_scope:mvccpb.Event) private static final io.helidon.config.etcd.internal.client.proto.Event DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.helidon.config.etcd.internal.client.proto.Event(); } public static io.helidon.config.etcd.internal.client.proto.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 { 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 io.helidon.config.etcd.internal.client.proto.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy