diff --git a/etc/proto/common_messages_v1.proto b/etc/proto/common_messages_v1.proto index 37bdfa1..096e28e 100644 --- a/etc/proto/common_messages_v1.proto +++ b/etc/proto/common_messages_v1.proto @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, 2024, Oracle and/or its affiliates. + * Copyright (c) 2020, 2025, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. @@ -59,3 +59,19 @@ message BinaryKeyAndValue { // The serialized binary value. bytes value = 2; } + +// A message that contains a collection of string values. +message CollectionOfStringValues { + // The string values + repeated string values = 1; +} + +// A collection of in32 values +message CollectionOfInt32 { + repeated int32 values = 1; +} + +// A collection of in32 values +message CollectionOfInt64 { + repeated int64 values = 1; +} diff --git a/etc/proto/messages.proto b/etc/proto/messages.proto index 7f0881f..a0dfb0b 100644 --- a/etc/proto/messages.proto +++ b/etc/proto/messages.proto @@ -1,41 +1,38 @@ /* - * Copyright (c) 2020, 2023 Oracle and/or its affiliates. + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. */ -// Authors: -// Mahesh Kannan -// Jonathan Knight - -// NamedCacheService message types -// +// ----------------------------------------------------------------- +// Legacy (version zero) NamedCacheService message types +// ----------------------------------------------------------------- syntax = "proto3"; package coherence; option java_multiple_files = true; -option java_package = "com.oracle.coherence.grpc"; +option java_package = "com.oracle.coherence.grpc.messages.cache.v0"; // A request to clear all the entries in the cache. message ClearRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; } // A request to determine whether an entry exists in a cache // with a specific key and value. message ContainsEntryRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialization format. bytes key = 4; // The value of the entry to verify. @@ -46,11 +43,11 @@ message ContainsEntryRequest { // for the specified key. message ContainsKeyRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The key of the entry to verify. bytes key = 4; } @@ -59,11 +56,11 @@ message ContainsKeyRequest { // with the specified value. message ContainsValueRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The value of the entry to verify. bytes value = 4; } @@ -71,36 +68,45 @@ message ContainsValueRequest { // A request to destroy a cache. message DestroyRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; } // A request to determine whether a cache is empty or not. message IsEmptyRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; + // The name of the cache. + optional string cache = 2; +} + +// A request to check the ready status of a cache. +// @since 14.1.1.2206.5 +message IsReadyRequest { + // The scope name to use to obtain the cache. + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; } // A request to determine the number of entries in a cache. message SizeRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; } // A request to obtain the value to which a cache maps the // specified key. message GetRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The key of the entry to retrieve. bytes key = 4; } @@ -108,11 +114,11 @@ message GetRequest { // A request to obtain the values that map to the specified keys message GetAllRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The key of the entry to retrieve. repeated bytes key = 4; } @@ -121,11 +127,11 @@ message GetAllRequest { // specified key in a cache. message PutRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The cache entry key. bytes key = 4; // The value of the entry. @@ -138,13 +144,15 @@ message PutRequest { // specified key in a cache. message PutAllRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The cache entries to put. repeated Entry entry = 4; + // The time to live in millis. + int64 ttl = 6; } // A request to associate the specified value with the @@ -152,11 +160,11 @@ message PutAllRequest { // is not associated with any value (including null). message PutIfAbsentRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The cache entry key. bytes key = 4; // The value to be put. @@ -169,11 +177,11 @@ message PutIfAbsentRequest { // if it is present. message RemoveRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The key of the entry to be removed. bytes key = 4; } @@ -183,11 +191,11 @@ message RemoveRequest { // value in that cache. message RemoveMappingRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The key of the entry to be removed. bytes key = 4; // The value of the entry to verify. @@ -199,11 +207,11 @@ message RemoveMappingRequest { // key is associated with some value in that cache. message ReplaceRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The key of the entry to be replaced. bytes key = 4; // The value of the entry to be replaced. @@ -216,11 +224,11 @@ message ReplaceRequest { // that cache. message ReplaceMappingRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The key of the entry to be replaced. bytes key = 4; // The previous value that should exist in the cache. @@ -235,11 +243,11 @@ message ReplaceMappingRequest { // to return the whole data set in one response. message PageRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format - string format = 3; + optional string format = 3; // An opaque cookie to track the requested page. bytes cookie = 4; } @@ -265,19 +273,19 @@ message Entry { // A request to truncate a cache. message TruncateRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; } // A request to add an index to a cache message AddIndexRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialized ValueExtractor to use to create the index. bytes extractor = 4; // A flag indicating whether to sort the index. @@ -289,11 +297,11 @@ message AddIndexRequest { // A request to remove an index from a cache message RemoveIndexRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialized ValueExtractor to use to create the index. bytes extractor = 4; } @@ -301,11 +309,11 @@ message RemoveIndexRequest { // A request to aggreagte entries in a cache. message AggregateRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialized EntryAggregator to aggregate. bytes aggregator = 4; // The optional set of serialized keys of the entries to aggregate. @@ -317,11 +325,11 @@ message AggregateRequest { // A request to invoke an EntryProcessor against a single entry. message InvokeRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialized EntryProcessor to invoke. bytes processor = 4; // The serialized key of the entry to process. @@ -331,11 +339,11 @@ message InvokeRequest { // A request to invoke an entry processor against a number of entries. message InvokeAllRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialized EntryProcessor to invoke. bytes processor = 4; // The optional set of serialized keys of the entries to process. @@ -347,11 +355,11 @@ message InvokeAllRequest { // A request to get a set of entries from a cache. message EntrySetRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialized Filter to identify the entries to return. bytes filter = 4; // The optional comparator to use to sort the returned entries. @@ -361,11 +369,11 @@ message EntrySetRequest { // A request to get a set of keys from a cache. message KeySetRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialized Filter to identify the keys to return. bytes filter = 4; } @@ -373,11 +381,11 @@ message KeySetRequest { // A request to get a collection of values from a cache. message ValuesRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // The serialized Filter to identify the values to return. bytes filter = 4; // The optional comparator to use to sort the returned values. @@ -395,11 +403,11 @@ message OptionalValue { // A message to subscribe to or unsubscribe from MapEvents for a cache. message MapListenerRequest { // The scope name to use to obtain the cache. - string scope = 1; + optional string scope = 1; // The name of the cache. - string cache = 2; + optional string cache = 2; // The serialization format. - string format = 3; + optional string format = 3; // A unique identifier for the request so that the client // can match a request to a response string uid = 4; @@ -430,6 +438,8 @@ message MapListenerRequest { bytes trigger = 11; // A unique filter identifier. int64 filterId = 12; + // The frequency that heartbeats should be sent to the client. + optional int64 heartbeatMillis = 13; } // A response to indicate that a MapListener was subscribed to a cache. @@ -442,6 +452,7 @@ message MapListenerResponse { MapListenerErrorResponse error = 4; CacheDestroyedResponse destroyed = 5; CacheTruncatedResponse truncated = 6; + HeartbeatMessage heartbeat = 7; } } @@ -457,12 +468,12 @@ message MapListenerUnsubscribedResponse { // A response to indicate that a cache was destroyed. message CacheDestroyedResponse { - string cache = 1; + optional string cache = 1; } // A response to indicate that a cache was truncated. message CacheTruncatedResponse { - string cache = 1; + optional string cache = 1; } // A response to indicate that an error occurred processing a MapListener request. @@ -504,3 +515,7 @@ message MapEventResponse { // A flag indicating whether the event is a priming event. bool priming = 8; } + +message HeartbeatMessage { + optional bytes uuid = 1; +} diff --git a/etc/proto/proxy_service_messages_v1.proto b/etc/proto/proxy_service_messages_v1.proto index c8cde72..3d87086 100644 --- a/etc/proto/proxy_service_messages_v1.proto +++ b/etc/proto/proxy_service_messages_v1.proto @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, 2024, Oracle and/or its affiliates. + * Copyright (c) 2020, 2025, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * https://oss.oracle.com/licenses/upl. @@ -32,6 +32,8 @@ message ProxyRequest { // A periodic heartbeat message sent by the client coherence.common.v1.HeartbeatMessage heartbeat = 5; } + // An ad-hoc set of additional data. + map context = 6; } // A response from a Coherence gRPC proxy. @@ -57,6 +59,8 @@ message ProxyResponse { // A periodic heart beat sent by the server coherence.common.v1.HeartbeatMessage heartbeat = 8; } + // An ad-hoc set of additional data. + map context = 9; } // Initialize a connection. @@ -75,6 +79,8 @@ message InitRequest { optional int64 heartbeat = 7; // The optional client UUID (usually from Coherence clients that have a local Member UUID). optional bytes clientUuid = 8; + // The client's member identity + optional ClientMemberIdentity identity = 9; } // The response to an InitRequest @@ -92,3 +98,34 @@ message InitResponse { // The proxy member UUID bytes proxyMemberUuid = 6; } + +message ClientMemberIdentity { + // The name of the cluster with which this member is associated. + optional string clusterName = 1; + // The Member's machine Id. This identifier should be the same for Members that are on + // the same physical machine, and ideally different for Members that are on different + // physical machines. + int32 machineId = 2; + // The configured name for the Machine (such as a host name) in which this Member resides. + // This name is used for logging purposes and to differentiate among multiple servers, + // and may be used as the basis for determining the MachineId property. + optional string machineName = 3; + // The configured name for the Member. This name is used for logging purposes and + // to differentiate among Members running within a particular process. + optional string memberName = 4; + // The member priority + int32 priority = 5; + // The configured name for the Process (such as a JVM) in which this Member resides. + // This name is used for logging purposes and to differentiate among multiple processes on a a single machine. + optional string processName = 6; + // The configured name for the Rack (such as a physical rack, cage or blade frame) in which + // this Member resides. This name is used for logging purposes and to differentiate among multiple + // racks within a particular data center, for example. + optional string rackName = 7; + // The configured name for the Site (such as a data center) in which this Member resides. + // This name is used for logging purposes and to differentiate among multiple geographic sites. + optional string siteName = 8; + // The configured role name for the Member. This role is completely definable by the application, + // and can be used to determine what Members to use for specific purposes. + optional string roleName = 9; +} diff --git a/etc/proto/services.proto b/etc/proto/services.proto index 6fd7280..560b28b 100644 --- a/etc/proto/services.proto +++ b/etc/proto/services.proto @@ -1,15 +1,13 @@ /* - * Copyright (c) 2020, Oracle and/or its affiliates. + * Copyright (c) 2020, 2024, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at - * http://oss.oracle.com/licenses/upl. + * https://oss.oracle.com/licenses/upl. */ -// Authors: -// Mahesh Kannan -// Jonathan Knight - -// NamedCacheService service definition. +// ----------------------------------------------------------------- +// The legacy (version zero) NamedCacheService service definition. +// ----------------------------------------------------------------- syntax = "proto3"; @@ -20,7 +18,7 @@ import "google/protobuf/empty.proto"; import "google/protobuf/wrappers.proto"; option java_multiple_files = true; -option java_package = "com.oracle.coherence.grpc"; +option java_package = "com.oracle.coherence.grpc.services.cache.v0"; // A gRPC NamedCache service. // @@ -85,6 +83,10 @@ service NamedCacheService { rpc isEmpty (IsEmptyRequest) returns (google.protobuf.BoolValue) { } + // Determine whether a cache is empty. + rpc isReady (IsReadyRequest) returns (google.protobuf.BoolValue) { + } + // Obtain all of the keys in the cache where the cache entries // match a given filter. rpc keySet (KeySetRequest) returns (stream google.protobuf.BytesValue) { diff --git a/pyproject.toml b/pyproject.toml index c132a04..d0dffaf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,6 +81,8 @@ exclude = ''' ) ''' +[tool.mypy] +exclude = ".*_pb2.*\\.py[i]?$" [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/src/coherence/cache_service_messages_v1_pb2.py b/src/coherence/cache_service_messages_v1_pb2.py index d3d092a..f51b2cd 100644 --- a/src/coherence/cache_service_messages_v1_pb2.py +++ b/src/coherence/cache_service_messages_v1_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: cache_service_messages_v1.proto +# Protobuf Python Version: 5.29.0 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'cache_service_messages_v1.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,42 +31,42 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63\x61\x63he_service_messages_v1.proto\x12\x12\x63oherence.cache.v1\x1a\x18\x63ommon_messages_v1.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xa6\x01\n\x11NamedCacheRequest\x12\x37\n\x04type\x18\x01 \x01(\x0e\x32).coherence.cache.v1.NamedCacheRequestType\x12\x14\n\x07\x63\x61\x63heId\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12*\n\x07message\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyH\x01\x88\x01\x01\x42\n\n\x08_cacheIdB\n\n\x08_message\"\x8d\x01\n\x12NamedCacheResponse\x12\x0f\n\x07\x63\x61\x63heId\x18\x01 \x01(\x05\x12.\n\x04type\x18\x02 \x01(\x0e\x32 .coherence.cache.v1.ResponseType\x12*\n\x07message\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x88\x01\x01\x42\n\n\x08_message\"#\n\x12\x45nsureCacheRequest\x12\r\n\x05\x63\x61\x63he\x18\x01 \x01(\t\"B\n\nPutRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x10\n\x03ttl\x18\x03 \x01(\x03H\x00\x88\x01\x01\x42\x06\n\x04_ttl\"b\n\rPutAllRequest\x12\x37\n\x07\x65ntries\x18\x01 \x03(\x0b\x32&.coherence.common.v1.BinaryKeyAndValue\x12\x10\n\x03ttl\x18\x02 \x01(\x03H\x00\x88\x01\x01\x42\x06\n\x04_ttl\"M\n\x15ReplaceMappingRequest\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\x15\n\rpreviousValue\x18\x02 \x01(\x0c\x12\x10\n\x08newValue\x18\x03 \x01(\x0c\"v\n\x0cIndexRequest\x12\x0b\n\x03\x61\x64\x64\x18\x01 \x01(\x08\x12\x11\n\textractor\x18\x02 \x01(\x0c\x12\x13\n\x06sorted\x18\x03 \x01(\x08H\x00\x88\x01\x01\x12\x17\n\ncomparator\x18\x04 \x01(\x0cH\x01\x88\x01\x01\x42\t\n\x07_sortedB\r\n\x0b_comparator\"|\n\x0cKeysOrFilter\x12\r\n\x03key\x18\x01 \x01(\x0cH\x00\x12<\n\x04keys\x18\x02 \x01(\x0b\x32,.coherence.common.v1.CollectionOfBytesValuesH\x00\x12\x10\n\x06\x66ilter\x18\x03 \x01(\x0cH\x00\x42\r\n\x0bkeyOrFilter\"=\n\x0bKeyOrFilter\x12\r\n\x03key\x18\x01 \x01(\x0cH\x00\x12\x10\n\x06\x66ilter\x18\x02 \x01(\x0cH\x00\x42\r\n\x0bkeyOrFilter\"]\n\x0e\x45xecuteRequest\x12\r\n\x05\x61gent\x18\x01 \x01(\x0c\x12\x33\n\x04keys\x18\x03 \x01(\x0b\x32 .coherence.cache.v1.KeysOrFilterH\x00\x88\x01\x01\x42\x07\n\x05_keys\"V\n\x0cQueryRequest\x12\x13\n\x06\x66ilter\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x17\n\ncomparator\x18\x02 \x01(\x0cH\x01\x88\x01\x01\x42\t\n\x07_filterB\r\n\x0b_comparator\"\xc9\x01\n\x12MapListenerRequest\x12\x11\n\tsubscribe\x18\x01 \x01(\x08\x12\x39\n\x0bkeyOrFilter\x18\x02 \x01(\x0b\x32\x1f.coherence.cache.v1.KeyOrFilterH\x00\x88\x01\x01\x12\x10\n\x08\x66ilterId\x18\x03 \x01(\x03\x12\x0c\n\x04lite\x18\x04 \x01(\x08\x12\x13\n\x0bsynchronous\x18\x05 \x01(\x08\x12\x0f\n\x07priming\x18\x06 \x01(\x08\x12\x0f\n\x07trigger\x18\x07 \x01(\x0c\x42\x0e\n\x0c_keyOrFilter\"\xd5\x02\n\x0fMapEventMessage\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x10\n\x08newValue\x18\x03 \x01(\x0c\x12\x10\n\x08oldValue\x18\x04 \x01(\x0c\x12T\n\x13transformationState\x18\x05 \x01(\x0e\x32\x37.coherence.cache.v1.MapEventMessage.TransformationState\x12\x11\n\tfilterIds\x18\x06 \x03(\x03\x12\x11\n\tsynthetic\x18\x07 \x01(\x08\x12\x0f\n\x07priming\x18\x08 \x01(\x08\x12\x0f\n\x07\x65xpired\x18\t \x01(\x08\x12\x15\n\rversionUpdate\x18\n \x01(\x08\"P\n\x13TransformationState\x12\x15\n\x11NON_TRANSFORMABLE\x10\x00\x12\x11\n\rTRANSFORMABLE\x10\x01\x12\x0f\n\x0bTRANSFORMED\x10\x02*\xbd\x03\n\x15NamedCacheRequestType\x12\x0b\n\x07Unknown\x10\x00\x12\x0f\n\x0b\x45nsureCache\x10\x01\x12\r\n\tAggregate\x10\x02\x12\t\n\x05\x43lear\x10\x03\x12\x11\n\rContainsEntry\x10\x04\x12\x0f\n\x0b\x43ontainsKey\x10\x05\x12\x11\n\rContainsValue\x10\x06\x12\x0b\n\x07\x44\x65stroy\x10\x07\x12\x0b\n\x07IsEmpty\x10\x08\x12\x0b\n\x07IsReady\x10\t\x12\x07\n\x03Get\x10\n\x12\n\n\x06GetAll\x10\x0b\x12\t\n\x05Index\x10\x0c\x12\n\n\x06Invoke\x10\r\x12\x0f\n\x0bMapListener\x10\x0e\x12\x11\n\rPageOfEntries\x10\x0f\x12\x0e\n\nPageOfKeys\x10\x10\x12\x07\n\x03Put\x10\x11\x12\n\n\x06PutAll\x10\x12\x12\x0f\n\x0bPutIfAbsent\x10\x13\x12\x10\n\x0cQueryEntries\x10\x14\x12\r\n\tQueryKeys\x10\x15\x12\x0f\n\x0bQueryValues\x10\x16\x12\n\n\x06Remove\x10\x17\x12\x11\n\rRemoveMapping\x10\x18\x12\x0b\n\x07Replace\x10\x19\x12\x12\n\x0eReplaceMapping\x10\x1a\x12\x08\n\x04Size\x10\x1b\x12\x0c\n\x08Truncate\x10\x1c*G\n\x0cResponseType\x12\x0b\n\x07Message\x10\x00\x12\x0c\n\x08MapEvent\x10\x01\x12\r\n\tDestroyed\x10\x02\x12\r\n\tTruncated\x10\x03\x42/\n+com.oracle.coherence.grpc.messages.cache.v1P\x01\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cache_service_messages_v1_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n+com.oracle.coherence.grpc.messages.cache.v1P\001' - _NAMEDCACHEREQUESTTYPE._serialized_start=1840 - _NAMEDCACHEREQUESTTYPE._serialized_end=2285 - _RESPONSETYPE._serialized_start=2287 - _RESPONSETYPE._serialized_end=2358 - _NAMEDCACHEREQUEST._serialized_start=203 - _NAMEDCACHEREQUEST._serialized_end=369 - _NAMEDCACHERESPONSE._serialized_start=372 - _NAMEDCACHERESPONSE._serialized_end=513 - _ENSURECACHEREQUEST._serialized_start=515 - _ENSURECACHEREQUEST._serialized_end=550 - _PUTREQUEST._serialized_start=552 - _PUTREQUEST._serialized_end=618 - _PUTALLREQUEST._serialized_start=620 - _PUTALLREQUEST._serialized_end=718 - _REPLACEMAPPINGREQUEST._serialized_start=720 - _REPLACEMAPPINGREQUEST._serialized_end=797 - _INDEXREQUEST._serialized_start=799 - _INDEXREQUEST._serialized_end=917 - _KEYSORFILTER._serialized_start=919 - _KEYSORFILTER._serialized_end=1043 - _KEYORFILTER._serialized_start=1045 - _KEYORFILTER._serialized_end=1106 - _EXECUTEREQUEST._serialized_start=1108 - _EXECUTEREQUEST._serialized_end=1201 - _QUERYREQUEST._serialized_start=1203 - _QUERYREQUEST._serialized_end=1289 - _MAPLISTENERREQUEST._serialized_start=1292 - _MAPLISTENERREQUEST._serialized_end=1493 - _MAPEVENTMESSAGE._serialized_start=1496 - _MAPEVENTMESSAGE._serialized_end=1837 - _MAPEVENTMESSAGE_TRANSFORMATIONSTATE._serialized_start=1757 - _MAPEVENTMESSAGE_TRANSFORMATIONSTATE._serialized_end=1837 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'cache_service_messages_v1_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n+com.oracle.coherence.grpc.messages.cache.v1P\001' + _globals['_NAMEDCACHEREQUESTTYPE']._serialized_start=1840 + _globals['_NAMEDCACHEREQUESTTYPE']._serialized_end=2285 + _globals['_RESPONSETYPE']._serialized_start=2287 + _globals['_RESPONSETYPE']._serialized_end=2358 + _globals['_NAMEDCACHEREQUEST']._serialized_start=203 + _globals['_NAMEDCACHEREQUEST']._serialized_end=369 + _globals['_NAMEDCACHERESPONSE']._serialized_start=372 + _globals['_NAMEDCACHERESPONSE']._serialized_end=513 + _globals['_ENSURECACHEREQUEST']._serialized_start=515 + _globals['_ENSURECACHEREQUEST']._serialized_end=550 + _globals['_PUTREQUEST']._serialized_start=552 + _globals['_PUTREQUEST']._serialized_end=618 + _globals['_PUTALLREQUEST']._serialized_start=620 + _globals['_PUTALLREQUEST']._serialized_end=718 + _globals['_REPLACEMAPPINGREQUEST']._serialized_start=720 + _globals['_REPLACEMAPPINGREQUEST']._serialized_end=797 + _globals['_INDEXREQUEST']._serialized_start=799 + _globals['_INDEXREQUEST']._serialized_end=917 + _globals['_KEYSORFILTER']._serialized_start=919 + _globals['_KEYSORFILTER']._serialized_end=1043 + _globals['_KEYORFILTER']._serialized_start=1045 + _globals['_KEYORFILTER']._serialized_end=1106 + _globals['_EXECUTEREQUEST']._serialized_start=1108 + _globals['_EXECUTEREQUEST']._serialized_end=1201 + _globals['_QUERYREQUEST']._serialized_start=1203 + _globals['_QUERYREQUEST']._serialized_end=1289 + _globals['_MAPLISTENERREQUEST']._serialized_start=1292 + _globals['_MAPLISTENERREQUEST']._serialized_end=1493 + _globals['_MAPEVENTMESSAGE']._serialized_start=1496 + _globals['_MAPEVENTMESSAGE']._serialized_end=1837 + _globals['_MAPEVENTMESSAGE_TRANSFORMATIONSTATE']._serialized_start=1757 + _globals['_MAPEVENTMESSAGE_TRANSFORMATIONSTATE']._serialized_end=1837 # @@protoc_insertion_point(module_scope) diff --git a/src/coherence/cache_service_messages_v1_pb2.pyi b/src/coherence/cache_service_messages_v1_pb2.pyi index c33c0f0..31b6e26 100644 --- a/src/coherence/cache_service_messages_v1_pb2.pyi +++ b/src/coherence/cache_service_messages_v1_pb2.pyi @@ -1,4 +1,3 @@ -# mypy: ignore-errors import common_messages_v1_pb2 as _common_messages_v1_pb2 from google.protobuf import any_pb2 as _any_pb2 from google.protobuf import empty_pb2 as _empty_pb2 @@ -10,24 +9,61 @@ from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union +DESCRIPTOR: _descriptor.FileDescriptor + +class NamedCacheRequestType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + Unknown: _ClassVar[NamedCacheRequestType] + EnsureCache: _ClassVar[NamedCacheRequestType] + Aggregate: _ClassVar[NamedCacheRequestType] + Clear: _ClassVar[NamedCacheRequestType] + ContainsEntry: _ClassVar[NamedCacheRequestType] + ContainsKey: _ClassVar[NamedCacheRequestType] + ContainsValue: _ClassVar[NamedCacheRequestType] + Destroy: _ClassVar[NamedCacheRequestType] + IsEmpty: _ClassVar[NamedCacheRequestType] + IsReady: _ClassVar[NamedCacheRequestType] + Get: _ClassVar[NamedCacheRequestType] + GetAll: _ClassVar[NamedCacheRequestType] + Index: _ClassVar[NamedCacheRequestType] + Invoke: _ClassVar[NamedCacheRequestType] + MapListener: _ClassVar[NamedCacheRequestType] + PageOfEntries: _ClassVar[NamedCacheRequestType] + PageOfKeys: _ClassVar[NamedCacheRequestType] + Put: _ClassVar[NamedCacheRequestType] + PutAll: _ClassVar[NamedCacheRequestType] + PutIfAbsent: _ClassVar[NamedCacheRequestType] + QueryEntries: _ClassVar[NamedCacheRequestType] + QueryKeys: _ClassVar[NamedCacheRequestType] + QueryValues: _ClassVar[NamedCacheRequestType] + Remove: _ClassVar[NamedCacheRequestType] + RemoveMapping: _ClassVar[NamedCacheRequestType] + Replace: _ClassVar[NamedCacheRequestType] + ReplaceMapping: _ClassVar[NamedCacheRequestType] + Size: _ClassVar[NamedCacheRequestType] + Truncate: _ClassVar[NamedCacheRequestType] + +class ResponseType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + Message: _ClassVar[ResponseType] + MapEvent: _ClassVar[ResponseType] + Destroyed: _ClassVar[ResponseType] + Truncated: _ClassVar[ResponseType] +Unknown: NamedCacheRequestType +EnsureCache: NamedCacheRequestType Aggregate: NamedCacheRequestType Clear: NamedCacheRequestType ContainsEntry: NamedCacheRequestType ContainsKey: NamedCacheRequestType ContainsValue: NamedCacheRequestType -DESCRIPTOR: _descriptor.FileDescriptor Destroy: NamedCacheRequestType -Destroyed: ResponseType -EnsureCache: NamedCacheRequestType +IsEmpty: NamedCacheRequestType +IsReady: NamedCacheRequestType Get: NamedCacheRequestType GetAll: NamedCacheRequestType Index: NamedCacheRequestType Invoke: NamedCacheRequestType -IsEmpty: NamedCacheRequestType -IsReady: NamedCacheRequestType -MapEvent: ResponseType MapListener: NamedCacheRequestType -Message: ResponseType PageOfEntries: NamedCacheRequestType PageOfKeys: NamedCacheRequestType Put: NamedCacheRequestType @@ -42,158 +78,157 @@ Replace: NamedCacheRequestType ReplaceMapping: NamedCacheRequestType Size: NamedCacheRequestType Truncate: NamedCacheRequestType +Message: ResponseType +MapEvent: ResponseType +Destroyed: ResponseType Truncated: ResponseType -Unknown: NamedCacheRequestType + +class NamedCacheRequest(_message.Message): + __slots__ = ("type", "cacheId", "message") + TYPE_FIELD_NUMBER: _ClassVar[int] + CACHEID_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + type: NamedCacheRequestType + cacheId: int + message: _any_pb2.Any + def __init__(self, type: _Optional[_Union[NamedCacheRequestType, str]] = ..., cacheId: _Optional[int] = ..., message: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... + +class NamedCacheResponse(_message.Message): + __slots__ = ("cacheId", "type", "message") + CACHEID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + cacheId: int + type: ResponseType + message: _any_pb2.Any + def __init__(self, cacheId: _Optional[int] = ..., type: _Optional[_Union[ResponseType, str]] = ..., message: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... class EnsureCacheRequest(_message.Message): - __slots__ = ["cache"] + __slots__ = ("cache",) CACHE_FIELD_NUMBER: _ClassVar[int] cache: str def __init__(self, cache: _Optional[str] = ...) -> None: ... -class ExecuteRequest(_message.Message): - __slots__ = ["agent", "keys"] - AGENT_FIELD_NUMBER: _ClassVar[int] - KEYS_FIELD_NUMBER: _ClassVar[int] - agent: bytes - keys: KeysOrFilter - def __init__(self, agent: _Optional[bytes] = ..., keys: _Optional[_Union[KeysOrFilter, _Mapping]] = ...) -> None: ... +class PutRequest(_message.Message): + __slots__ = ("key", "value", "ttl") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + TTL_FIELD_NUMBER: _ClassVar[int] + key: bytes + value: bytes + ttl: int + def __init__(self, key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., ttl: _Optional[int] = ...) -> None: ... + +class PutAllRequest(_message.Message): + __slots__ = ("entries", "ttl") + ENTRIES_FIELD_NUMBER: _ClassVar[int] + TTL_FIELD_NUMBER: _ClassVar[int] + entries: _containers.RepeatedCompositeFieldContainer[_common_messages_v1_pb2.BinaryKeyAndValue] + ttl: int + def __init__(self, entries: _Optional[_Iterable[_Union[_common_messages_v1_pb2.BinaryKeyAndValue, _Mapping]]] = ..., ttl: _Optional[int] = ...) -> None: ... + +class ReplaceMappingRequest(_message.Message): + __slots__ = ("key", "previousValue", "newValue") + KEY_FIELD_NUMBER: _ClassVar[int] + PREVIOUSVALUE_FIELD_NUMBER: _ClassVar[int] + NEWVALUE_FIELD_NUMBER: _ClassVar[int] + key: bytes + previousValue: bytes + newValue: bytes + def __init__(self, key: _Optional[bytes] = ..., previousValue: _Optional[bytes] = ..., newValue: _Optional[bytes] = ...) -> None: ... class IndexRequest(_message.Message): - __slots__ = ["add", "comparator", "extractor", "sorted"] + __slots__ = ("add", "extractor", "sorted", "comparator") ADD_FIELD_NUMBER: _ClassVar[int] - COMPARATOR_FIELD_NUMBER: _ClassVar[int] EXTRACTOR_FIELD_NUMBER: _ClassVar[int] SORTED_FIELD_NUMBER: _ClassVar[int] + COMPARATOR_FIELD_NUMBER: _ClassVar[int] add: bool - comparator: bytes extractor: bytes sorted: bool + comparator: bytes def __init__(self, add: bool = ..., extractor: _Optional[bytes] = ..., sorted: bool = ..., comparator: _Optional[bytes] = ...) -> None: ... -class KeyOrFilter(_message.Message): - __slots__ = ["filter", "key"] - FILTER_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - filter: bytes - key: bytes - def __init__(self, key: _Optional[bytes] = ..., filter: _Optional[bytes] = ...) -> None: ... - class KeysOrFilter(_message.Message): - __slots__ = ["filter", "key", "keys"] - FILTER_FIELD_NUMBER: _ClassVar[int] - KEYS_FIELD_NUMBER: _ClassVar[int] + __slots__ = ("key", "keys", "filter") KEY_FIELD_NUMBER: _ClassVar[int] - filter: bytes + KEYS_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] key: bytes keys: _common_messages_v1_pb2.CollectionOfBytesValues + filter: bytes def __init__(self, key: _Optional[bytes] = ..., keys: _Optional[_Union[_common_messages_v1_pb2.CollectionOfBytesValues, _Mapping]] = ..., filter: _Optional[bytes] = ...) -> None: ... -class MapEventMessage(_message.Message): - __slots__ = ["expired", "filterIds", "id", "key", "newValue", "oldValue", "priming", "synthetic", "transformationState", "versionUpdate"] - class TransformationState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - EXPIRED_FIELD_NUMBER: _ClassVar[int] - FILTERIDS_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] +class KeyOrFilter(_message.Message): + __slots__ = ("key", "filter") KEY_FIELD_NUMBER: _ClassVar[int] - NEWVALUE_FIELD_NUMBER: _ClassVar[int] - NON_TRANSFORMABLE: MapEventMessage.TransformationState - OLDVALUE_FIELD_NUMBER: _ClassVar[int] - PRIMING_FIELD_NUMBER: _ClassVar[int] - SYNTHETIC_FIELD_NUMBER: _ClassVar[int] - TRANSFORMABLE: MapEventMessage.TransformationState - TRANSFORMATIONSTATE_FIELD_NUMBER: _ClassVar[int] - TRANSFORMED: MapEventMessage.TransformationState - VERSIONUPDATE_FIELD_NUMBER: _ClassVar[int] - expired: bool - filterIds: _containers.RepeatedScalarFieldContainer[int] - id: int + FILTER_FIELD_NUMBER: _ClassVar[int] key: bytes - newValue: bytes - oldValue: bytes - priming: bool - synthetic: bool - transformationState: MapEventMessage.TransformationState - versionUpdate: bool - def __init__(self, id: _Optional[int] = ..., key: _Optional[bytes] = ..., newValue: _Optional[bytes] = ..., oldValue: _Optional[bytes] = ..., transformationState: _Optional[_Union[MapEventMessage.TransformationState, str]] = ..., filterIds: _Optional[_Iterable[int]] = ..., synthetic: bool = ..., priming: bool = ..., expired: bool = ..., versionUpdate: bool = ...) -> None: ... + filter: bytes + def __init__(self, key: _Optional[bytes] = ..., filter: _Optional[bytes] = ...) -> None: ... + +class ExecuteRequest(_message.Message): + __slots__ = ("agent", "keys") + AGENT_FIELD_NUMBER: _ClassVar[int] + KEYS_FIELD_NUMBER: _ClassVar[int] + agent: bytes + keys: KeysOrFilter + def __init__(self, agent: _Optional[bytes] = ..., keys: _Optional[_Union[KeysOrFilter, _Mapping]] = ...) -> None: ... + +class QueryRequest(_message.Message): + __slots__ = ("filter", "comparator") + FILTER_FIELD_NUMBER: _ClassVar[int] + COMPARATOR_FIELD_NUMBER: _ClassVar[int] + filter: bytes + comparator: bytes + def __init__(self, filter: _Optional[bytes] = ..., comparator: _Optional[bytes] = ...) -> None: ... class MapListenerRequest(_message.Message): - __slots__ = ["filterId", "keyOrFilter", "lite", "priming", "subscribe", "synchronous", "trigger"] - FILTERID_FIELD_NUMBER: _ClassVar[int] + __slots__ = ("subscribe", "keyOrFilter", "filterId", "lite", "synchronous", "priming", "trigger") + SUBSCRIBE_FIELD_NUMBER: _ClassVar[int] KEYORFILTER_FIELD_NUMBER: _ClassVar[int] + FILTERID_FIELD_NUMBER: _ClassVar[int] LITE_FIELD_NUMBER: _ClassVar[int] - PRIMING_FIELD_NUMBER: _ClassVar[int] - SUBSCRIBE_FIELD_NUMBER: _ClassVar[int] SYNCHRONOUS_FIELD_NUMBER: _ClassVar[int] + PRIMING_FIELD_NUMBER: _ClassVar[int] TRIGGER_FIELD_NUMBER: _ClassVar[int] - filterId: int + subscribe: bool keyOrFilter: KeyOrFilter + filterId: int lite: bool - priming: bool - subscribe: bool synchronous: bool + priming: bool trigger: bytes def __init__(self, subscribe: bool = ..., keyOrFilter: _Optional[_Union[KeyOrFilter, _Mapping]] = ..., filterId: _Optional[int] = ..., lite: bool = ..., synchronous: bool = ..., priming: bool = ..., trigger: _Optional[bytes] = ...) -> None: ... -class NamedCacheRequest(_message.Message): - __slots__ = ["cacheId", "message", "type"] - CACHEID_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - cacheId: int - message: _any_pb2.Any - type: NamedCacheRequestType - def __init__(self, type: _Optional[_Union[NamedCacheRequestType, str]] = ..., cacheId: _Optional[int] = ..., message: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... - -class NamedCacheResponse(_message.Message): - __slots__ = ["cacheId", "message", "type"] - CACHEID_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - cacheId: int - message: _any_pb2.Any - type: ResponseType - def __init__(self, cacheId: _Optional[int] = ..., type: _Optional[_Union[ResponseType, str]] = ..., message: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... - -class PutAllRequest(_message.Message): - __slots__ = ["entries", "ttl"] - ENTRIES_FIELD_NUMBER: _ClassVar[int] - TTL_FIELD_NUMBER: _ClassVar[int] - entries: _containers.RepeatedCompositeFieldContainer[_common_messages_v1_pb2.BinaryKeyAndValue] - ttl: int - def __init__(self, entries: _Optional[_Iterable[_Union[_common_messages_v1_pb2.BinaryKeyAndValue, _Mapping]]] = ..., ttl: _Optional[int] = ...) -> None: ... - -class PutRequest(_message.Message): - __slots__ = ["key", "ttl", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - TTL_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: bytes - ttl: int - value: bytes - def __init__(self, key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., ttl: _Optional[int] = ...) -> None: ... - -class QueryRequest(_message.Message): - __slots__ = ["comparator", "filter"] - COMPARATOR_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] - comparator: bytes - filter: bytes - def __init__(self, filter: _Optional[bytes] = ..., comparator: _Optional[bytes] = ...) -> None: ... - -class ReplaceMappingRequest(_message.Message): - __slots__ = ["key", "newValue", "previousValue"] +class MapEventMessage(_message.Message): + __slots__ = ("id", "key", "newValue", "oldValue", "transformationState", "filterIds", "synthetic", "priming", "expired", "versionUpdate") + class TransformationState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + NON_TRANSFORMABLE: _ClassVar[MapEventMessage.TransformationState] + TRANSFORMABLE: _ClassVar[MapEventMessage.TransformationState] + TRANSFORMED: _ClassVar[MapEventMessage.TransformationState] + NON_TRANSFORMABLE: MapEventMessage.TransformationState + TRANSFORMABLE: MapEventMessage.TransformationState + TRANSFORMED: MapEventMessage.TransformationState + ID_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] NEWVALUE_FIELD_NUMBER: _ClassVar[int] - PREVIOUSVALUE_FIELD_NUMBER: _ClassVar[int] + OLDVALUE_FIELD_NUMBER: _ClassVar[int] + TRANSFORMATIONSTATE_FIELD_NUMBER: _ClassVar[int] + FILTERIDS_FIELD_NUMBER: _ClassVar[int] + SYNTHETIC_FIELD_NUMBER: _ClassVar[int] + PRIMING_FIELD_NUMBER: _ClassVar[int] + EXPIRED_FIELD_NUMBER: _ClassVar[int] + VERSIONUPDATE_FIELD_NUMBER: _ClassVar[int] + id: int key: bytes newValue: bytes - previousValue: bytes - def __init__(self, key: _Optional[bytes] = ..., previousValue: _Optional[bytes] = ..., newValue: _Optional[bytes] = ...) -> None: ... - -class NamedCacheRequestType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - -class ResponseType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] + oldValue: bytes + transformationState: MapEventMessage.TransformationState + filterIds: _containers.RepeatedScalarFieldContainer[int] + synthetic: bool + priming: bool + expired: bool + versionUpdate: bool + def __init__(self, id: _Optional[int] = ..., key: _Optional[bytes] = ..., newValue: _Optional[bytes] = ..., oldValue: _Optional[bytes] = ..., transformationState: _Optional[_Union[MapEventMessage.TransformationState, str]] = ..., filterIds: _Optional[_Iterable[int]] = ..., synthetic: bool = ..., priming: bool = ..., expired: bool = ..., versionUpdate: bool = ...) -> None: ... diff --git a/src/coherence/cache_service_messages_v1_pb2_grpc.py b/src/coherence/cache_service_messages_v1_pb2_grpc.py index 2daafff..71dae2d 100644 --- a/src/coherence/cache_service_messages_v1_pb2_grpc.py +++ b/src/coherence/cache_service_messages_v1_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.71.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in cache_service_messages_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/src/coherence/client.py b/src/coherence/client.py index c234f1f..e193d9d 100644 --- a/src/coherence/client.py +++ b/src/coherence/client.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022, 2024, Oracle and/or its affiliates. +# Copyright (c) 2022, 2025, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at # https://oss.oracle.com/licenses/upl. @@ -777,8 +777,8 @@ async def put_if_absent(self, key: K, value: V, ttl: Optional[int] = None) -> Op return self._request_factory.serializer.deserialize(v.value) @_pre_call_cache - async def put_all(self, map: dict[K, V]) -> None: - p = self._request_factory.put_all_request(map) + async def put_all(self, map: dict[K, V], ttl: Optional[int] = 0) -> None: + p = self._request_factory.put_all_request(map, ttl) await self._client_stub.putAll(p) @_pre_call_cache diff --git a/src/coherence/common_messages_v1_pb2.py b/src/coherence/common_messages_v1_pb2.py index 8ceff5d..f8917cb 100644 --- a/src/coherence/common_messages_v1_pb2.py +++ b/src/coherence/common_messages_v1_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: common_messages_v1.proto +# Protobuf Python Version: 5.29.0 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'common_messages_v1.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -14,24 +25,30 @@ from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x63ommon_messages_v1.proto\x12\x13\x63oherence.common.v1\x1a\x19google/protobuf/any.proto\"=\n\x0c\x45rrorMessage\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x12\n\x05\x65rror\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x08\n\x06_error\"\n\n\x08\x43omplete\";\n\x10HeartbeatMessage\x12\x11\n\x04uuid\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x0b\n\x03\x61\x63k\x18\x02 \x01(\x08\x42\x07\n\x05_uuid\"/\n\rOptionalValue\x12\x0f\n\x07present\x18\x01 \x01(\x08\x12\r\n\x05value\x18\x02 \x01(\x0c\")\n\x17\x43ollectionOfBytesValues\x12\x0e\n\x06values\x18\x01 \x03(\x0c\"/\n\x11\x42inaryKeyAndValue\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x42\x30\n,com.oracle.coherence.grpc.messages.common.v1P\x01\x62\x06proto3') - -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common_messages_v1_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x63ommon_messages_v1.proto\x12\x13\x63oherence.common.v1\x1a\x19google/protobuf/any.proto\"=\n\x0c\x45rrorMessage\x12\x0f\n\x07message\x18\x01 \x01(\t\x12\x12\n\x05\x65rror\x18\x02 \x01(\x0cH\x00\x88\x01\x01\x42\x08\n\x06_error\"\n\n\x08\x43omplete\";\n\x10HeartbeatMessage\x12\x11\n\x04uuid\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x0b\n\x03\x61\x63k\x18\x02 \x01(\x08\x42\x07\n\x05_uuid\"/\n\rOptionalValue\x12\x0f\n\x07present\x18\x01 \x01(\x08\x12\r\n\x05value\x18\x02 \x01(\x0c\")\n\x17\x43ollectionOfBytesValues\x12\x0e\n\x06values\x18\x01 \x03(\x0c\"/\n\x11\x42inaryKeyAndValue\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\"*\n\x18\x43ollectionOfStringValues\x12\x0e\n\x06values\x18\x01 \x03(\t\"#\n\x11\x43ollectionOfInt32\x12\x0e\n\x06values\x18\x01 \x03(\x05\"#\n\x11\x43ollectionOfInt64\x12\x0e\n\x06values\x18\x01 \x03(\x03\x42\x30\n,com.oracle.coherence.grpc.messages.common.v1P\x01\x62\x06proto3') - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n,com.oracle.coherence.grpc.messages.common.v1P\001' - _ERRORMESSAGE._serialized_start=76 - _ERRORMESSAGE._serialized_end=137 - _COMPLETE._serialized_start=139 - _COMPLETE._serialized_end=149 - _HEARTBEATMESSAGE._serialized_start=151 - _HEARTBEATMESSAGE._serialized_end=210 - _OPTIONALVALUE._serialized_start=212 - _OPTIONALVALUE._serialized_end=259 - _COLLECTIONOFBYTESVALUES._serialized_start=261 - _COLLECTIONOFBYTESVALUES._serialized_end=302 - _BINARYKEYANDVALUE._serialized_start=304 - _BINARYKEYANDVALUE._serialized_end=351 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'common_messages_v1_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n,com.oracle.coherence.grpc.messages.common.v1P\001' + _globals['_ERRORMESSAGE']._serialized_start=76 + _globals['_ERRORMESSAGE']._serialized_end=137 + _globals['_COMPLETE']._serialized_start=139 + _globals['_COMPLETE']._serialized_end=149 + _globals['_HEARTBEATMESSAGE']._serialized_start=151 + _globals['_HEARTBEATMESSAGE']._serialized_end=210 + _globals['_OPTIONALVALUE']._serialized_start=212 + _globals['_OPTIONALVALUE']._serialized_end=259 + _globals['_COLLECTIONOFBYTESVALUES']._serialized_start=261 + _globals['_COLLECTIONOFBYTESVALUES']._serialized_end=302 + _globals['_BINARYKEYANDVALUE']._serialized_start=304 + _globals['_BINARYKEYANDVALUE']._serialized_end=351 + _globals['_COLLECTIONOFSTRINGVALUES']._serialized_start=353 + _globals['_COLLECTIONOFSTRINGVALUES']._serialized_end=395 + _globals['_COLLECTIONOFINT32']._serialized_start=397 + _globals['_COLLECTIONOFINT32']._serialized_end=432 + _globals['_COLLECTIONOFINT64']._serialized_start=434 + _globals['_COLLECTIONOFINT64']._serialized_end=469 # @@protoc_insertion_point(module_scope) diff --git a/src/coherence/common_messages_v1_pb2.pyi b/src/coherence/common_messages_v1_pb2.pyi index f5747d9..4d9f325 100644 --- a/src/coherence/common_messages_v1_pb2.pyi +++ b/src/coherence/common_messages_v1_pb2.pyi @@ -1,4 +1,3 @@ -# mypy: ignore-errors from google.protobuf import any_pb2 as _any_pb2 from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor @@ -7,44 +6,62 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Optional as _Op DESCRIPTOR: _descriptor.FileDescriptor -class BinaryKeyAndValue(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: bytes - value: bytes - def __init__(self, key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... - -class CollectionOfBytesValues(_message.Message): - __slots__ = ["values"] - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.RepeatedScalarFieldContainer[bytes] - def __init__(self, values: _Optional[_Iterable[bytes]] = ...) -> None: ... - -class Complete(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - class ErrorMessage(_message.Message): - __slots__ = ["error", "message"] - ERROR_FIELD_NUMBER: _ClassVar[int] + __slots__ = ("message", "error") MESSAGE_FIELD_NUMBER: _ClassVar[int] - error: bytes + ERROR_FIELD_NUMBER: _ClassVar[int] message: str + error: bytes def __init__(self, message: _Optional[str] = ..., error: _Optional[bytes] = ...) -> None: ... +class Complete(_message.Message): + __slots__ = () + def __init__(self) -> None: ... + class HeartbeatMessage(_message.Message): - __slots__ = ["ack", "uuid"] - ACK_FIELD_NUMBER: _ClassVar[int] + __slots__ = ("uuid", "ack") UUID_FIELD_NUMBER: _ClassVar[int] - ack: bool + ACK_FIELD_NUMBER: _ClassVar[int] uuid: bytes + ack: bool def __init__(self, uuid: _Optional[bytes] = ..., ack: bool = ...) -> None: ... class OptionalValue(_message.Message): - __slots__ = ["present", "value"] + __slots__ = ("present", "value") PRESENT_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] present: bool value: bytes def __init__(self, present: bool = ..., value: _Optional[bytes] = ...) -> None: ... + +class CollectionOfBytesValues(_message.Message): + __slots__ = ("values",) + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedScalarFieldContainer[bytes] + def __init__(self, values: _Optional[_Iterable[bytes]] = ...) -> None: ... + +class BinaryKeyAndValue(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: bytes + value: bytes + def __init__(self, key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... + +class CollectionOfStringValues(_message.Message): + __slots__ = ("values",) + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, values: _Optional[_Iterable[str]] = ...) -> None: ... + +class CollectionOfInt32(_message.Message): + __slots__ = ("values",) + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedScalarFieldContainer[int] + def __init__(self, values: _Optional[_Iterable[int]] = ...) -> None: ... + +class CollectionOfInt64(_message.Message): + __slots__ = ("values",) + VALUES_FIELD_NUMBER: _ClassVar[int] + values: _containers.RepeatedScalarFieldContainer[int] + def __init__(self, values: _Optional[_Iterable[int]] = ...) -> None: ... diff --git a/src/coherence/common_messages_v1_pb2_grpc.py b/src/coherence/common_messages_v1_pb2_grpc.py index 2daafff..85c4d52 100644 --- a/src/coherence/common_messages_v1_pb2_grpc.py +++ b/src/coherence/common_messages_v1_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.71.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in common_messages_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/src/coherence/messages_pb2.py b/src/coherence/messages_pb2.py index ea0b3a1..2160e27 100644 --- a/src/coherence/messages_pb2.py +++ b/src/coherence/messages_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: messages.proto +# Protobuf Python Version: 5.29.0 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'messages.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -13,92 +24,94 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0emessages.proto\x12\tcoherence\",\n\x0c\x43learRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\"`\n\x14\x43ontainsEntryRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\"O\n\x12\x43ontainsKeyRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\"S\n\x14\x43ontainsValueRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\r\n\x05value\x18\x04 \x01(\x0c\".\n\x0e\x44\x65stroyRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\".\n\x0eIsEmptyRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\".\n\x0eIsReadyRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\"+\n\x0bSizeRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\"G\n\nGetRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\"J\n\rGetAllRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x03(\x0c\"c\n\nPutRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\x12\x0b\n\x03ttl\x18\x06 \x01(\x03\"k\n\rPutAllRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x1f\n\x05\x65ntry\x18\x04 \x03(\x0b\x32\x10.coherence.Entry\x12\x0b\n\x03ttl\x18\x06 \x01(\x03\"k\n\x12PutIfAbsentRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\x12\x0b\n\x03ttl\x18\x06 \x01(\x03\"J\n\rRemoveRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\"`\n\x14RemoveMappingRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\"Z\n\x0eReplaceRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\"{\n\x15ReplaceMappingRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\x15\n\rpreviousValue\x18\x05 \x01(\x0c\x12\x10\n\x08newValue\x18\x06 \x01(\x0c\"K\n\x0bPageRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0e\n\x06\x63ookie\x18\x04 \x01(\x0c\"9\n\x0b\x45ntryResult\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06\x63ookie\x18\x03 \x01(\x0c\"#\n\x05\x45ntry\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\"/\n\x0fTruncateRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\"v\n\x0f\x41\x64\x64IndexRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x11\n\textractor\x18\x04 \x01(\x0c\x12\x0e\n\x06sorted\x18\x05 \x01(\x08\x12\x12\n\ncomparator\x18\x06 \x01(\x0c\"U\n\x12RemoveIndexRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x11\n\textractor\x18\x04 \x01(\x0c\"r\n\x10\x41ggregateRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x12\n\naggregator\x18\x04 \x01(\x0c\x12\x0c\n\x04keys\x18\x05 \x03(\x0c\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\x0c\"]\n\rInvokeRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x11\n\tprocessor\x18\x04 \x01(\x0c\x12\x0b\n\x03key\x18\x05 \x01(\x0c\"q\n\x10InvokeAllRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x11\n\tprocessor\x18\x04 \x01(\x0c\x12\x0c\n\x04keys\x18\x05 \x03(\x0c\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\x0c\"c\n\x0f\x45ntrySetRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\x0c\x12\x12\n\ncomparator\x18\x05 \x01(\x0c\"M\n\rKeySetRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\x0c\"a\n\rValuesRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\x0c\x12\x12\n\ncomparator\x18\x05 \x01(\x0c\"/\n\rOptionalValue\x12\x0f\n\x07present\x18\x01 \x01(\x08\x12\r\n\x05value\x18\x02 \x01(\x0c\"\xa8\x02\n\x12MapListenerRequest\x12\r\n\x05scope\x18\x01 \x01(\t\x12\r\n\x05\x63\x61\x63he\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x0b\n\x03uid\x18\x04 \x01(\t\x12\x37\n\x04type\x18\x05 \x01(\x0e\x32).coherence.MapListenerRequest.RequestType\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\x0c\x12\x0b\n\x03key\x18\x07 \x01(\x0c\x12\x0c\n\x04lite\x18\x08 \x01(\x08\x12\x11\n\tsubscribe\x18\t \x01(\x08\x12\x0f\n\x07priming\x18\n \x01(\x08\x12\x0f\n\x07trigger\x18\x0b \x01(\x0c\x12\x10\n\x08\x66ilterId\x18\x0c \x01(\x03\",\n\x0bRequestType\x12\x08\n\x04INIT\x10\x00\x12\x07\n\x03KEY\x10\x01\x12\n\n\x06\x46ILTER\x10\x02\"\xfe\x02\n\x13MapListenerResponse\x12>\n\nsubscribed\x18\x01 \x01(\x0b\x32(.coherence.MapListenerSubscribedResponseH\x00\x12\x42\n\x0cunsubscribed\x18\x02 \x01(\x0b\x32*.coherence.MapListenerUnsubscribedResponseH\x00\x12,\n\x05\x65vent\x18\x03 \x01(\x0b\x32\x1b.coherence.MapEventResponseH\x00\x12\x34\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.coherence.MapListenerErrorResponseH\x00\x12\x36\n\tdestroyed\x18\x05 \x01(\x0b\x32!.coherence.CacheDestroyedResponseH\x00\x12\x36\n\ttruncated\x18\x06 \x01(\x0b\x32!.coherence.CacheTruncatedResponseH\x00\x42\x0f\n\rresponse_type\",\n\x1dMapListenerSubscribedResponse\x12\x0b\n\x03uid\x18\x01 \x01(\t\".\n\x1fMapListenerUnsubscribedResponse\x12\x0b\n\x03uid\x18\x01 \x01(\t\"\'\n\x16\x43\x61\x63heDestroyedResponse\x12\r\n\x05\x63\x61\x63he\x18\x01 \x01(\t\"\'\n\x16\x43\x61\x63heTruncatedResponse\x12\r\n\x05\x63\x61\x63he\x18\x01 \x01(\t\"U\n\x18MapListenerErrorResponse\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\x05\x12\r\n\x05stack\x18\x04 \x03(\t\"\xa6\x02\n\x10MapEventResponse\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x10\n\x08newValue\x18\x03 \x01(\x0c\x12\x10\n\x08oldValue\x18\x04 \x01(\x0c\x12L\n\x13transformationState\x18\x05 \x01(\x0e\x32/.coherence.MapEventResponse.TransformationState\x12\x11\n\tfilterIds\x18\x06 \x03(\x03\x12\x11\n\tsynthetic\x18\x07 \x01(\x08\x12\x0f\n\x07priming\x18\x08 \x01(\x08\"P\n\x13TransformationState\x12\x15\n\x11NON_TRANSFORMABLE\x10\x00\x12\x11\n\rTRANSFORMABLE\x10\x01\x12\x0f\n\x0bTRANSFORMED\x10\x02\x42\x1d\n\x19\x63om.oracle.coherence.grpcP\x01\x62\x06proto3') - -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'messages_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0emessages.proto\x12\tcoherence\"J\n\x0c\x43learRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_scopeB\x08\n\x06_cache\"\x8e\x01\n\x14\x43ontainsEntryRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"}\n\x12\x43ontainsKeyRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x81\x01\n\x14\x43ontainsValueRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\r\n\x05value\x18\x04 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"L\n\x0e\x44\x65stroyRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_scopeB\x08\n\x06_cache\"L\n\x0eIsEmptyRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_scopeB\x08\n\x06_cache\"L\n\x0eIsReadyRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_scopeB\x08\n\x06_cache\"I\n\x0bSizeRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_scopeB\x08\n\x06_cache\"u\n\nGetRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"x\n\rGetAllRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x03(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x91\x01\n\nPutRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\x12\x0b\n\x03ttl\x18\x06 \x01(\x03\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x99\x01\n\rPutAllRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x1f\n\x05\x65ntry\x18\x04 \x03(\x0b\x32\x10.coherence.Entry\x12\x0b\n\x03ttl\x18\x06 \x01(\x03\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x99\x01\n\x12PutIfAbsentRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\x12\x0b\n\x03ttl\x18\x06 \x01(\x03\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"x\n\rRemoveRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x8e\x01\n\x14RemoveMappingRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x88\x01\n\x0eReplaceRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\r\n\x05value\x18\x05 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\xa9\x01\n\x15ReplaceMappingRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03key\x18\x04 \x01(\x0c\x12\x15\n\rpreviousValue\x18\x05 \x01(\x0c\x12\x10\n\x08newValue\x18\x06 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"y\n\x0bPageRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0e\n\x06\x63ookie\x18\x04 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"9\n\x0b\x45ntryResult\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\x12\x0e\n\x06\x63ookie\x18\x03 \x01(\x0c\"#\n\x05\x45ntry\x12\x0b\n\x03key\x18\x01 \x01(\x0c\x12\r\n\x05value\x18\x02 \x01(\x0c\"M\n\x0fTruncateRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x08\n\x06_scopeB\x08\n\x06_cache\"\xa4\x01\n\x0f\x41\x64\x64IndexRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x11\n\textractor\x18\x04 \x01(\x0c\x12\x0e\n\x06sorted\x18\x05 \x01(\x08\x12\x12\n\ncomparator\x18\x06 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x83\x01\n\x12RemoveIndexRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x11\n\textractor\x18\x04 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\xa0\x01\n\x10\x41ggregateRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x12\n\naggregator\x18\x04 \x01(\x0c\x12\x0c\n\x04keys\x18\x05 \x03(\x0c\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x8b\x01\n\rInvokeRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x11\n\tprocessor\x18\x04 \x01(\x0c\x12\x0b\n\x03key\x18\x05 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x9f\x01\n\x10InvokeAllRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x11\n\tprocessor\x18\x04 \x01(\x0c\x12\x0c\n\x04keys\x18\x05 \x03(\x0c\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x91\x01\n\x0f\x45ntrySetRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\x0c\x12\x12\n\ncomparator\x18\x05 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"{\n\rKeySetRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"\x8f\x01\n\rValuesRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\x0c\x12\x12\n\ncomparator\x18\x05 \x01(\x0c\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_format\"/\n\rOptionalValue\x12\x0f\n\x07present\x18\x01 \x01(\x08\x12\r\n\x05value\x18\x02 \x01(\x0c\"\x88\x03\n\x12MapListenerRequest\x12\x12\n\x05scope\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05\x63\x61\x63he\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x13\n\x06\x66ormat\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x0b\n\x03uid\x18\x04 \x01(\t\x12\x37\n\x04type\x18\x05 \x01(\x0e\x32).coherence.MapListenerRequest.RequestType\x12\x0e\n\x06\x66ilter\x18\x06 \x01(\x0c\x12\x0b\n\x03key\x18\x07 \x01(\x0c\x12\x0c\n\x04lite\x18\x08 \x01(\x08\x12\x11\n\tsubscribe\x18\t \x01(\x08\x12\x0f\n\x07priming\x18\n \x01(\x08\x12\x0f\n\x07trigger\x18\x0b \x01(\x0c\x12\x10\n\x08\x66ilterId\x18\x0c \x01(\x03\x12\x1c\n\x0fheartbeatMillis\x18\r \x01(\x03H\x03\x88\x01\x01\",\n\x0bRequestType\x12\x08\n\x04INIT\x10\x00\x12\x07\n\x03KEY\x10\x01\x12\n\n\x06\x46ILTER\x10\x02\x42\x08\n\x06_scopeB\x08\n\x06_cacheB\t\n\x07_formatB\x12\n\x10_heartbeatMillis\"\xb0\x03\n\x13MapListenerResponse\x12>\n\nsubscribed\x18\x01 \x01(\x0b\x32(.coherence.MapListenerSubscribedResponseH\x00\x12\x42\n\x0cunsubscribed\x18\x02 \x01(\x0b\x32*.coherence.MapListenerUnsubscribedResponseH\x00\x12,\n\x05\x65vent\x18\x03 \x01(\x0b\x32\x1b.coherence.MapEventResponseH\x00\x12\x34\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.coherence.MapListenerErrorResponseH\x00\x12\x36\n\tdestroyed\x18\x05 \x01(\x0b\x32!.coherence.CacheDestroyedResponseH\x00\x12\x36\n\ttruncated\x18\x06 \x01(\x0b\x32!.coherence.CacheTruncatedResponseH\x00\x12\x30\n\theartbeat\x18\x07 \x01(\x0b\x32\x1b.coherence.HeartbeatMessageH\x00\x42\x0f\n\rresponse_type\",\n\x1dMapListenerSubscribedResponse\x12\x0b\n\x03uid\x18\x01 \x01(\t\".\n\x1fMapListenerUnsubscribedResponse\x12\x0b\n\x03uid\x18\x01 \x01(\t\"6\n\x16\x43\x61\x63heDestroyedResponse\x12\x12\n\x05\x63\x61\x63he\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_cache\"6\n\x16\x43\x61\x63heTruncatedResponse\x12\x12\n\x05\x63\x61\x63he\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_cache\"U\n\x18MapListenerErrorResponse\x12\x0b\n\x03uid\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x0c\n\x04\x63ode\x18\x03 \x01(\x05\x12\r\n\x05stack\x18\x04 \x03(\t\"\xa6\x02\n\x10MapEventResponse\x12\n\n\x02id\x18\x01 \x01(\x05\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x10\n\x08newValue\x18\x03 \x01(\x0c\x12\x10\n\x08oldValue\x18\x04 \x01(\x0c\x12L\n\x13transformationState\x18\x05 \x01(\x0e\x32/.coherence.MapEventResponse.TransformationState\x12\x11\n\tfilterIds\x18\x06 \x03(\x03\x12\x11\n\tsynthetic\x18\x07 \x01(\x08\x12\x0f\n\x07priming\x18\x08 \x01(\x08\"P\n\x13TransformationState\x12\x15\n\x11NON_TRANSFORMABLE\x10\x00\x12\x11\n\rTRANSFORMABLE\x10\x01\x12\x0f\n\x0bTRANSFORMED\x10\x02\".\n\x10HeartbeatMessage\x12\x11\n\x04uuid\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x07\n\x05_uuidB/\n+com.oracle.coherence.grpc.messages.cache.v0P\x01\x62\x06proto3') - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\031com.oracle.coherence.grpcP\001' - _CLEARREQUEST._serialized_start=29 - _CLEARREQUEST._serialized_end=73 - _CONTAINSENTRYREQUEST._serialized_start=75 - _CONTAINSENTRYREQUEST._serialized_end=171 - _CONTAINSKEYREQUEST._serialized_start=173 - _CONTAINSKEYREQUEST._serialized_end=252 - _CONTAINSVALUEREQUEST._serialized_start=254 - _CONTAINSVALUEREQUEST._serialized_end=337 - _DESTROYREQUEST._serialized_start=339 - _DESTROYREQUEST._serialized_end=385 - _ISEMPTYREQUEST._serialized_start=387 - _ISEMPTYREQUEST._serialized_end=433 - _ISREADYREQUEST._serialized_start=435 - _ISREADYREQUEST._serialized_end=481 - _SIZEREQUEST._serialized_start=483 - _SIZEREQUEST._serialized_end=526 - _GETREQUEST._serialized_start=528 - _GETREQUEST._serialized_end=599 - _GETALLREQUEST._serialized_start=601 - _GETALLREQUEST._serialized_end=675 - _PUTREQUEST._serialized_start=677 - _PUTREQUEST._serialized_end=776 - _PUTALLREQUEST._serialized_start=778 - _PUTALLREQUEST._serialized_end=885 - _PUTIFABSENTREQUEST._serialized_start=887 - _PUTIFABSENTREQUEST._serialized_end=994 - _REMOVEREQUEST._serialized_start=996 - _REMOVEREQUEST._serialized_end=1070 - _REMOVEMAPPINGREQUEST._serialized_start=1072 - _REMOVEMAPPINGREQUEST._serialized_end=1168 - _REPLACEREQUEST._serialized_start=1170 - _REPLACEREQUEST._serialized_end=1260 - _REPLACEMAPPINGREQUEST._serialized_start=1262 - _REPLACEMAPPINGREQUEST._serialized_end=1385 - _PAGEREQUEST._serialized_start=1387 - _PAGEREQUEST._serialized_end=1462 - _ENTRYRESULT._serialized_start=1464 - _ENTRYRESULT._serialized_end=1521 - _ENTRY._serialized_start=1523 - _ENTRY._serialized_end=1558 - _TRUNCATEREQUEST._serialized_start=1560 - _TRUNCATEREQUEST._serialized_end=1607 - _ADDINDEXREQUEST._serialized_start=1609 - _ADDINDEXREQUEST._serialized_end=1727 - _REMOVEINDEXREQUEST._serialized_start=1729 - _REMOVEINDEXREQUEST._serialized_end=1814 - _AGGREGATEREQUEST._serialized_start=1816 - _AGGREGATEREQUEST._serialized_end=1930 - _INVOKEREQUEST._serialized_start=1932 - _INVOKEREQUEST._serialized_end=2025 - _INVOKEALLREQUEST._serialized_start=2027 - _INVOKEALLREQUEST._serialized_end=2140 - _ENTRYSETREQUEST._serialized_start=2142 - _ENTRYSETREQUEST._serialized_end=2241 - _KEYSETREQUEST._serialized_start=2243 - _KEYSETREQUEST._serialized_end=2320 - _VALUESREQUEST._serialized_start=2322 - _VALUESREQUEST._serialized_end=2419 - _OPTIONALVALUE._serialized_start=2421 - _OPTIONALVALUE._serialized_end=2468 - _MAPLISTENERREQUEST._serialized_start=2471 - _MAPLISTENERREQUEST._serialized_end=2767 - _MAPLISTENERREQUEST_REQUESTTYPE._serialized_start=2723 - _MAPLISTENERREQUEST_REQUESTTYPE._serialized_end=2767 - _MAPLISTENERRESPONSE._serialized_start=2770 - _MAPLISTENERRESPONSE._serialized_end=3152 - _MAPLISTENERSUBSCRIBEDRESPONSE._serialized_start=3154 - _MAPLISTENERSUBSCRIBEDRESPONSE._serialized_end=3198 - _MAPLISTENERUNSUBSCRIBEDRESPONSE._serialized_start=3200 - _MAPLISTENERUNSUBSCRIBEDRESPONSE._serialized_end=3246 - _CACHEDESTROYEDRESPONSE._serialized_start=3248 - _CACHEDESTROYEDRESPONSE._serialized_end=3287 - _CACHETRUNCATEDRESPONSE._serialized_start=3289 - _CACHETRUNCATEDRESPONSE._serialized_end=3328 - _MAPLISTENERERRORRESPONSE._serialized_start=3330 - _MAPLISTENERERRORRESPONSE._serialized_end=3415 - _MAPEVENTRESPONSE._serialized_start=3418 - _MAPEVENTRESPONSE._serialized_end=3712 - _MAPEVENTRESPONSE_TRANSFORMATIONSTATE._serialized_start=3632 - _MAPEVENTRESPONSE_TRANSFORMATIONSTATE._serialized_end=3712 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'messages_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n+com.oracle.coherence.grpc.messages.cache.v0P\001' + _globals['_CLEARREQUEST']._serialized_start=29 + _globals['_CLEARREQUEST']._serialized_end=103 + _globals['_CONTAINSENTRYREQUEST']._serialized_start=106 + _globals['_CONTAINSENTRYREQUEST']._serialized_end=248 + _globals['_CONTAINSKEYREQUEST']._serialized_start=250 + _globals['_CONTAINSKEYREQUEST']._serialized_end=375 + _globals['_CONTAINSVALUEREQUEST']._serialized_start=378 + _globals['_CONTAINSVALUEREQUEST']._serialized_end=507 + _globals['_DESTROYREQUEST']._serialized_start=509 + _globals['_DESTROYREQUEST']._serialized_end=585 + _globals['_ISEMPTYREQUEST']._serialized_start=587 + _globals['_ISEMPTYREQUEST']._serialized_end=663 + _globals['_ISREADYREQUEST']._serialized_start=665 + _globals['_ISREADYREQUEST']._serialized_end=741 + _globals['_SIZEREQUEST']._serialized_start=743 + _globals['_SIZEREQUEST']._serialized_end=816 + _globals['_GETREQUEST']._serialized_start=818 + _globals['_GETREQUEST']._serialized_end=935 + _globals['_GETALLREQUEST']._serialized_start=937 + _globals['_GETALLREQUEST']._serialized_end=1057 + _globals['_PUTREQUEST']._serialized_start=1060 + _globals['_PUTREQUEST']._serialized_end=1205 + _globals['_PUTALLREQUEST']._serialized_start=1208 + _globals['_PUTALLREQUEST']._serialized_end=1361 + _globals['_PUTIFABSENTREQUEST']._serialized_start=1364 + _globals['_PUTIFABSENTREQUEST']._serialized_end=1517 + _globals['_REMOVEREQUEST']._serialized_start=1519 + _globals['_REMOVEREQUEST']._serialized_end=1639 + _globals['_REMOVEMAPPINGREQUEST']._serialized_start=1642 + _globals['_REMOVEMAPPINGREQUEST']._serialized_end=1784 + _globals['_REPLACEREQUEST']._serialized_start=1787 + _globals['_REPLACEREQUEST']._serialized_end=1923 + _globals['_REPLACEMAPPINGREQUEST']._serialized_start=1926 + _globals['_REPLACEMAPPINGREQUEST']._serialized_end=2095 + _globals['_PAGEREQUEST']._serialized_start=2097 + _globals['_PAGEREQUEST']._serialized_end=2218 + _globals['_ENTRYRESULT']._serialized_start=2220 + _globals['_ENTRYRESULT']._serialized_end=2277 + _globals['_ENTRY']._serialized_start=2279 + _globals['_ENTRY']._serialized_end=2314 + _globals['_TRUNCATEREQUEST']._serialized_start=2316 + _globals['_TRUNCATEREQUEST']._serialized_end=2393 + _globals['_ADDINDEXREQUEST']._serialized_start=2396 + _globals['_ADDINDEXREQUEST']._serialized_end=2560 + _globals['_REMOVEINDEXREQUEST']._serialized_start=2563 + _globals['_REMOVEINDEXREQUEST']._serialized_end=2694 + _globals['_AGGREGATEREQUEST']._serialized_start=2697 + _globals['_AGGREGATEREQUEST']._serialized_end=2857 + _globals['_INVOKEREQUEST']._serialized_start=2860 + _globals['_INVOKEREQUEST']._serialized_end=2999 + _globals['_INVOKEALLREQUEST']._serialized_start=3002 + _globals['_INVOKEALLREQUEST']._serialized_end=3161 + _globals['_ENTRYSETREQUEST']._serialized_start=3164 + _globals['_ENTRYSETREQUEST']._serialized_end=3309 + _globals['_KEYSETREQUEST']._serialized_start=3311 + _globals['_KEYSETREQUEST']._serialized_end=3434 + _globals['_VALUESREQUEST']._serialized_start=3437 + _globals['_VALUESREQUEST']._serialized_end=3580 + _globals['_OPTIONALVALUE']._serialized_start=3582 + _globals['_OPTIONALVALUE']._serialized_end=3629 + _globals['_MAPLISTENERREQUEST']._serialized_start=3632 + _globals['_MAPLISTENERREQUEST']._serialized_end=4024 + _globals['_MAPLISTENERREQUEST_REQUESTTYPE']._serialized_start=3929 + _globals['_MAPLISTENERREQUEST_REQUESTTYPE']._serialized_end=3973 + _globals['_MAPLISTENERRESPONSE']._serialized_start=4027 + _globals['_MAPLISTENERRESPONSE']._serialized_end=4459 + _globals['_MAPLISTENERSUBSCRIBEDRESPONSE']._serialized_start=4461 + _globals['_MAPLISTENERSUBSCRIBEDRESPONSE']._serialized_end=4505 + _globals['_MAPLISTENERUNSUBSCRIBEDRESPONSE']._serialized_start=4507 + _globals['_MAPLISTENERUNSUBSCRIBEDRESPONSE']._serialized_end=4553 + _globals['_CACHEDESTROYEDRESPONSE']._serialized_start=4555 + _globals['_CACHEDESTROYEDRESPONSE']._serialized_end=4609 + _globals['_CACHETRUNCATEDRESPONSE']._serialized_start=4611 + _globals['_CACHETRUNCATEDRESPONSE']._serialized_end=4665 + _globals['_MAPLISTENERERRORRESPONSE']._serialized_start=4667 + _globals['_MAPLISTENERERRORRESPONSE']._serialized_end=4752 + _globals['_MAPEVENTRESPONSE']._serialized_start=4755 + _globals['_MAPEVENTRESPONSE']._serialized_end=5049 + _globals['_MAPEVENTRESPONSE_TRANSFORMATIONSTATE']._serialized_start=4969 + _globals['_MAPEVENTRESPONSE_TRANSFORMATIONSTATE']._serialized_end=5049 + _globals['_HEARTBEATMESSAGE']._serialized_start=5051 + _globals['_HEARTBEATMESSAGE']._serialized_end=5097 # @@protoc_insertion_point(module_scope) diff --git a/src/coherence/messages_pb2.pyi b/src/coherence/messages_pb2.pyi index 67ef945..5a31ea2 100644 --- a/src/coherence/messages_pb2.pyi +++ b/src/coherence/messages_pb2.pyi @@ -1,4 +1,3 @@ -# mypy: ignore-errors from google.protobuf.internal import containers as _containers from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper from google.protobuf import descriptor as _descriptor @@ -7,476 +6,492 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map DESCRIPTOR: _descriptor.FileDescriptor -class AddIndexRequest(_message.Message): - __slots__ = ["cache", "comparator", "extractor", "format", "scope", "sorted"] - CACHE_FIELD_NUMBER: _ClassVar[int] - COMPARATOR_FIELD_NUMBER: _ClassVar[int] - EXTRACTOR_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] +class ClearRequest(_message.Message): + __slots__ = ("scope", "cache") SCOPE_FIELD_NUMBER: _ClassVar[int] - SORTED_FIELD_NUMBER: _ClassVar[int] - cache: str - comparator: bytes - extractor: bytes - format: str - scope: str - sorted: bool - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., extractor: _Optional[bytes] = ..., sorted: bool = ..., comparator: _Optional[bytes] = ...) -> None: ... - -class AggregateRequest(_message.Message): - __slots__ = ["aggregator", "cache", "filter", "format", "keys", "scope"] - AGGREGATOR_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] - KEYS_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] - aggregator: bytes - cache: str - filter: bytes - format: str - keys: _containers.RepeatedScalarFieldContainer[bytes] scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., aggregator: _Optional[bytes] = ..., keys: _Optional[_Iterable[bytes]] = ..., filter: _Optional[bytes] = ...) -> None: ... - -class CacheDestroyedResponse(_message.Message): - __slots__ = ["cache"] - CACHE_FIELD_NUMBER: _ClassVar[int] - cache: str - def __init__(self, cache: _Optional[str] = ...) -> None: ... - -class CacheTruncatedResponse(_message.Message): - __slots__ = ["cache"] - CACHE_FIELD_NUMBER: _ClassVar[int] - cache: str - def __init__(self, cache: _Optional[str] = ...) -> None: ... - -class ClearRequest(_message.Message): - __slots__ = ["cache", "scope"] - CACHE_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] cache: str - scope: str def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... class ContainsEntryRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope", "value"] + __slots__ = ("scope", "cache", "format", "key", "value") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str key: bytes - scope: str value: bytes def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... class ContainsKeyRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope"] + __slots__ = ("scope", "cache", "format", "key") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str key: bytes - scope: str def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ...) -> None: ... class ContainsValueRequest(_message.Message): - __slots__ = ["cache", "format", "scope", "value"] + __slots__ = ("scope", "cache", "format", "value") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str - scope: str value: bytes def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., value: _Optional[bytes] = ...) -> None: ... class DestroyRequest(_message.Message): - __slots__ = ["cache", "scope"] - CACHE_FIELD_NUMBER: _ClassVar[int] + __slots__ = ("scope", "cache") SCOPE_FIELD_NUMBER: _ClassVar[int] + CACHE_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... + +class IsEmptyRequest(_message.Message): + __slots__ = ("scope", "cache") + SCOPE_FIELD_NUMBER: _ClassVar[int] + CACHE_FIELD_NUMBER: _ClassVar[int] scope: str + cache: str def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... -class Entry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: bytes - value: bytes - def __init__(self, key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... +class IsReadyRequest(_message.Message): + __slots__ = ("scope", "cache") + SCOPE_FIELD_NUMBER: _ClassVar[int] + CACHE_FIELD_NUMBER: _ClassVar[int] + scope: str + cache: str + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... -class EntryResult(_message.Message): - __slots__ = ["cookie", "key", "value"] - COOKIE_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - cookie: bytes - key: bytes - value: bytes - def __init__(self, key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., cookie: _Optional[bytes] = ...) -> None: ... +class SizeRequest(_message.Message): + __slots__ = ("scope", "cache") + SCOPE_FIELD_NUMBER: _ClassVar[int] + CACHE_FIELD_NUMBER: _ClassVar[int] + scope: str + cache: str + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... -class EntrySetRequest(_message.Message): - __slots__ = ["cache", "comparator", "filter", "format", "scope"] +class GetRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "key") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] - COMPARATOR_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str - comparator: bytes - filter: bytes format: str - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., filter: _Optional[bytes] = ..., comparator: _Optional[bytes] = ...) -> None: ... + key: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ...) -> None: ... class GetAllRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope"] + __slots__ = ("scope", "cache", "format", "key") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str key: _containers.RepeatedScalarFieldContainer[bytes] - scope: str def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[_Iterable[bytes]] = ...) -> None: ... -class GetRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope"] +class PutRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "key", "value", "ttl") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + TTL_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str key: bytes - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ...) -> None: ... + value: bytes + ttl: int + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., ttl: _Optional[int] = ...) -> None: ... -class InvokeAllRequest(_message.Message): - __slots__ = ["cache", "filter", "format", "keys", "processor", "scope"] +class PutAllRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "entry", "ttl") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - KEYS_FIELD_NUMBER: _ClassVar[int] - PROCESSOR_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + ENTRY_FIELD_NUMBER: _ClassVar[int] + TTL_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str - filter: bytes format: str - keys: _containers.RepeatedScalarFieldContainer[bytes] - processor: bytes - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., processor: _Optional[bytes] = ..., keys: _Optional[_Iterable[bytes]] = ..., filter: _Optional[bytes] = ...) -> None: ... + entry: _containers.RepeatedCompositeFieldContainer[Entry] + ttl: int + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., entry: _Optional[_Iterable[_Union[Entry, _Mapping]]] = ..., ttl: _Optional[int] = ...) -> None: ... -class InvokeRequest(_message.Message): - __slots__ = ["cache", "format", "key", "processor", "scope"] +class PutIfAbsentRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "key", "value", "ttl") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] - PROCESSOR_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + TTL_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str key: bytes - processor: bytes - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., processor: _Optional[bytes] = ..., key: _Optional[bytes] = ...) -> None: ... + value: bytes + ttl: int + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., ttl: _Optional[int] = ...) -> None: ... -class IsEmptyRequest(_message.Message): - __slots__ = ["cache", "scope"] - CACHE_FIELD_NUMBER: _ClassVar[int] +class RemoveRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "key") SCOPE_FIELD_NUMBER: _ClassVar[int] - cache: str + CACHE_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... + cache: str + format: str + key: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ...) -> None: ... -class IsReadyRequest(_message.Message): - __slots__ = ["cache", "scope"] - CACHE_FIELD_NUMBER: _ClassVar[int] +class RemoveMappingRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "key", "value") SCOPE_FIELD_NUMBER: _ClassVar[int] - cache: str + CACHE_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... + cache: str + format: str + key: bytes + value: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... -class KeySetRequest(_message.Message): - __slots__ = ["cache", "filter", "format", "scope"] +class ReplaceRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "key", "value") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str - filter: bytes format: str - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., filter: _Optional[bytes] = ...) -> None: ... + key: bytes + value: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... -class MapEventResponse(_message.Message): - __slots__ = ["filterIds", "id", "key", "newValue", "oldValue", "priming", "synthetic", "transformationState"] - class TransformationState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - FILTERIDS_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] +class ReplaceMappingRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "key", "previousValue", "newValue") + SCOPE_FIELD_NUMBER: _ClassVar[int] + CACHE_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] + PREVIOUSVALUE_FIELD_NUMBER: _ClassVar[int] NEWVALUE_FIELD_NUMBER: _ClassVar[int] - NON_TRANSFORMABLE: MapEventResponse.TransformationState - OLDVALUE_FIELD_NUMBER: _ClassVar[int] - PRIMING_FIELD_NUMBER: _ClassVar[int] - SYNTHETIC_FIELD_NUMBER: _ClassVar[int] - TRANSFORMABLE: MapEventResponse.TransformationState - TRANSFORMATIONSTATE_FIELD_NUMBER: _ClassVar[int] - TRANSFORMED: MapEventResponse.TransformationState - filterIds: _containers.RepeatedScalarFieldContainer[int] - id: int + scope: str + cache: str + format: str key: bytes + previousValue: bytes newValue: bytes - oldValue: bytes - priming: bool - synthetic: bool - transformationState: MapEventResponse.TransformationState - def __init__(self, id: _Optional[int] = ..., key: _Optional[bytes] = ..., newValue: _Optional[bytes] = ..., oldValue: _Optional[bytes] = ..., transformationState: _Optional[_Union[MapEventResponse.TransformationState, str]] = ..., filterIds: _Optional[_Iterable[int]] = ..., synthetic: bool = ..., priming: bool = ...) -> None: ... - -class MapListenerErrorResponse(_message.Message): - __slots__ = ["code", "message", "stack", "uid"] - CODE_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - STACK_FIELD_NUMBER: _ClassVar[int] - UID_FIELD_NUMBER: _ClassVar[int] - code: int - message: str - stack: _containers.RepeatedScalarFieldContainer[str] - uid: str - def __init__(self, uid: _Optional[str] = ..., message: _Optional[str] = ..., code: _Optional[int] = ..., stack: _Optional[_Iterable[str]] = ...) -> None: ... + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., previousValue: _Optional[bytes] = ..., newValue: _Optional[bytes] = ...) -> None: ... -class MapListenerRequest(_message.Message): - __slots__ = ["cache", "filter", "filterId", "format", "key", "lite", "priming", "scope", "subscribe", "trigger", "type", "uid"] - class RequestType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] +class PageRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "cookie") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] - FILTER: MapListenerRequest.RequestType - FILTERID_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - INIT: MapListenerRequest.RequestType - KEY: MapListenerRequest.RequestType - KEY_FIELD_NUMBER: _ClassVar[int] - LITE_FIELD_NUMBER: _ClassVar[int] - PRIMING_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] - SUBSCRIBE_FIELD_NUMBER: _ClassVar[int] - TRIGGER_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - UID_FIELD_NUMBER: _ClassVar[int] + COOKIE_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str - filter: bytes - filterId: int format: str - key: bytes - lite: bool - priming: bool - scope: str - subscribe: bool - trigger: bytes - type: MapListenerRequest.RequestType - uid: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., uid: _Optional[str] = ..., type: _Optional[_Union[MapListenerRequest.RequestType, str]] = ..., filter: _Optional[bytes] = ..., key: _Optional[bytes] = ..., lite: bool = ..., subscribe: bool = ..., priming: bool = ..., trigger: _Optional[bytes] = ..., filterId: _Optional[int] = ...) -> None: ... - -class MapListenerResponse(_message.Message): - __slots__ = ["destroyed", "error", "event", "subscribed", "truncated", "unsubscribed"] - DESTROYED_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - EVENT_FIELD_NUMBER: _ClassVar[int] - SUBSCRIBED_FIELD_NUMBER: _ClassVar[int] - TRUNCATED_FIELD_NUMBER: _ClassVar[int] - UNSUBSCRIBED_FIELD_NUMBER: _ClassVar[int] - destroyed: CacheDestroyedResponse - error: MapListenerErrorResponse - event: MapEventResponse - subscribed: MapListenerSubscribedResponse - truncated: CacheTruncatedResponse - unsubscribed: MapListenerUnsubscribedResponse - def __init__(self, subscribed: _Optional[_Union[MapListenerSubscribedResponse, _Mapping]] = ..., unsubscribed: _Optional[_Union[MapListenerUnsubscribedResponse, _Mapping]] = ..., event: _Optional[_Union[MapEventResponse, _Mapping]] = ..., error: _Optional[_Union[MapListenerErrorResponse, _Mapping]] = ..., destroyed: _Optional[_Union[CacheDestroyedResponse, _Mapping]] = ..., truncated: _Optional[_Union[CacheTruncatedResponse, _Mapping]] = ...) -> None: ... - -class MapListenerSubscribedResponse(_message.Message): - __slots__ = ["uid"] - UID_FIELD_NUMBER: _ClassVar[int] - uid: str - def __init__(self, uid: _Optional[str] = ...) -> None: ... + cookie: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., cookie: _Optional[bytes] = ...) -> None: ... -class MapListenerUnsubscribedResponse(_message.Message): - __slots__ = ["uid"] - UID_FIELD_NUMBER: _ClassVar[int] - uid: str - def __init__(self, uid: _Optional[str] = ...) -> None: ... +class EntryResult(_message.Message): + __slots__ = ("key", "value", "cookie") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + COOKIE_FIELD_NUMBER: _ClassVar[int] + key: bytes + value: bytes + cookie: bytes + def __init__(self, key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., cookie: _Optional[bytes] = ...) -> None: ... -class OptionalValue(_message.Message): - __slots__ = ["present", "value"] - PRESENT_FIELD_NUMBER: _ClassVar[int] +class Entry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] VALUE_FIELD_NUMBER: _ClassVar[int] - present: bool + key: bytes value: bytes - def __init__(self, present: bool = ..., value: _Optional[bytes] = ...) -> None: ... + def __init__(self, key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... -class PageRequest(_message.Message): - __slots__ = ["cache", "cookie", "format", "scope"] +class TruncateRequest(_message.Message): + __slots__ = ("scope", "cache") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] - COOKIE_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] + scope: str + cache: str + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... + +class AddIndexRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "extractor", "sorted", "comparator") SCOPE_FIELD_NUMBER: _ClassVar[int] + CACHE_FIELD_NUMBER: _ClassVar[int] + FORMAT_FIELD_NUMBER: _ClassVar[int] + EXTRACTOR_FIELD_NUMBER: _ClassVar[int] + SORTED_FIELD_NUMBER: _ClassVar[int] + COMPARATOR_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str - cookie: bytes format: str - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., cookie: _Optional[bytes] = ...) -> None: ... + extractor: bytes + sorted: bool + comparator: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., extractor: _Optional[bytes] = ..., sorted: bool = ..., comparator: _Optional[bytes] = ...) -> None: ... -class PutAllRequest(_message.Message): - __slots__ = ["cache", "entry", "format", "scope", "ttl"] +class RemoveIndexRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "extractor") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] - ENTRY_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] - TTL_FIELD_NUMBER: _ClassVar[int] + EXTRACTOR_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str - entry: _containers.RepeatedCompositeFieldContainer[Entry] format: str - scope: str - ttl: int - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., entry: _Optional[_Iterable[_Union[Entry, _Mapping]]] = ..., ttl: _Optional[int] = ...) -> None: ... + extractor: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., extractor: _Optional[bytes] = ...) -> None: ... -class PutIfAbsentRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope", "ttl", "value"] +class AggregateRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "aggregator", "keys", "filter") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] - TTL_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] + AGGREGATOR_FIELD_NUMBER: _ClassVar[int] + KEYS_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str - key: bytes - scope: str - ttl: int - value: bytes - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., ttl: _Optional[int] = ...) -> None: ... + aggregator: bytes + keys: _containers.RepeatedScalarFieldContainer[bytes] + filter: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., aggregator: _Optional[bytes] = ..., keys: _Optional[_Iterable[bytes]] = ..., filter: _Optional[bytes] = ...) -> None: ... -class PutRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope", "ttl", "value"] +class InvokeRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "processor", "key") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] + PROCESSOR_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] - TTL_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str + processor: bytes key: bytes - scope: str - ttl: int - value: bytes - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ..., ttl: _Optional[int] = ...) -> None: ... + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., processor: _Optional[bytes] = ..., key: _Optional[bytes] = ...) -> None: ... -class RemoveIndexRequest(_message.Message): - __slots__ = ["cache", "extractor", "format", "scope"] +class InvokeAllRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "processor", "keys", "filter") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] - EXTRACTOR_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + PROCESSOR_FIELD_NUMBER: _ClassVar[int] + KEYS_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str - extractor: bytes format: str - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., extractor: _Optional[bytes] = ...) -> None: ... + processor: bytes + keys: _containers.RepeatedScalarFieldContainer[bytes] + filter: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., processor: _Optional[bytes] = ..., keys: _Optional[_Iterable[bytes]] = ..., filter: _Optional[bytes] = ...) -> None: ... -class RemoveMappingRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope", "value"] +class EntrySetRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "filter", "comparator") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] + COMPARATOR_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str - key: bytes - scope: str - value: bytes - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... + filter: bytes + comparator: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., filter: _Optional[bytes] = ..., comparator: _Optional[bytes] = ...) -> None: ... -class RemoveRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope"] +class KeySetRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "filter") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str - key: bytes - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ...) -> None: ... + filter: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., filter: _Optional[bytes] = ...) -> None: ... -class ReplaceMappingRequest(_message.Message): - __slots__ = ["cache", "format", "key", "newValue", "previousValue", "scope"] +class ValuesRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "filter", "comparator") + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - NEWVALUE_FIELD_NUMBER: _ClassVar[int] - PREVIOUSVALUE_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] + COMPARATOR_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str - key: bytes - newValue: bytes - previousValue: bytes - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., previousValue: _Optional[bytes] = ..., newValue: _Optional[bytes] = ...) -> None: ... + filter: bytes + comparator: bytes + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., filter: _Optional[bytes] = ..., comparator: _Optional[bytes] = ...) -> None: ... -class ReplaceRequest(_message.Message): - __slots__ = ["cache", "format", "key", "scope", "value"] +class OptionalValue(_message.Message): + __slots__ = ("present", "value") + PRESENT_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + present: bool + value: bytes + def __init__(self, present: bool = ..., value: _Optional[bytes] = ...) -> None: ... + +class MapListenerRequest(_message.Message): + __slots__ = ("scope", "cache", "format", "uid", "type", "filter", "key", "lite", "subscribe", "priming", "trigger", "filterId", "heartbeatMillis") + class RequestType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + INIT: _ClassVar[MapListenerRequest.RequestType] + KEY: _ClassVar[MapListenerRequest.RequestType] + FILTER: _ClassVar[MapListenerRequest.RequestType] + INIT: MapListenerRequest.RequestType + KEY: MapListenerRequest.RequestType + FILTER: MapListenerRequest.RequestType + SCOPE_FIELD_NUMBER: _ClassVar[int] CACHE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] + UID_FIELD_NUMBER: _ClassVar[int] + TYPE_FIELD_NUMBER: _ClassVar[int] + FILTER_FIELD_NUMBER: _ClassVar[int] KEY_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] + LITE_FIELD_NUMBER: _ClassVar[int] + SUBSCRIBE_FIELD_NUMBER: _ClassVar[int] + PRIMING_FIELD_NUMBER: _ClassVar[int] + TRIGGER_FIELD_NUMBER: _ClassVar[int] + FILTERID_FIELD_NUMBER: _ClassVar[int] + HEARTBEATMILLIS_FIELD_NUMBER: _ClassVar[int] + scope: str cache: str format: str + uid: str + type: MapListenerRequest.RequestType + filter: bytes key: bytes - scope: str - value: bytes - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., key: _Optional[bytes] = ..., value: _Optional[bytes] = ...) -> None: ... + lite: bool + subscribe: bool + priming: bool + trigger: bytes + filterId: int + heartbeatMillis: int + def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., uid: _Optional[str] = ..., type: _Optional[_Union[MapListenerRequest.RequestType, str]] = ..., filter: _Optional[bytes] = ..., key: _Optional[bytes] = ..., lite: bool = ..., subscribe: bool = ..., priming: bool = ..., trigger: _Optional[bytes] = ..., filterId: _Optional[int] = ..., heartbeatMillis: _Optional[int] = ...) -> None: ... -class SizeRequest(_message.Message): - __slots__ = ["cache", "scope"] - CACHE_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] - cache: str - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... +class MapListenerResponse(_message.Message): + __slots__ = ("subscribed", "unsubscribed", "event", "error", "destroyed", "truncated", "heartbeat") + SUBSCRIBED_FIELD_NUMBER: _ClassVar[int] + UNSUBSCRIBED_FIELD_NUMBER: _ClassVar[int] + EVENT_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + DESTROYED_FIELD_NUMBER: _ClassVar[int] + TRUNCATED_FIELD_NUMBER: _ClassVar[int] + HEARTBEAT_FIELD_NUMBER: _ClassVar[int] + subscribed: MapListenerSubscribedResponse + unsubscribed: MapListenerUnsubscribedResponse + event: MapEventResponse + error: MapListenerErrorResponse + destroyed: CacheDestroyedResponse + truncated: CacheTruncatedResponse + heartbeat: HeartbeatMessage + def __init__(self, subscribed: _Optional[_Union[MapListenerSubscribedResponse, _Mapping]] = ..., unsubscribed: _Optional[_Union[MapListenerUnsubscribedResponse, _Mapping]] = ..., event: _Optional[_Union[MapEventResponse, _Mapping]] = ..., error: _Optional[_Union[MapListenerErrorResponse, _Mapping]] = ..., destroyed: _Optional[_Union[CacheDestroyedResponse, _Mapping]] = ..., truncated: _Optional[_Union[CacheTruncatedResponse, _Mapping]] = ..., heartbeat: _Optional[_Union[HeartbeatMessage, _Mapping]] = ...) -> None: ... -class TruncateRequest(_message.Message): - __slots__ = ["cache", "scope"] +class MapListenerSubscribedResponse(_message.Message): + __slots__ = ("uid",) + UID_FIELD_NUMBER: _ClassVar[int] + uid: str + def __init__(self, uid: _Optional[str] = ...) -> None: ... + +class MapListenerUnsubscribedResponse(_message.Message): + __slots__ = ("uid",) + UID_FIELD_NUMBER: _ClassVar[int] + uid: str + def __init__(self, uid: _Optional[str] = ...) -> None: ... + +class CacheDestroyedResponse(_message.Message): + __slots__ = ("cache",) CACHE_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] cache: str - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ...) -> None: ... + def __init__(self, cache: _Optional[str] = ...) -> None: ... -class ValuesRequest(_message.Message): - __slots__ = ["cache", "comparator", "filter", "format", "scope"] +class CacheTruncatedResponse(_message.Message): + __slots__ = ("cache",) CACHE_FIELD_NUMBER: _ClassVar[int] - COMPARATOR_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] cache: str - comparator: bytes - filter: bytes - format: str - scope: str - def __init__(self, scope: _Optional[str] = ..., cache: _Optional[str] = ..., format: _Optional[str] = ..., filter: _Optional[bytes] = ..., comparator: _Optional[bytes] = ...) -> None: ... + def __init__(self, cache: _Optional[str] = ...) -> None: ... + +class MapListenerErrorResponse(_message.Message): + __slots__ = ("uid", "message", "code", "stack") + UID_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + CODE_FIELD_NUMBER: _ClassVar[int] + STACK_FIELD_NUMBER: _ClassVar[int] + uid: str + message: str + code: int + stack: _containers.RepeatedScalarFieldContainer[str] + def __init__(self, uid: _Optional[str] = ..., message: _Optional[str] = ..., code: _Optional[int] = ..., stack: _Optional[_Iterable[str]] = ...) -> None: ... + +class MapEventResponse(_message.Message): + __slots__ = ("id", "key", "newValue", "oldValue", "transformationState", "filterIds", "synthetic", "priming") + class TransformationState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): + __slots__ = () + NON_TRANSFORMABLE: _ClassVar[MapEventResponse.TransformationState] + TRANSFORMABLE: _ClassVar[MapEventResponse.TransformationState] + TRANSFORMED: _ClassVar[MapEventResponse.TransformationState] + NON_TRANSFORMABLE: MapEventResponse.TransformationState + TRANSFORMABLE: MapEventResponse.TransformationState + TRANSFORMED: MapEventResponse.TransformationState + ID_FIELD_NUMBER: _ClassVar[int] + KEY_FIELD_NUMBER: _ClassVar[int] + NEWVALUE_FIELD_NUMBER: _ClassVar[int] + OLDVALUE_FIELD_NUMBER: _ClassVar[int] + TRANSFORMATIONSTATE_FIELD_NUMBER: _ClassVar[int] + FILTERIDS_FIELD_NUMBER: _ClassVar[int] + SYNTHETIC_FIELD_NUMBER: _ClassVar[int] + PRIMING_FIELD_NUMBER: _ClassVar[int] + id: int + key: bytes + newValue: bytes + oldValue: bytes + transformationState: MapEventResponse.TransformationState + filterIds: _containers.RepeatedScalarFieldContainer[int] + synthetic: bool + priming: bool + def __init__(self, id: _Optional[int] = ..., key: _Optional[bytes] = ..., newValue: _Optional[bytes] = ..., oldValue: _Optional[bytes] = ..., transformationState: _Optional[_Union[MapEventResponse.TransformationState, str]] = ..., filterIds: _Optional[_Iterable[int]] = ..., synthetic: bool = ..., priming: bool = ...) -> None: ... + +class HeartbeatMessage(_message.Message): + __slots__ = ("uuid",) + UUID_FIELD_NUMBER: _ClassVar[int] + uuid: bytes + def __init__(self, uuid: _Optional[bytes] = ...) -> None: ... diff --git a/src/coherence/messages_pb2_grpc.py b/src/coherence/messages_pb2_grpc.py index 2daafff..d381528 100644 --- a/src/coherence/messages_pb2_grpc.py +++ b/src/coherence/messages_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.71.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in messages_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/src/coherence/proxy_service_messages_v1_pb2.py b/src/coherence/proxy_service_messages_v1_pb2.py index 115d0f8..46342cb 100644 --- a/src/coherence/proxy_service_messages_v1_pb2.py +++ b/src/coherence/proxy_service_messages_v1_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: proxy_service_messages_v1.proto +# Protobuf Python Version: 5.29.0 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'proxy_service_messages_v1.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,20 +26,30 @@ from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fproxy_service_messages_v1.proto\x12\x12\x63oherence.proxy.v1\x1a\x18\x63ommon_messages_v1.proto\x1a\x19google/protobuf/any.proto\"\xbb\x01\n\x0cProxyRequest\x12\n\n\x02id\x18\x01 \x01(\x03\x12/\n\x04init\x18\x03 \x01(\x0b\x32\x1f.coherence.proxy.v1.InitRequestH\x00\x12\'\n\x07message\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12:\n\theartbeat\x18\x05 \x01(\x0b\x32%.coherence.common.v1.HeartbeatMessageH\x00\x42\t\n\x07request\"\xa5\x02\n\rProxyResponse\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x30\n\x04init\x18\x04 \x01(\x0b\x32 .coherence.proxy.v1.InitResponseH\x00\x12\'\n\x07message\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x32\n\x05\x65rror\x18\x06 \x01(\x0b\x32!.coherence.common.v1.ErrorMessageH\x00\x12\x31\n\x08\x63omplete\x18\x07 \x01(\x0b\x32\x1d.coherence.common.v1.CompleteH\x00\x12:\n\theartbeat\x18\x08 \x01(\x0b\x32%.coherence.common.v1.HeartbeatMessageH\x00\x42\n\n\x08response\"\xc7\x01\n\x0bInitRequest\x12\r\n\x05scope\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x10\n\x08protocol\x18\x04 \x01(\t\x12\x17\n\x0fprotocolVersion\x18\x05 \x01(\x05\x12 \n\x18supportedProtocolVersion\x18\x06 \x01(\x05\x12\x16\n\theartbeat\x18\x07 \x01(\x03H\x00\x88\x01\x01\x12\x17\n\nclientUuid\x18\x08 \x01(\x0cH\x01\x88\x01\x01\x42\x0c\n\n_heartbeatB\r\n\x0b_clientUuid\"\x8e\x01\n\x0cInitResponse\x12\x0c\n\x04uuid\x18\x01 \x01(\x0c\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x16\n\x0e\x65ncodedVersion\x18\x03 \x01(\x05\x12\x17\n\x0fprotocolVersion\x18\x04 \x01(\x05\x12\x15\n\rproxyMemberId\x18\x05 \x01(\x05\x12\x17\n\x0fproxyMemberUuid\x18\x06 \x01(\x0c\x42/\n+com.oracle.coherence.grpc.messages.proxy.v1P\x01\x62\x06proto3') - -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proxy_service_messages_v1_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fproxy_service_messages_v1.proto\x12\x12\x63oherence.proxy.v1\x1a\x18\x63ommon_messages_v1.proto\x1a\x19google/protobuf/any.proto\"\xc1\x02\n\x0cProxyRequest\x12\n\n\x02id\x18\x01 \x01(\x03\x12/\n\x04init\x18\x03 \x01(\x0b\x32\x1f.coherence.proxy.v1.InitRequestH\x00\x12\'\n\x07message\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12:\n\theartbeat\x18\x05 \x01(\x0b\x32%.coherence.common.v1.HeartbeatMessageH\x00\x12>\n\x07\x63ontext\x18\x06 \x03(\x0b\x32-.coherence.proxy.v1.ProxyRequest.ContextEntry\x1a\x44\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x38\x01\x42\t\n\x07request\"\xac\x03\n\rProxyResponse\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x30\n\x04init\x18\x04 \x01(\x0b\x32 .coherence.proxy.v1.InitResponseH\x00\x12\'\n\x07message\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x12\x32\n\x05\x65rror\x18\x06 \x01(\x0b\x32!.coherence.common.v1.ErrorMessageH\x00\x12\x31\n\x08\x63omplete\x18\x07 \x01(\x0b\x32\x1d.coherence.common.v1.CompleteH\x00\x12:\n\theartbeat\x18\x08 \x01(\x0b\x32%.coherence.common.v1.HeartbeatMessageH\x00\x12?\n\x07\x63ontext\x18\t \x03(\x0b\x32..coherence.proxy.v1.ProxyResponse.ContextEntry\x1a\x44\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any:\x02\x38\x01\x42\n\n\x08response\"\x95\x02\n\x0bInitRequest\x12\r\n\x05scope\x18\x02 \x01(\t\x12\x0e\n\x06\x66ormat\x18\x03 \x01(\t\x12\x10\n\x08protocol\x18\x04 \x01(\t\x12\x17\n\x0fprotocolVersion\x18\x05 \x01(\x05\x12 \n\x18supportedProtocolVersion\x18\x06 \x01(\x05\x12\x16\n\theartbeat\x18\x07 \x01(\x03H\x00\x88\x01\x01\x12\x17\n\nclientUuid\x18\x08 \x01(\x0cH\x01\x88\x01\x01\x12?\n\x08identity\x18\t \x01(\x0b\x32(.coherence.proxy.v1.ClientMemberIdentityH\x02\x88\x01\x01\x42\x0c\n\n_heartbeatB\r\n\x0b_clientUuidB\x0b\n\t_identity\"\x8e\x01\n\x0cInitResponse\x12\x0c\n\x04uuid\x18\x01 \x01(\x0c\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x16\n\x0e\x65ncodedVersion\x18\x03 \x01(\x05\x12\x17\n\x0fprotocolVersion\x18\x04 \x01(\x05\x12\x15\n\rproxyMemberId\x18\x05 \x01(\x05\x12\x17\n\x0fproxyMemberUuid\x18\x06 \x01(\x0c\"\xcd\x02\n\x14\x43lientMemberIdentity\x12\x18\n\x0b\x63lusterName\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x11\n\tmachineId\x18\x02 \x01(\x05\x12\x18\n\x0bmachineName\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x17\n\nmemberName\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x10\n\x08priority\x18\x05 \x01(\x05\x12\x18\n\x0bprocessName\x18\x06 \x01(\tH\x03\x88\x01\x01\x12\x15\n\x08rackName\x18\x07 \x01(\tH\x04\x88\x01\x01\x12\x15\n\x08siteName\x18\x08 \x01(\tH\x05\x88\x01\x01\x12\x15\n\x08roleName\x18\t \x01(\tH\x06\x88\x01\x01\x42\x0e\n\x0c_clusterNameB\x0e\n\x0c_machineNameB\r\n\x0b_memberNameB\x0e\n\x0c_processNameB\x0b\n\t_rackNameB\x0b\n\t_siteNameB\x0b\n\t_roleNameB/\n+com.oracle.coherence.grpc.messages.proxy.v1P\x01\x62\x06proto3') - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n+com.oracle.coherence.grpc.messages.proxy.v1P\001' - _PROXYREQUEST._serialized_start=109 - _PROXYREQUEST._serialized_end=296 - _PROXYRESPONSE._serialized_start=299 - _PROXYRESPONSE._serialized_end=592 - _INITREQUEST._serialized_start=595 - _INITREQUEST._serialized_end=794 - _INITRESPONSE._serialized_start=797 - _INITRESPONSE._serialized_end=939 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proxy_service_messages_v1_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n+com.oracle.coherence.grpc.messages.proxy.v1P\001' + _globals['_PROXYREQUEST_CONTEXTENTRY']._loaded_options = None + _globals['_PROXYREQUEST_CONTEXTENTRY']._serialized_options = b'8\001' + _globals['_PROXYRESPONSE_CONTEXTENTRY']._loaded_options = None + _globals['_PROXYRESPONSE_CONTEXTENTRY']._serialized_options = b'8\001' + _globals['_PROXYREQUEST']._serialized_start=109 + _globals['_PROXYREQUEST']._serialized_end=430 + _globals['_PROXYREQUEST_CONTEXTENTRY']._serialized_start=351 + _globals['_PROXYREQUEST_CONTEXTENTRY']._serialized_end=419 + _globals['_PROXYRESPONSE']._serialized_start=433 + _globals['_PROXYRESPONSE']._serialized_end=861 + _globals['_PROXYRESPONSE_CONTEXTENTRY']._serialized_start=351 + _globals['_PROXYRESPONSE_CONTEXTENTRY']._serialized_end=419 + _globals['_INITREQUEST']._serialized_start=864 + _globals['_INITREQUEST']._serialized_end=1141 + _globals['_INITRESPONSE']._serialized_start=1144 + _globals['_INITRESPONSE']._serialized_end=1286 + _globals['_CLIENTMEMBERIDENTITY']._serialized_start=1289 + _globals['_CLIENTMEMBERIDENTITY']._serialized_end=1622 # @@protoc_insertion_point(module_scope) diff --git a/src/coherence/proxy_service_messages_v1_pb2.pyi b/src/coherence/proxy_service_messages_v1_pb2.pyi index ed1b94d..62a3ccc 100644 --- a/src/coherence/proxy_service_messages_v1_pb2.pyi +++ b/src/coherence/proxy_service_messages_v1_pb2.pyi @@ -1,70 +1,112 @@ -# mypy: ignore-errors import common_messages_v1_pb2 as _common_messages_v1_pb2 from google.protobuf import any_pb2 as _any_pb2 +from google.protobuf.internal import containers as _containers from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union DESCRIPTOR: _descriptor.FileDescriptor +class ProxyRequest(_message.Message): + __slots__ = ("id", "init", "message", "heartbeat", "context") + class ContextEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _any_pb2.Any + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... + ID_FIELD_NUMBER: _ClassVar[int] + INIT_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + HEARTBEAT_FIELD_NUMBER: _ClassVar[int] + CONTEXT_FIELD_NUMBER: _ClassVar[int] + id: int + init: InitRequest + message: _any_pb2.Any + heartbeat: _common_messages_v1_pb2.HeartbeatMessage + context: _containers.MessageMap[str, _any_pb2.Any] + def __init__(self, id: _Optional[int] = ..., init: _Optional[_Union[InitRequest, _Mapping]] = ..., message: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., heartbeat: _Optional[_Union[_common_messages_v1_pb2.HeartbeatMessage, _Mapping]] = ..., context: _Optional[_Mapping[str, _any_pb2.Any]] = ...) -> None: ... + +class ProxyResponse(_message.Message): + __slots__ = ("id", "init", "message", "error", "complete", "heartbeat", "context") + class ContextEntry(_message.Message): + __slots__ = ("key", "value") + KEY_FIELD_NUMBER: _ClassVar[int] + VALUE_FIELD_NUMBER: _ClassVar[int] + key: str + value: _any_pb2.Any + def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... + ID_FIELD_NUMBER: _ClassVar[int] + INIT_FIELD_NUMBER: _ClassVar[int] + MESSAGE_FIELD_NUMBER: _ClassVar[int] + ERROR_FIELD_NUMBER: _ClassVar[int] + COMPLETE_FIELD_NUMBER: _ClassVar[int] + HEARTBEAT_FIELD_NUMBER: _ClassVar[int] + CONTEXT_FIELD_NUMBER: _ClassVar[int] + id: int + init: InitResponse + message: _any_pb2.Any + error: _common_messages_v1_pb2.ErrorMessage + complete: _common_messages_v1_pb2.Complete + heartbeat: _common_messages_v1_pb2.HeartbeatMessage + context: _containers.MessageMap[str, _any_pb2.Any] + def __init__(self, id: _Optional[int] = ..., init: _Optional[_Union[InitResponse, _Mapping]] = ..., message: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., error: _Optional[_Union[_common_messages_v1_pb2.ErrorMessage, _Mapping]] = ..., complete: _Optional[_Union[_common_messages_v1_pb2.Complete, _Mapping]] = ..., heartbeat: _Optional[_Union[_common_messages_v1_pb2.HeartbeatMessage, _Mapping]] = ..., context: _Optional[_Mapping[str, _any_pb2.Any]] = ...) -> None: ... + class InitRequest(_message.Message): - __slots__ = ["clientUuid", "format", "heartbeat", "protocol", "protocolVersion", "scope", "supportedProtocolVersion"] - CLIENTUUID_FIELD_NUMBER: _ClassVar[int] + __slots__ = ("scope", "format", "protocol", "protocolVersion", "supportedProtocolVersion", "heartbeat", "clientUuid", "identity") + SCOPE_FIELD_NUMBER: _ClassVar[int] FORMAT_FIELD_NUMBER: _ClassVar[int] - HEARTBEAT_FIELD_NUMBER: _ClassVar[int] - PROTOCOLVERSION_FIELD_NUMBER: _ClassVar[int] PROTOCOL_FIELD_NUMBER: _ClassVar[int] - SCOPE_FIELD_NUMBER: _ClassVar[int] + PROTOCOLVERSION_FIELD_NUMBER: _ClassVar[int] SUPPORTEDPROTOCOLVERSION_FIELD_NUMBER: _ClassVar[int] - clientUuid: bytes + HEARTBEAT_FIELD_NUMBER: _ClassVar[int] + CLIENTUUID_FIELD_NUMBER: _ClassVar[int] + IDENTITY_FIELD_NUMBER: _ClassVar[int] + scope: str format: str - heartbeat: int protocol: str protocolVersion: int - scope: str supportedProtocolVersion: int - def __init__(self, scope: _Optional[str] = ..., format: _Optional[str] = ..., protocol: _Optional[str] = ..., protocolVersion: _Optional[int] = ..., supportedProtocolVersion: _Optional[int] = ..., heartbeat: _Optional[int] = ..., clientUuid: _Optional[bytes] = ...) -> None: ... + heartbeat: int + clientUuid: bytes + identity: ClientMemberIdentity + def __init__(self, scope: _Optional[str] = ..., format: _Optional[str] = ..., protocol: _Optional[str] = ..., protocolVersion: _Optional[int] = ..., supportedProtocolVersion: _Optional[int] = ..., heartbeat: _Optional[int] = ..., clientUuid: _Optional[bytes] = ..., identity: _Optional[_Union[ClientMemberIdentity, _Mapping]] = ...) -> None: ... class InitResponse(_message.Message): - __slots__ = ["encodedVersion", "protocolVersion", "proxyMemberId", "proxyMemberUuid", "uuid", "version"] + __slots__ = ("uuid", "version", "encodedVersion", "protocolVersion", "proxyMemberId", "proxyMemberUuid") + UUID_FIELD_NUMBER: _ClassVar[int] + VERSION_FIELD_NUMBER: _ClassVar[int] ENCODEDVERSION_FIELD_NUMBER: _ClassVar[int] PROTOCOLVERSION_FIELD_NUMBER: _ClassVar[int] PROXYMEMBERID_FIELD_NUMBER: _ClassVar[int] PROXYMEMBERUUID_FIELD_NUMBER: _ClassVar[int] - UUID_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] + uuid: bytes + version: str encodedVersion: int protocolVersion: int proxyMemberId: int proxyMemberUuid: bytes - uuid: bytes - version: str def __init__(self, uuid: _Optional[bytes] = ..., version: _Optional[str] = ..., encodedVersion: _Optional[int] = ..., protocolVersion: _Optional[int] = ..., proxyMemberId: _Optional[int] = ..., proxyMemberUuid: _Optional[bytes] = ...) -> None: ... -class ProxyRequest(_message.Message): - __slots__ = ["heartbeat", "id", "init", "message"] - HEARTBEAT_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - INIT_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - heartbeat: _common_messages_v1_pb2.HeartbeatMessage - id: int - init: InitRequest - message: _any_pb2.Any - def __init__(self, id: _Optional[int] = ..., init: _Optional[_Union[InitRequest, _Mapping]] = ..., message: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., heartbeat: _Optional[_Union[_common_messages_v1_pb2.HeartbeatMessage, _Mapping]] = ...) -> None: ... - -class ProxyResponse(_message.Message): - __slots__ = ["complete", "error", "heartbeat", "id", "init", "message"] - COMPLETE_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - HEARTBEAT_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - INIT_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - complete: _common_messages_v1_pb2.Complete - error: _common_messages_v1_pb2.ErrorMessage - heartbeat: _common_messages_v1_pb2.HeartbeatMessage - id: int - init: InitResponse - message: _any_pb2.Any - def __init__(self, id: _Optional[int] = ..., init: _Optional[_Union[InitResponse, _Mapping]] = ..., message: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., error: _Optional[_Union[_common_messages_v1_pb2.ErrorMessage, _Mapping]] = ..., complete: _Optional[_Union[_common_messages_v1_pb2.Complete, _Mapping]] = ..., heartbeat: _Optional[_Union[_common_messages_v1_pb2.HeartbeatMessage, _Mapping]] = ...) -> None: ... +class ClientMemberIdentity(_message.Message): + __slots__ = ("clusterName", "machineId", "machineName", "memberName", "priority", "processName", "rackName", "siteName", "roleName") + CLUSTERNAME_FIELD_NUMBER: _ClassVar[int] + MACHINEID_FIELD_NUMBER: _ClassVar[int] + MACHINENAME_FIELD_NUMBER: _ClassVar[int] + MEMBERNAME_FIELD_NUMBER: _ClassVar[int] + PRIORITY_FIELD_NUMBER: _ClassVar[int] + PROCESSNAME_FIELD_NUMBER: _ClassVar[int] + RACKNAME_FIELD_NUMBER: _ClassVar[int] + SITENAME_FIELD_NUMBER: _ClassVar[int] + ROLENAME_FIELD_NUMBER: _ClassVar[int] + clusterName: str + machineId: int + machineName: str + memberName: str + priority: int + processName: str + rackName: str + siteName: str + roleName: str + def __init__(self, clusterName: _Optional[str] = ..., machineId: _Optional[int] = ..., machineName: _Optional[str] = ..., memberName: _Optional[str] = ..., priority: _Optional[int] = ..., processName: _Optional[str] = ..., rackName: _Optional[str] = ..., siteName: _Optional[str] = ..., roleName: _Optional[str] = ...) -> None: ... diff --git a/src/coherence/proxy_service_messages_v1_pb2_grpc.py b/src/coherence/proxy_service_messages_v1_pb2_grpc.py index 2daafff..a93b396 100644 --- a/src/coherence/proxy_service_messages_v1_pb2_grpc.py +++ b/src/coherence/proxy_service_messages_v1_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.71.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in proxy_service_messages_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/src/coherence/proxy_service_v1_pb2.py b/src/coherence/proxy_service_v1_pb2.py index 9817094..32b6ff9 100644 --- a/src/coherence/proxy_service_v1_pb2.py +++ b/src/coherence/proxy_service_v1_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: proxy_service_v1.proto +# Protobuf Python Version: 5.29.0 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'proxy_service_v1.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,12 +29,12 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16proxy_service_v1.proto\x12\x12\x63oherence.proxy.v1\x1a\x1fproxy_service_messages_v1.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/wrappers.proto2g\n\x0cProxyService\x12W\n\nsubChannel\x12 .coherence.proxy.v1.ProxyRequest\x1a!.coherence.proxy.v1.ProxyResponse\"\x00(\x01\x30\x01\x42/\n+com.oracle.coherence.grpc.services.proxy.v1P\x01\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proxy_service_v1_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n+com.oracle.coherence.grpc.services.proxy.v1P\001' - _PROXYSERVICE._serialized_start=140 - _PROXYSERVICE._serialized_end=243 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proxy_service_v1_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n+com.oracle.coherence.grpc.services.proxy.v1P\001' + _globals['_PROXYSERVICE']._serialized_start=140 + _globals['_PROXYSERVICE']._serialized_end=243 # @@protoc_insertion_point(module_scope) diff --git a/src/coherence/proxy_service_v1_pb2.pyi b/src/coherence/proxy_service_v1_pb2.pyi index 405eb1e..ef376c0 100644 --- a/src/coherence/proxy_service_v1_pb2.pyi +++ b/src/coherence/proxy_service_v1_pb2.pyi @@ -1,4 +1,3 @@ -# mypy: ignore-errors import proxy_service_messages_v1_pb2 as _proxy_service_messages_v1_pb2 from google.protobuf import empty_pb2 as _empty_pb2 from google.protobuf import wrappers_pb2 as _wrappers_pb2 diff --git a/src/coherence/proxy_service_v1_pb2_grpc.py b/src/coherence/proxy_service_v1_pb2_grpc.py index 8f6e56b..710444c 100644 --- a/src/coherence/proxy_service_v1_pb2_grpc.py +++ b/src/coherence/proxy_service_v1_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings import coherence.proxy_service_messages_v1_pb2 as proxy__service__messages__v1__pb2 +GRPC_GENERATED_VERSION = '1.71.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in proxy_service_v1_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class ProxyServiceStub(object): """----------------------------------------------------------------- @@ -22,7 +42,7 @@ def __init__(self, channel): '/coherence.proxy.v1.ProxyService/subChannel', request_serializer=proxy__service__messages__v1__pb2.ProxyRequest.SerializeToString, response_deserializer=proxy__service__messages__v1__pb2.ProxyResponse.FromString, - ) + _registered_method=True) class ProxyServiceServicer(object): @@ -51,6 +71,7 @@ def add_ProxyServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'coherence.proxy.v1.ProxyService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('coherence.proxy.v1.ProxyService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -72,8 +93,18 @@ def subChannel(request_iterator, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/coherence.proxy.v1.ProxyService/subChannel', + return grpc.experimental.stream_stream( + request_iterator, + target, + '/coherence.proxy.v1.ProxyService/subChannel', proxy__service__messages__v1__pb2.ProxyRequest.SerializeToString, proxy__service__messages__v1__pb2.ProxyResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/src/coherence/services_pb2.py b/src/coherence/services_pb2.py index 810ec21..e716a5f 100644 --- a/src/coherence/services_pb2.py +++ b/src/coherence/services_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: services.proto +# Protobuf Python Version: 5.29.0 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 29, + 0, + '', + 'services.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -16,14 +27,14 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eservices.proto\x12\tcoherence\x1a\x0emessages.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/wrappers.proto2\xea\x0f\n\x11NamedCacheService\x12@\n\x08\x61\x64\x64Index\x12\x1a.coherence.AddIndexRequest\x1a\x16.google.protobuf.Empty\"\x00\x12G\n\taggregate\x12\x1b.coherence.AggregateRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12:\n\x05\x63lear\x12\x17.coherence.ClearRequest\x1a\x16.google.protobuf.Empty\"\x00\x12N\n\rcontainsEntry\x12\x1f.coherence.ContainsEntryRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12J\n\x0b\x63ontainsKey\x12\x1d.coherence.ContainsKeyRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12N\n\rcontainsValue\x12\x1f.coherence.ContainsValueRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12>\n\x07\x64\x65stroy\x12\x19.coherence.DestroyRequest\x1a\x16.google.protobuf.Empty\"\x00\x12<\n\x08\x65ntrySet\x12\x1a.coherence.EntrySetRequest\x1a\x10.coherence.Entry\"\x00\x30\x01\x12M\n\x06\x65vents\x12\x1d.coherence.MapListenerRequest\x1a\x1e.coherence.MapListenerResponse\"\x00(\x01\x30\x01\x12\x38\n\x03get\x12\x15.coherence.GetRequest\x1a\x18.coherence.OptionalValue\"\x00\x12\x38\n\x06getAll\x12\x18.coherence.GetAllRequest\x1a\x10.coherence.Entry\"\x00\x30\x01\x12\x41\n\x06invoke\x12\x18.coherence.InvokeRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12>\n\tinvokeAll\x12\x1b.coherence.InvokeAllRequest\x1a\x10.coherence.Entry\"\x00\x30\x01\x12\x42\n\x07isEmpty\x12\x19.coherence.IsEmptyRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12\x42\n\x07isReady\x12\x19.coherence.IsReadyRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12\x43\n\x06keySet\x12\x18.coherence.KeySetRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x30\x01\x12\x46\n\x10nextEntrySetPage\x12\x16.coherence.PageRequest\x1a\x16.coherence.EntryResult\"\x00\x30\x01\x12I\n\x0enextKeySetPage\x12\x16.coherence.PageRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x30\x01\x12;\n\x03put\x12\x15.coherence.PutRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12<\n\x06putAll\x12\x18.coherence.PutAllRequest\x1a\x16.google.protobuf.Empty\"\x00\x12K\n\x0bputIfAbsent\x12\x1d.coherence.PutIfAbsentRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12\x41\n\x06remove\x12\x18.coherence.RemoveRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12\x46\n\x0bremoveIndex\x12\x1d.coherence.RemoveIndexRequest\x1a\x16.google.protobuf.Empty\"\x00\x12N\n\rremoveMapping\x12\x1f.coherence.RemoveMappingRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12\x43\n\x07replace\x12\x19.coherence.ReplaceRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12P\n\x0ereplaceMapping\x12 .coherence.ReplaceMappingRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12=\n\x04size\x12\x16.coherence.SizeRequest\x1a\x1b.google.protobuf.Int32Value\"\x00\x12@\n\x08truncate\x12\x1a.coherence.TruncateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x43\n\x06values\x12\x18.coherence.ValuesRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x30\x01\x42\x1d\n\x19\x63om.oracle.coherence.grpcP\x01\x62\x06proto3') - -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'services_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0eservices.proto\x12\tcoherence\x1a\x0emessages.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1egoogle/protobuf/wrappers.proto2\xea\x0f\n\x11NamedCacheService\x12@\n\x08\x61\x64\x64Index\x12\x1a.coherence.AddIndexRequest\x1a\x16.google.protobuf.Empty\"\x00\x12G\n\taggregate\x12\x1b.coherence.AggregateRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12:\n\x05\x63lear\x12\x17.coherence.ClearRequest\x1a\x16.google.protobuf.Empty\"\x00\x12N\n\rcontainsEntry\x12\x1f.coherence.ContainsEntryRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12J\n\x0b\x63ontainsKey\x12\x1d.coherence.ContainsKeyRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12N\n\rcontainsValue\x12\x1f.coherence.ContainsValueRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12>\n\x07\x64\x65stroy\x12\x19.coherence.DestroyRequest\x1a\x16.google.protobuf.Empty\"\x00\x12<\n\x08\x65ntrySet\x12\x1a.coherence.EntrySetRequest\x1a\x10.coherence.Entry\"\x00\x30\x01\x12M\n\x06\x65vents\x12\x1d.coherence.MapListenerRequest\x1a\x1e.coherence.MapListenerResponse\"\x00(\x01\x30\x01\x12\x38\n\x03get\x12\x15.coherence.GetRequest\x1a\x18.coherence.OptionalValue\"\x00\x12\x38\n\x06getAll\x12\x18.coherence.GetAllRequest\x1a\x10.coherence.Entry\"\x00\x30\x01\x12\x41\n\x06invoke\x12\x18.coherence.InvokeRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12>\n\tinvokeAll\x12\x1b.coherence.InvokeAllRequest\x1a\x10.coherence.Entry\"\x00\x30\x01\x12\x42\n\x07isEmpty\x12\x19.coherence.IsEmptyRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12\x42\n\x07isReady\x12\x19.coherence.IsReadyRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12\x43\n\x06keySet\x12\x18.coherence.KeySetRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x30\x01\x12\x46\n\x10nextEntrySetPage\x12\x16.coherence.PageRequest\x1a\x16.coherence.EntryResult\"\x00\x30\x01\x12I\n\x0enextKeySetPage\x12\x16.coherence.PageRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x30\x01\x12;\n\x03put\x12\x15.coherence.PutRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12<\n\x06putAll\x12\x18.coherence.PutAllRequest\x1a\x16.google.protobuf.Empty\"\x00\x12K\n\x0bputIfAbsent\x12\x1d.coherence.PutIfAbsentRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12\x41\n\x06remove\x12\x18.coherence.RemoveRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12\x46\n\x0bremoveIndex\x12\x1d.coherence.RemoveIndexRequest\x1a\x16.google.protobuf.Empty\"\x00\x12N\n\rremoveMapping\x12\x1f.coherence.RemoveMappingRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12\x43\n\x07replace\x12\x19.coherence.ReplaceRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x12P\n\x0ereplaceMapping\x12 .coherence.ReplaceMappingRequest\x1a\x1a.google.protobuf.BoolValue\"\x00\x12=\n\x04size\x12\x16.coherence.SizeRequest\x1a\x1b.google.protobuf.Int32Value\"\x00\x12@\n\x08truncate\x12\x1a.coherence.TruncateRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x43\n\x06values\x12\x18.coherence.ValuesRequest\x1a\x1b.google.protobuf.BytesValue\"\x00\x30\x01\x42/\n+com.oracle.coherence.grpc.services.cache.v0P\x01\x62\x06proto3') - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\031com.oracle.coherence.grpcP\001' - _NAMEDCACHESERVICE._serialized_start=107 - _NAMEDCACHESERVICE._serialized_end=2133 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'services_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None + _globals['DESCRIPTOR']._serialized_options = b'\n+com.oracle.coherence.grpc.services.cache.v0P\001' + _globals['_NAMEDCACHESERVICE']._serialized_start=107 + _globals['_NAMEDCACHESERVICE']._serialized_end=2133 # @@protoc_insertion_point(module_scope) diff --git a/src/coherence/services_pb2.pyi b/src/coherence/services_pb2.pyi index 016abbc..3824236 100644 --- a/src/coherence/services_pb2.pyi +++ b/src/coherence/services_pb2.pyi @@ -1,8 +1,7 @@ -# mypy: ignore-errors import messages_pb2 as _messages_pb2 from google.protobuf import empty_pb2 as _empty_pb2 from google.protobuf import wrappers_pb2 as _wrappers_pb2 from google.protobuf import descriptor as _descriptor from typing import ClassVar as _ClassVar -DESCRIPTOR: _descriptor.FileDescriptor \ No newline at end of file +DESCRIPTOR: _descriptor.FileDescriptor diff --git a/src/coherence/services_pb2_grpc.py b/src/coherence/services_pb2_grpc.py index 350d01c..8572b8d 100644 --- a/src/coherence/services_pb2_grpc.py +++ b/src/coherence/services_pb2_grpc.py @@ -1,11 +1,31 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 import coherence.messages_pb2 as messages__pb2 +GRPC_GENERATED_VERSION = '1.71.0' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in services_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class NamedCacheServiceStub(object): """A gRPC NamedCache service. @@ -22,147 +42,147 @@ def __init__(self, channel): '/coherence.NamedCacheService/addIndex', request_serializer=messages__pb2.AddIndexRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.aggregate = channel.unary_unary( '/coherence.NamedCacheService/aggregate', request_serializer=messages__pb2.AggregateRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) self.clear = channel.unary_unary( '/coherence.NamedCacheService/clear', request_serializer=messages__pb2.ClearRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.containsEntry = channel.unary_unary( '/coherence.NamedCacheService/containsEntry', request_serializer=messages__pb2.ContainsEntryRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - ) + _registered_method=True) self.containsKey = channel.unary_unary( '/coherence.NamedCacheService/containsKey', request_serializer=messages__pb2.ContainsKeyRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - ) + _registered_method=True) self.containsValue = channel.unary_unary( '/coherence.NamedCacheService/containsValue', request_serializer=messages__pb2.ContainsValueRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - ) + _registered_method=True) self.destroy = channel.unary_unary( '/coherence.NamedCacheService/destroy', request_serializer=messages__pb2.DestroyRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.entrySet = channel.unary_stream( '/coherence.NamedCacheService/entrySet', request_serializer=messages__pb2.EntrySetRequest.SerializeToString, response_deserializer=messages__pb2.Entry.FromString, - ) + _registered_method=True) self.events = channel.stream_stream( '/coherence.NamedCacheService/events', request_serializer=messages__pb2.MapListenerRequest.SerializeToString, response_deserializer=messages__pb2.MapListenerResponse.FromString, - ) + _registered_method=True) self.get = channel.unary_unary( '/coherence.NamedCacheService/get', request_serializer=messages__pb2.GetRequest.SerializeToString, response_deserializer=messages__pb2.OptionalValue.FromString, - ) + _registered_method=True) self.getAll = channel.unary_stream( '/coherence.NamedCacheService/getAll', request_serializer=messages__pb2.GetAllRequest.SerializeToString, response_deserializer=messages__pb2.Entry.FromString, - ) + _registered_method=True) self.invoke = channel.unary_unary( '/coherence.NamedCacheService/invoke', request_serializer=messages__pb2.InvokeRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) self.invokeAll = channel.unary_stream( '/coherence.NamedCacheService/invokeAll', request_serializer=messages__pb2.InvokeAllRequest.SerializeToString, response_deserializer=messages__pb2.Entry.FromString, - ) + _registered_method=True) self.isEmpty = channel.unary_unary( '/coherence.NamedCacheService/isEmpty', request_serializer=messages__pb2.IsEmptyRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - ) + _registered_method=True) self.isReady = channel.unary_unary( '/coherence.NamedCacheService/isReady', request_serializer=messages__pb2.IsReadyRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - ) + _registered_method=True) self.keySet = channel.unary_stream( '/coherence.NamedCacheService/keySet', request_serializer=messages__pb2.KeySetRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) self.nextEntrySetPage = channel.unary_stream( '/coherence.NamedCacheService/nextEntrySetPage', request_serializer=messages__pb2.PageRequest.SerializeToString, response_deserializer=messages__pb2.EntryResult.FromString, - ) + _registered_method=True) self.nextKeySetPage = channel.unary_stream( '/coherence.NamedCacheService/nextKeySetPage', request_serializer=messages__pb2.PageRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) self.put = channel.unary_unary( '/coherence.NamedCacheService/put', request_serializer=messages__pb2.PutRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) self.putAll = channel.unary_unary( '/coherence.NamedCacheService/putAll', request_serializer=messages__pb2.PutAllRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.putIfAbsent = channel.unary_unary( '/coherence.NamedCacheService/putIfAbsent', request_serializer=messages__pb2.PutIfAbsentRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) self.remove = channel.unary_unary( '/coherence.NamedCacheService/remove', request_serializer=messages__pb2.RemoveRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) self.removeIndex = channel.unary_unary( '/coherence.NamedCacheService/removeIndex', request_serializer=messages__pb2.RemoveIndexRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.removeMapping = channel.unary_unary( '/coherence.NamedCacheService/removeMapping', request_serializer=messages__pb2.RemoveMappingRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - ) + _registered_method=True) self.replace = channel.unary_unary( '/coherence.NamedCacheService/replace', request_serializer=messages__pb2.ReplaceRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) self.replaceMapping = channel.unary_unary( '/coherence.NamedCacheService/replaceMapping', request_serializer=messages__pb2.ReplaceMappingRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - ) + _registered_method=True) self.size = channel.unary_unary( '/coherence.NamedCacheService/size', request_serializer=messages__pb2.SizeRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.Int32Value.FromString, - ) + _registered_method=True) self.truncate = channel.unary_unary( '/coherence.NamedCacheService/truncate', request_serializer=messages__pb2.TruncateRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, - ) + _registered_method=True) self.values = channel.unary_stream( '/coherence.NamedCacheService/values', request_serializer=messages__pb2.ValuesRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - ) + _registered_method=True) class NamedCacheServiceServicer(object): @@ -540,6 +560,7 @@ def add_NamedCacheServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'coherence.NamedCacheService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('coherence.NamedCacheService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -559,11 +580,21 @@ def addIndex(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/addIndex', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/addIndex', messages__pb2.AddIndexRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def aggregate(request, @@ -576,11 +607,21 @@ def aggregate(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/aggregate', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/aggregate', messages__pb2.AggregateRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def clear(request, @@ -593,11 +634,21 @@ def clear(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/clear', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/clear', messages__pb2.ClearRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def containsEntry(request, @@ -610,11 +661,21 @@ def containsEntry(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/containsEntry', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/containsEntry', messages__pb2.ContainsEntryRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def containsKey(request, @@ -627,11 +688,21 @@ def containsKey(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/containsKey', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/containsKey', messages__pb2.ContainsKeyRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def containsValue(request, @@ -644,11 +715,21 @@ def containsValue(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/containsValue', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/containsValue', messages__pb2.ContainsValueRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def destroy(request, @@ -661,11 +742,21 @@ def destroy(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/destroy', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/destroy', messages__pb2.DestroyRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def entrySet(request, @@ -678,11 +769,21 @@ def entrySet(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/coherence.NamedCacheService/entrySet', + return grpc.experimental.unary_stream( + request, + target, + '/coherence.NamedCacheService/entrySet', messages__pb2.EntrySetRequest.SerializeToString, messages__pb2.Entry.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def events(request_iterator, @@ -695,11 +796,21 @@ def events(request_iterator, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.stream_stream(request_iterator, target, '/coherence.NamedCacheService/events', + return grpc.experimental.stream_stream( + request_iterator, + target, + '/coherence.NamedCacheService/events', messages__pb2.MapListenerRequest.SerializeToString, messages__pb2.MapListenerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def get(request, @@ -712,11 +823,21 @@ def get(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/get', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/get', messages__pb2.GetRequest.SerializeToString, messages__pb2.OptionalValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def getAll(request, @@ -729,11 +850,21 @@ def getAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/coherence.NamedCacheService/getAll', + return grpc.experimental.unary_stream( + request, + target, + '/coherence.NamedCacheService/getAll', messages__pb2.GetAllRequest.SerializeToString, messages__pb2.Entry.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def invoke(request, @@ -746,11 +877,21 @@ def invoke(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/invoke', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/invoke', messages__pb2.InvokeRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def invokeAll(request, @@ -763,11 +904,21 @@ def invokeAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/coherence.NamedCacheService/invokeAll', + return grpc.experimental.unary_stream( + request, + target, + '/coherence.NamedCacheService/invokeAll', messages__pb2.InvokeAllRequest.SerializeToString, messages__pb2.Entry.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def isEmpty(request, @@ -780,11 +931,21 @@ def isEmpty(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/isEmpty', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/isEmpty', messages__pb2.IsEmptyRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def isReady(request, @@ -797,11 +958,21 @@ def isReady(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/isReady', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/isReady', messages__pb2.IsReadyRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def keySet(request, @@ -814,11 +985,21 @@ def keySet(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/coherence.NamedCacheService/keySet', + return grpc.experimental.unary_stream( + request, + target, + '/coherence.NamedCacheService/keySet', messages__pb2.KeySetRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def nextEntrySetPage(request, @@ -831,11 +1012,21 @@ def nextEntrySetPage(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/coherence.NamedCacheService/nextEntrySetPage', + return grpc.experimental.unary_stream( + request, + target, + '/coherence.NamedCacheService/nextEntrySetPage', messages__pb2.PageRequest.SerializeToString, messages__pb2.EntryResult.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def nextKeySetPage(request, @@ -848,11 +1039,21 @@ def nextKeySetPage(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/coherence.NamedCacheService/nextKeySetPage', + return grpc.experimental.unary_stream( + request, + target, + '/coherence.NamedCacheService/nextKeySetPage', messages__pb2.PageRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def put(request, @@ -865,11 +1066,21 @@ def put(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/put', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/put', messages__pb2.PutRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def putAll(request, @@ -882,11 +1093,21 @@ def putAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/putAll', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/putAll', messages__pb2.PutAllRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def putIfAbsent(request, @@ -899,11 +1120,21 @@ def putIfAbsent(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/putIfAbsent', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/putIfAbsent', messages__pb2.PutIfAbsentRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def remove(request, @@ -916,11 +1147,21 @@ def remove(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/remove', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/remove', messages__pb2.RemoveRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def removeIndex(request, @@ -933,11 +1174,21 @@ def removeIndex(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/removeIndex', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/removeIndex', messages__pb2.RemoveIndexRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def removeMapping(request, @@ -950,11 +1201,21 @@ def removeMapping(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/removeMapping', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/removeMapping', messages__pb2.RemoveMappingRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def replace(request, @@ -967,11 +1228,21 @@ def replace(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/replace', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/replace', messages__pb2.ReplaceRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def replaceMapping(request, @@ -984,11 +1255,21 @@ def replaceMapping(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/replaceMapping', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/replaceMapping', messages__pb2.ReplaceMappingRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BoolValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def size(request, @@ -1001,11 +1282,21 @@ def size(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/size', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/size', messages__pb2.SizeRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.Int32Value.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def truncate(request, @@ -1018,11 +1309,21 @@ def truncate(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/coherence.NamedCacheService/truncate', + return grpc.experimental.unary_unary( + request, + target, + '/coherence.NamedCacheService/truncate', messages__pb2.TruncateRequest.SerializeToString, google_dot_protobuf_dot_empty__pb2.Empty.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def values(request, @@ -1035,8 +1336,18 @@ def values(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/coherence.NamedCacheService/values', + return grpc.experimental.unary_stream( + request, + target, + '/coherence.NamedCacheService/values', messages__pb2.ValuesRequest.SerializeToString, google_dot_protobuf_dot_wrappers__pb2.BytesValue.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/src/coherence/util.py b/src/coherence/util.py index edc2316..45872a0 100644 --- a/src/coherence/util.py +++ b/src/coherence/util.py @@ -1,4 +1,4 @@ -# Copyright (c) 2022, 2023 Oracle and/or its affiliates. +# Copyright (c) 2022, 2025 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at # https://oss.oracle.com/licenses/upl. @@ -471,14 +471,16 @@ def put_if_absent_request(self, key: K, value: V, ttl: int = -1) -> PutIfAbsentR ) return p - def put_all_request(self, map: dict[K, V]) -> PutAllRequest: + def put_all_request(self, map: dict[K, V], ttl: Optional[int] = 0) -> PutAllRequest: entry_list = list() for key, value in map.items(): k = self._serializer.serialize(key) v = self._serializer.serialize(value) e = Entry(key=k, value=v) entry_list.append(e) - p = PutAllRequest(scope=self._scope, cache=self._cache_name, format=self._serializer.format, entry=entry_list) + p = PutAllRequest( + scope=self._scope, cache=self._cache_name, format=self._serializer.format, entry=entry_list, ttl=ttl + ) return p def clear_request(self) -> ClearRequest: