# -*- coding: utf-8 -*-
#
# Copyright (c) 2021 Nitric Technologies Pty Ltd.
#
# This file is part of Nitric Python 3 SDK.
# See https://github.com/nitrictech/python-sdk for further info.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: kv/v1/kv.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='kv/v1/kv.proto',
  package='nitric.kv.v1',
  syntax='proto3',
  serialized_options=b'\n\025io.nitric.proto.kv.v1B\tKeyValuesP\001Z\014nitric/v1;v1\252\002\030Nitric.Proto.KeyValue.v1\312\002\030Nitric\\Proto\\KeyValue\\V1',
  create_key=_descriptor._internal_create_key,
  serialized_pb=b'\n\x0ekv/v1/kv.proto\x12\x0cnitric.kv.v1\x1a\x1cgoogle/protobuf/struct.proto\"5\n\x12KeyValueGetRequest\x12\x12\n\ncollection\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\"=\n\x13KeyValueGetResponse\x12&\n\x05value\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"]\n\x12KeyValuePutRequest\x12\x12\n\ncollection\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\x12&\n\x05value\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x15\n\x13KeyValuePutResponse\"8\n\x15KeyValueDeleteRequest\x12\x12\n\ncollection\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\"\x18\n\x16KeyValueDeleteResponse2\xf7\x01\n\x08KeyValue\x12J\n\x03Get\x12 .nitric.kv.v1.KeyValueGetRequest\x1a!.nitric.kv.v1.KeyValueGetResponse\x12J\n\x03Put\x12 .nitric.kv.v1.KeyValuePutRequest\x1a!.nitric.kv.v1.KeyValuePutResponse\x12S\n\x06\x44\x65lete\x12#.nitric.kv.v1.KeyValueDeleteRequest\x1a$.nitric.kv.v1.KeyValueDeleteResponseBh\n\x15io.nitric.proto.kv.v1B\tKeyValuesP\x01Z\x0cnitric/v1;v1\xaa\x02\x18Nitric.Proto.KeyValue.v1\xca\x02\x18Nitric\\Proto\\KeyValue\\V1b\x06proto3'
  ,
  dependencies=[google_dot_protobuf_dot_struct__pb2.DESCRIPTOR,])




_KEYVALUEGETREQUEST = _descriptor.Descriptor(
  name='KeyValueGetRequest',
  full_name='nitric.kv.v1.KeyValueGetRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='collection', full_name='nitric.kv.v1.KeyValueGetRequest.collection', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='key', full_name='nitric.kv.v1.KeyValueGetRequest.key', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=62,
  serialized_end=115,
)


_KEYVALUEGETRESPONSE = _descriptor.Descriptor(
  name='KeyValueGetResponse',
  full_name='nitric.kv.v1.KeyValueGetResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='value', full_name='nitric.kv.v1.KeyValueGetResponse.value', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=117,
  serialized_end=178,
)


_KEYVALUEPUTREQUEST = _descriptor.Descriptor(
  name='KeyValuePutRequest',
  full_name='nitric.kv.v1.KeyValuePutRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='collection', full_name='nitric.kv.v1.KeyValuePutRequest.collection', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='key', full_name='nitric.kv.v1.KeyValuePutRequest.key', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='value', full_name='nitric.kv.v1.KeyValuePutRequest.value', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=180,
  serialized_end=273,
)


_KEYVALUEPUTRESPONSE = _descriptor.Descriptor(
  name='KeyValuePutResponse',
  full_name='nitric.kv.v1.KeyValuePutResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=275,
  serialized_end=296,
)


