public static final class Rpc.WatchResponse extends com.google.protobuf.GeneratedMessageV3 implements Rpc.WatchResponseOrBuilder
etcdserverpb.WatchResponse| 限定符和类型 | 类和说明 |
|---|---|
static class |
Rpc.WatchResponse.Builder
Protobuf type
etcdserverpb.WatchResponse |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| 限定符和类型 | 字段和说明 |
|---|---|
static int |
CANCEL_REASON_FIELD_NUMBER |
static int |
CANCELED_FIELD_NUMBER |
static int |
COMPACT_REVISION_FIELD_NUMBER |
static int |
CREATED_FIELD_NUMBER |
static int |
EVENTS_FIELD_NUMBER |
static int |
HEADER_FIELD_NUMBER |
static int |
WATCH_ID_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
boolean |
getCanceled()
canceled is set to true if the response is for a cancel watch request.
|
String |
getCancelReason()
cancel_reason indicates the reason for canceling the watcher.
|
com.google.protobuf.ByteString |
getCancelReasonBytes()
cancel_reason indicates the reason for canceling the watcher.
|
long |
getCompactRevision()
compact_revision is set to the minimum index if a watcher tries to watch
at a compacted index.
|
boolean |
getCreated()
created is set to true if the response is for a create watch request.
|
static Rpc.WatchResponse |
getDefaultInstance() |
Rpc.WatchResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Kv.Event |
getEvents(int index)
repeated .mvccpb.Event events = 11; |
int |
getEventsCount()
repeated .mvccpb.Event events = 11; |
List<Kv.Event> |
getEventsList()
repeated .mvccpb.Event events = 11; |
Kv.EventOrBuilder |
getEventsOrBuilder(int index)
repeated .mvccpb.Event events = 11; |
List<? extends Kv.EventOrBuilder> |
getEventsOrBuilderList()
repeated .mvccpb.Event events = 11; |
Rpc.ResponseHeader |
getHeader()
.etcdserverpb.ResponseHeader header = 1; |
Rpc.ResponseHeaderOrBuilder |
getHeaderOrBuilder()
.etcdserverpb.ResponseHeader header = 1; |
com.google.protobuf.Parser<Rpc.WatchResponse> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
long |
getWatchId()
watch_id is the ID of the watcher that corresponds to the response.
|
int |
hashCode() |
boolean |
hasHeader()
.etcdserverpb.ResponseHeader header = 1; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Rpc.WatchResponse.Builder |
newBuilder() |
static Rpc.WatchResponse.Builder |
newBuilder(Rpc.WatchResponse prototype) |
Rpc.WatchResponse.Builder |
newBuilderForType() |
protected Rpc.WatchResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Rpc.WatchResponse |
parseDelimitedFrom(InputStream input) |
static Rpc.WatchResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.WatchResponse |
parseFrom(byte[] data) |
static Rpc.WatchResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.WatchResponse |
parseFrom(ByteBuffer data) |
static Rpc.WatchResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.WatchResponse |
parseFrom(com.google.protobuf.ByteString data) |
static Rpc.WatchResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.WatchResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Rpc.WatchResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Rpc.WatchResponse |
parseFrom(InputStream input) |
static Rpc.WatchResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Rpc.WatchResponse> |
parser() |
Rpc.WatchResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int HEADER_FIELD_NUMBER
public static final int WATCH_ID_FIELD_NUMBER
public static final int CREATED_FIELD_NUMBER
public static final int CANCELED_FIELD_NUMBER
public static final int COMPACT_REVISION_FIELD_NUMBER
public static final int CANCEL_REASON_FIELD_NUMBER
public static final int EVENTS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields 在接口中 com.google.protobuf.MessageOrBuildergetUnknownFields 在类中 com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3public boolean hasHeader()
.etcdserverpb.ResponseHeader header = 1;hasHeader 在接口中 Rpc.WatchResponseOrBuilderpublic Rpc.ResponseHeader getHeader()
.etcdserverpb.ResponseHeader header = 1;getHeader 在接口中 Rpc.WatchResponseOrBuilderpublic Rpc.ResponseHeaderOrBuilder getHeaderOrBuilder()
.etcdserverpb.ResponseHeader header = 1;getHeaderOrBuilder 在接口中 Rpc.WatchResponseOrBuilderpublic long getWatchId()
watch_id is the ID of the watcher that corresponds to the response.
int64 watch_id = 2;getWatchId 在接口中 Rpc.WatchResponseOrBuilderpublic boolean getCreated()
created is set to true if the response is for a create watch request. The client should record the watch_id and expect to receive events for the created watcher from the same stream. All events sent to the created watcher will attach with the same watch_id.
bool created = 3;getCreated 在接口中 Rpc.WatchResponseOrBuilderpublic boolean getCanceled()
canceled is set to true if the response is for a cancel watch request. No further events will be sent to the canceled watcher.
bool canceled = 4;getCanceled 在接口中 Rpc.WatchResponseOrBuilderpublic long getCompactRevision()
compact_revision is set to the minimum index if a watcher tries to watch at a compacted index. This happens when creating a watcher at a compacted revision or the watcher cannot catch up with the progress of the key-value store. The client should treat the watcher as canceled and should not try to create any watcher with the same start_revision again.
int64 compact_revision = 5;getCompactRevision 在接口中 Rpc.WatchResponseOrBuilderpublic String getCancelReason()
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;getCancelReason 在接口中 Rpc.WatchResponseOrBuilderpublic com.google.protobuf.ByteString getCancelReasonBytes()
cancel_reason indicates the reason for canceling the watcher.
string cancel_reason = 6;public List<Kv.Event> getEventsList()
repeated .mvccpb.Event events = 11;getEventsList 在接口中 Rpc.WatchResponseOrBuilderpublic List<? extends Kv.EventOrBuilder> getEventsOrBuilderList()
repeated .mvccpb.Event events = 11;public int getEventsCount()
repeated .mvccpb.Event events = 11;getEventsCount 在接口中 Rpc.WatchResponseOrBuilderpublic Kv.Event getEvents(int index)
repeated .mvccpb.Event events = 11;getEvents 在接口中 Rpc.WatchResponseOrBuilderpublic Kv.EventOrBuilder getEventsOrBuilder(int index)
repeated .mvccpb.Event events = 11;getEventsOrBuilder 在接口中 Rpc.WatchResponseOrBuilderpublic final boolean isInitialized()
isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilderisInitialized 在类中 com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLitewriteTo 在类中 com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitegetSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals 在接口中 com.google.protobuf.Messageequals 在类中 com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode 在接口中 com.google.protobuf.MessagehashCode 在类中 com.google.protobuf.AbstractMessagepublic static Rpc.WatchResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.WatchResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.WatchResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.WatchResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.WatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.WatchResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Rpc.WatchResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static Rpc.WatchResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Rpc.WatchResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Rpc.WatchResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Rpc.WatchResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Rpc.WatchResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Rpc.WatchResponse.Builder newBuilderForType()
newBuilderForType 在接口中 com.google.protobuf.MessagenewBuilderForType 在接口中 com.google.protobuf.MessageLitepublic static Rpc.WatchResponse.Builder newBuilder()
public static Rpc.WatchResponse.Builder newBuilder(Rpc.WatchResponse prototype)
public Rpc.WatchResponse.Builder toBuilder()
toBuilder 在接口中 com.google.protobuf.MessagetoBuilder 在接口中 com.google.protobuf.MessageLiteprotected Rpc.WatchResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3public static Rpc.WatchResponse getDefaultInstance()
public static com.google.protobuf.Parser<Rpc.WatchResponse> parser()
public com.google.protobuf.Parser<Rpc.WatchResponse> getParserForType()
getParserForType 在接口中 com.google.protobuf.MessagegetParserForType 在接口中 com.google.protobuf.MessageLitegetParserForType 在类中 com.google.protobuf.GeneratedMessageV3public Rpc.WatchResponse getDefaultInstanceForType()
getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilderCopyright © 2018. All rights reserved.