Package io.etcd.jetcd.api
Class Event.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
- io.etcd.jetcd.api.Event.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,EventOrBuilder,java.lang.Cloneable
- Enclosing class:
- Event
public static final class Event.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Event.Builder> implements EventOrBuilder
Protobuf typemvccpb.Event
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Event.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Eventbuild()EventbuildPartial()Event.Builderclear()Event.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Event.BuilderclearKv()kv holds the KeyValue for the event.Event.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Event.BuilderclearPrevKv()prev_kv holds the key-value pair before the event happens.Event.BuilderclearType()type is the kind of event.Event.Builderclone()EventgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()KeyValuegetKv()kv holds the KeyValue for the event.KeyValue.BuildergetKvBuilder()kv holds the KeyValue for the event.KeyValueOrBuildergetKvOrBuilder()kv holds the KeyValue for the event.KeyValuegetPrevKv()prev_kv holds the key-value pair before the event happens.KeyValue.BuildergetPrevKvBuilder()prev_kv holds the key-value pair before the event happens.KeyValueOrBuildergetPrevKvOrBuilder()prev_kv holds the key-value pair before the event happens.Event.EventTypegetType()type is the kind of event.intgetTypeValue()type is the kind of event.booleanhasKv()kv holds the KeyValue for the event.booleanhasPrevKv()prev_kv holds the key-value pair before the event happens.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Event.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Event.BuildermergeFrom(com.google.protobuf.Message other)Event.BuildermergeFrom(Event other)Event.BuildermergeKv(KeyValue value)kv holds the KeyValue for the event.Event.BuildermergePrevKv(KeyValue value)prev_kv holds the key-value pair before the event happens.Event.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Event.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Event.BuildersetKv(KeyValue value)kv holds the KeyValue for the event.Event.BuildersetKv(KeyValue.Builder builderForValue)kv holds the KeyValue for the event.Event.BuildersetPrevKv(KeyValue value)prev_kv holds the key-value pair before the event happens.Event.BuildersetPrevKv(KeyValue.Builder builderForValue)prev_kv holds the key-value pair before the event happens.Event.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Event.BuildersetType(Event.EventType value)type is the kind of event.Event.BuildersetTypeValue(int value)type is the kind of event.Event.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clear
public Event.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
getDefaultInstanceForType
public Event getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Event build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Event buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Event.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
setField
public Event.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clearField
public Event.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
clearOneof
public Event.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
setRepeatedField
public Event.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
addRepeatedField
public Event.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeFrom
public Event.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Event.Builder>
-
mergeFrom
public Event.Builder mergeFrom(Event other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeFrom
public Event.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Event.Builder>- Throws:
java.io.IOException
-
getTypeValue
public int getTypeValue()
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;- Specified by:
getTypeValuein interfaceEventOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public Event.Builder setTypeValue(int value)
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;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public Event.EventType getType()
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;- Specified by:
getTypein interfaceEventOrBuilder- Returns:
- The type.
-
setType
public Event.Builder setType(Event.EventType value)
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;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Event.Builder clearType()
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;- Returns:
- This builder for chaining.
-
hasKv
public boolean hasKv()
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;- Specified by:
hasKvin interfaceEventOrBuilder- Returns:
- Whether the kv field is set.
-
getKv
public KeyValue getKv()
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;- Specified by:
getKvin interfaceEventOrBuilder- Returns:
- The kv.
-
setKv
public Event.Builder setKv(KeyValue value)
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;
-
setKv
public Event.Builder setKv(KeyValue.Builder builderForValue)
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;
-
mergeKv
public Event.Builder mergeKv(KeyValue value)
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;
-
clearKv
public Event.Builder clearKv()
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;
-
getKvBuilder
public KeyValue.Builder getKvBuilder()
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;
-
getKvOrBuilder
public KeyValueOrBuilder getKvOrBuilder()
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;- Specified by:
getKvOrBuilderin interfaceEventOrBuilder
-
hasPrevKv
public boolean hasPrevKv()
prev_kv holds the key-value pair before the event happens.
.mvccpb.KeyValue prev_kv = 3;- Specified by:
hasPrevKvin interfaceEventOrBuilder- Returns:
- Whether the prevKv field is set.
-
getPrevKv
public KeyValue getPrevKv()
prev_kv holds the key-value pair before the event happens.
.mvccpb.KeyValue prev_kv = 3;- Specified by:
getPrevKvin interfaceEventOrBuilder- Returns:
- The prevKv.
-
setPrevKv
public Event.Builder setPrevKv(KeyValue value)
prev_kv holds the key-value pair before the event happens.
.mvccpb.KeyValue prev_kv = 3;
-
setPrevKv
public Event.Builder setPrevKv(KeyValue.Builder builderForValue)
prev_kv holds the key-value pair before the event happens.
.mvccpb.KeyValue prev_kv = 3;
-
mergePrevKv
public Event.Builder mergePrevKv(KeyValue value)
prev_kv holds the key-value pair before the event happens.
.mvccpb.KeyValue prev_kv = 3;
-
clearPrevKv
public Event.Builder clearPrevKv()
prev_kv holds the key-value pair before the event happens.
.mvccpb.KeyValue prev_kv = 3;
-
getPrevKvBuilder
public KeyValue.Builder getPrevKvBuilder()
prev_kv holds the key-value pair before the event happens.
.mvccpb.KeyValue prev_kv = 3;
-
getPrevKvOrBuilder
public KeyValueOrBuilder getPrevKvOrBuilder()
prev_kv holds the key-value pair before the event happens.
.mvccpb.KeyValue prev_kv = 3;- Specified by:
getPrevKvOrBuilderin interfaceEventOrBuilder
-
setUnknownFields
public final Event.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
mergeUnknownFields
public final Event.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Event.Builder>
-
-