_KEYVALUEDELETEREQUEST = _descriptor.Descriptor(
  name='KeyValueDeleteRequest',
  full_name='nitric.kv.v1.KeyValueDeleteRequest',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
    _descriptor.FieldDescriptor(
      name='collection', full_name='nitric.kv.v1.KeyValueDeleteRequest.collection', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    _descriptor.FieldDescriptor(
      name='key', full_name='nitric.kv.v1.KeyValueDeleteRequest.key', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=b"".decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=298,
  serialized_end=354,
)


_KEYVALUEDELETERESPONSE = _descriptor.Descriptor(
  name='KeyValueDeleteResponse',
  full_name='nitric.kv.v1.KeyValueDeleteResponse',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  create_key=_descriptor._internal_create_key,
  fields=[
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=356,
  serialized_end=380,
)

_KEYVALUEGETRESPONSE.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT
_KEYVALUEPUTREQUEST.fields_by_name['value'].message_type = google_dot_protobuf_dot_struct__pb2._STRUCT
DESCRIPTOR.message_types_by_name['KeyValueGetRequest'] = _KEYVALUEGETREQUEST
DESCRIPTOR.message_types_by_name['KeyValueGetResponse'] = _KEYVALUEGETRESPONSE
DESCRIPTOR.message_types_by_name['KeyValuePutRequest'] = _KEYVALUEPUTREQUEST
DESCRIPTOR.message_types_by_name['KeyValuePutResponse'] = _KEYVALUEPUTRESPONSE
DESCRIPTOR.message_types_by_name['KeyValueDeleteRequest'] = _KEYVALUEDELETEREQUEST
DESCRIPTOR.message_types_by_name['KeyValueDeleteResponse'] = _KEYVALUEDELETERESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

KeyValueGetRequest = _reflection.GeneratedProtocolMessageType('KeyValueGetRequest', (_message.Message,), {
  'DESCRIPTOR' : _KEYVALUEGETREQUEST,
  '__module__' : 'kv.v1.kv_pb2'
  # @@protoc_insertion_point(class_scope:nitric.kv.v1.KeyValueGetRequest)
  })
_sym_db.RegisterMessage(KeyValueGetRequest)

KeyValueGetResponse = _reflection.GeneratedProtocolMessageType('KeyValueGetResponse', (_message.Message,), {
  'DESCRIPTOR' : _KEYVALUEGETRESPONSE,
  '__module__' : 'kv.v1.kv_pb2'
  # @@protoc_insertion_point(class_scope:nitric.kv.v1.KeyValueGetResponse)
  })
_sym_db.RegisterMessage(KeyValueGetResponse)

KeyValuePutRequest = _reflection.GeneratedProtocolMessageType('KeyValuePutRequest', (_message.Message,), {
  'DESCRIPTOR' : _KEYVALUEPUTREQUEST,
  '__module__' : 'kv.v1.kv_pb2'
  # @@protoc_insertion_point(class_scope:nitric.kv.v1.KeyValuePutRequest)
  })
_sym_db.RegisterMessage(KeyValuePutRequest)

KeyValuePutResponse = _reflection.GeneratedProtocolMessageType('KeyValuePutResponse', (_message.Message,), {
  'DESCRIPTOR' : _KEYVALUEPUTRESPONSE,
  '__module__' : 'kv.v1.kv_pb2'
  # @@protoc_insertion_point(class_scope:nitric.kv.v1.KeyValuePutResponse)
  })
_sym_db.RegisterMessage(KeyValuePutResponse)

KeyValueDeleteRequest = _reflection.GeneratedProtocolMessageType('KeyValueDeleteRequest', (_message.Message,), {
  'DESCRIPTOR' : _KEYVALUEDELETEREQUEST,
  '__module__' : 'kv.v1.kv_pb2'
  # @@protoc_insertion_point(class_scope:nitric.kv.v1.KeyValueDeleteRequest)
  })
_sym_db.RegisterMessage(KeyValueDeleteRequest)

KeyValueDeleteResponse = _reflection.GeneratedProtocolMessageType('KeyValueDeleteResponse', (_message.Message,), {
  'DESCRIPTOR' : _KEYVALUEDELETERESPONSE,
  '__module__' : 'kv.v1.kv_pb2'
  # @@protoc_insertion_point(class_scope:nitric.kv.v1.KeyValueDeleteResponse)
  })
_sym_db.RegisterMessage(KeyValueDeleteResponse)


DESCRIPTOR._options = None

_KEYVALUE = _descriptor.ServiceDescriptor(
  name='KeyValue',
  full_name='nitric.kv.v1.KeyValue',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  create_key=_descriptor._internal_create_key,
  serialized_start=383,
  serialized_end=630,
  methods=[
  _descriptor.MethodDescriptor(
    name='Get',
    full_name='nitric.kv.v1.KeyValue.Get',
    index=0,
    containing_service=None,
    input_type=_KEYVALUEGETREQUEST,
    output_type=_KEYVALUEGETRESPONSE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='Put',
    full_name='nitric.kv.v1.KeyValue.Put',
    index=1,
    containing_service=None,
    input_type=_KEYVALUEPUTREQUEST,
    output_type=_KEYVALUEPUTRESPONSE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
  _descriptor.MethodDescriptor(
    name='Delete',
    full_name='nitric.kv.v1.KeyValue.Delete',
    index=2,
    containing_service=None,
    input_type=_KEYVALUEDELETEREQUEST,
    output_type=_KEYVALUEDELETERESPONSE,
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
  ),
])
_sym_db.RegisterServiceDescriptor(_KEYVALUE)

DESCRIPTOR.services_by_name['KeyValue'] = _KEYVALUE

# @@protoc_insertion_point(module_scope)
