Current section
Files
Jump to
Current section
Files
generated/cachepubsub.pb.ex
defmodule Momento.Protos.CacheClient.Pubsub.Empty do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "_Empty",
field: [],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
end
defmodule Momento.Protos.CacheClient.Pubsub.PublishRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "_PublishRequest",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "cache_name",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "cacheName",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "topic",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "topic",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "value",
extendee: nil,
number: 3,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".cache_client.pubsub._TopicValue",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "value",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: %Google.Protobuf.MessageOptions{
message_set_wire_format: false,
no_standard_descriptor_accessor: false,
deprecated: false,
map_entry: nil,
deprecated_legacy_json_field_conflicts: nil,
uninterpreted_option: [],
__pb_extensions__: %{},
__unknown_fields__: [{50000, 0, 0}]
},
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field :cache_name, 1, type: :string, json_name: "cacheName"
field :topic, 2, type: :string
field :value, 3, type: Momento.Protos.CacheClient.Pubsub.TopicValue
end
defmodule Momento.Protos.CacheClient.Pubsub.SubscriptionRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "_SubscriptionRequest",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "cache_name",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "cacheName",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "topic",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "topic",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "resume_at_topic_sequence_number",
extendee: nil,
number: 3,
label: :LABEL_OPTIONAL,
type: :TYPE_UINT64,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "resumeAtTopicSequenceNumber",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: %Google.Protobuf.MessageOptions{
message_set_wire_format: false,
no_standard_descriptor_accessor: false,
deprecated: false,
map_entry: nil,
deprecated_legacy_json_field_conflicts: nil,
uninterpreted_option: [],
__pb_extensions__: %{},
__unknown_fields__: [{50000, 0, 1}]
},
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field :cache_name, 1, type: :string, json_name: "cacheName"
field :topic, 2, type: :string
field :resume_at_topic_sequence_number, 3,
type: :uint64,
json_name: "resumeAtTopicSequenceNumber"
end
defmodule Momento.Protos.CacheClient.Pubsub.SubscriptionItem do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "_SubscriptionItem",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "item",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".cache_client.pubsub._TopicItem",
default_value: nil,
options: nil,
oneof_index: 0,
json_name: "item",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "discontinuity",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".cache_client.pubsub._Discontinuity",
default_value: nil,
options: nil,
oneof_index: 0,
json_name: "discontinuity",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "heartbeat",
extendee: nil,
number: 3,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".cache_client.pubsub._Heartbeat",
default_value: nil,
options: nil,
oneof_index: 0,
json_name: "heartbeat",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [
%Google.Protobuf.OneofDescriptorProto{name: "kind", options: nil, __unknown_fields__: []}
],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
oneof :kind, 0
field :item, 1, type: Momento.Protos.CacheClient.Pubsub.TopicItem, oneof: 0
field :discontinuity, 2, type: Momento.Protos.CacheClient.Pubsub.Discontinuity, oneof: 0
field :heartbeat, 3, type: Momento.Protos.CacheClient.Pubsub.Heartbeat, oneof: 0
end
defmodule Momento.Protos.CacheClient.Pubsub.TopicItem do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "_TopicItem",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "topic_sequence_number",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_UINT64,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "topicSequenceNumber",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "value",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_MESSAGE,
type_name: ".cache_client.pubsub._TopicValue",
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "value",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field :topic_sequence_number, 1, type: :uint64, json_name: "topicSequenceNumber"
field :value, 2, type: Momento.Protos.CacheClient.Pubsub.TopicValue
end
defmodule Momento.Protos.CacheClient.Pubsub.TopicValue do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "_TopicValue",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "text",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_STRING,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: 0,
json_name: "text",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "binary",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_BYTES,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: 0,
json_name: "binary",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [
%Google.Protobuf.OneofDescriptorProto{name: "kind", options: nil, __unknown_fields__: []}
],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
oneof :kind, 0
field :text, 1, type: :string, oneof: 0
field :binary, 2, type: :bytes, oneof: 0
end
defmodule Momento.Protos.CacheClient.Pubsub.Discontinuity do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "_Discontinuity",
field: [
%Google.Protobuf.FieldDescriptorProto{
name: "last_topic_sequence",
extendee: nil,
number: 1,
label: :LABEL_OPTIONAL,
type: :TYPE_UINT64,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "lastTopicSequence",
proto3_optional: nil,
__unknown_fields__: []
},
%Google.Protobuf.FieldDescriptorProto{
name: "new_topic_sequence",
extendee: nil,
number: 2,
label: :LABEL_OPTIONAL,
type: :TYPE_UINT64,
type_name: nil,
default_value: nil,
options: nil,
oneof_index: nil,
json_name: "newTopicSequence",
proto3_optional: nil,
__unknown_fields__: []
}
],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
field :last_topic_sequence, 1, type: :uint64, json_name: "lastTopicSequence"
field :new_topic_sequence, 2, type: :uint64, json_name: "newTopicSequence"
end
defmodule Momento.Protos.CacheClient.Pubsub.Heartbeat do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.12.0", syntax: :proto3
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.DescriptorProto{
name: "_Heartbeat",
field: [],
nested_type: [],
enum_type: [],
extension_range: [],
extension: [],
options: nil,
oneof_decl: [],
reserved_range: [],
reserved_name: [],
__unknown_fields__: []
}
end
end
defmodule Momento.Protos.CacheClient.Pubsub.Pubsub.Service do
@moduledoc false
use GRPC.Service, name: "cache_client.pubsub.Pubsub", protoc_gen_elixir_version: "0.12.0"
def descriptor do
# credo:disable-for-next-line
%Google.Protobuf.ServiceDescriptorProto{
name: "Pubsub",
method: [
%Google.Protobuf.MethodDescriptorProto{
name: "Publish",
input_type: ".cache_client.pubsub._PublishRequest",
output_type: ".cache_client.pubsub._Empty",
options: nil,
client_streaming: false,
server_streaming: false,
__unknown_fields__: []
},
%Google.Protobuf.MethodDescriptorProto{
name: "Subscribe",
input_type: ".cache_client.pubsub._SubscriptionRequest",
output_type: ".cache_client.pubsub._SubscriptionItem",
options: nil,
client_streaming: false,
server_streaming: true,
__unknown_fields__: []
}
],
options: nil,
__unknown_fields__: []
}
end
rpc :Publish,
Momento.Protos.CacheClient.Pubsub.PublishRequest,
Momento.Protos.CacheClient.Pubsub.Empty
rpc :Subscribe,
Momento.Protos.CacheClient.Pubsub.SubscriptionRequest,
stream(Momento.Protos.CacheClient.Pubsub.SubscriptionItem)
end
defmodule Momento.Protos.CacheClient.Pubsub.Pubsub.Stub do
@moduledoc false
use GRPC.Stub, service: Momento.Protos.CacheClient.Pubsub.Pubsub.Service
end