# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: proto/core/tensor/share_tensor.proto
"""Generated protocol buffer code."""
# third party
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()


# syft absolute
from syft.proto.core.tensor import (
    tensor_pb2 as proto_dot_core_dot_tensor_dot_tensor__pb2,
)
from syft.proto.lib.numpy import array_pb2 as proto_dot_lib_dot_numpy_dot_array__pb2

DESCRIPTOR = _descriptor.FileDescriptor(
    name="proto/core/tensor/share_tensor.proto",
    package="syft.core.tensor",
    syntax="proto3",
    serialized_options=None,
    create_key=_descriptor._internal_create_key,
    serialized_pb=b'\n$proto/core/tensor/share_tensor.proto\x12\x10syft.core.tensor\x1a\x1eproto/core/tensor/tensor.proto\x1a\x1bproto/lib/numpy/array.proto"|\n\x0bShareTensor\x12*\n\x06tensor\x18\x01 \x01(\x0b\x32\x18.syft.core.tensor.TensorH\x00\x12+\n\x05\x61rray\x18\x02 \x01(\x0b\x32\x1a.syft.lib.numpy.NumpyProtoH\x00\x12\x0c\n\x04rank\x18\x03 \x01(\rB\x06\n\x04\x64\x61tab\x06proto3',
    dependencies=[
        proto_dot_core_dot_tensor_dot_tensor__pb2.DESCRIPTOR,
        proto_dot_lib_dot_numpy_dot_array__pb2.DESCRIPTOR,
    ],
)


_SHARETENSOR = _descriptor.Descriptor(
    name="ShareTensor",
    full_name="syft.core.tensor.ShareTensor",
    filename=None,
    file=DESCRIPTOR,
    containing_type=None,
    create_key=_descriptor._internal_create_key,
    fields=[
        _descriptor.FieldDescriptor(
            name="tensor",
            full_name="syft.core.tensor.ShareTensor.tensor",
            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,
        ),
        _descriptor.FieldDescriptor(
            name="array",
            full_name="syft.core.tensor.ShareTensor.array",
            index=1,
            number=2,
            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,
        ),
        _descriptor.FieldDescriptor(
            name="rank",
            full_name="syft.core.tensor.ShareTensor.rank",
            index=2,
            number=3,
            type=13,
            cpp_type=3,
            label=1,
            has_default_value=False,
            default_value=0,
            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=[
        _descriptor.OneofDescriptor(
            name="data",
            full_name="syft.core.tensor.ShareTensor.data",
            index=0,
            containing_type=None,
            create_key=_descriptor._internal_create_key,
            fields=[],
        ),
    ],
    serialized_start=119,
    serialized_end=243,
)

_SHARETENSOR.fields_by_name[
    "tensor"
].message_type = proto_dot_core_dot_tensor_dot_tensor__pb2._TENSOR
_SHARETENSOR.fields_by_name[
    "array"
].message_type = proto_dot_lib_dot_numpy_dot_array__pb2._NUMPYPROTO
_SHARETENSOR.oneofs_by_name["data"].fields.append(_SHARETENSOR.fields_by_name["tensor"])
_SHARETENSOR.fields_by_name["tensor"].containing_oneof = _SHARETENSOR.oneofs_by_name[
    "data"
]
_SHARETENSOR.oneofs_by_name["data"].fields.append(_SHARETENSOR.fields_by_name["array"])
_SHARETENSOR.fields_by_name["array"].containing_oneof = _SHARETENSOR.oneofs_by_name[
    "data"
]
DESCRIPTOR.message_types_by_name["ShareTensor"] = _SHARETENSOR
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

ShareTensor = _reflection.GeneratedProtocolMessageType(
    "ShareTensor",
    (_message.Message,),
    {
        "DESCRIPTOR": _SHARETENSOR,
        "__module__": "proto.core.tensor.share_tensor_pb2"
        # @@protoc_insertion_point(class_scope:syft.core.tensor.ShareTensor)
    },
)
_sym_db.RegisterMessage(ShareTensor)


# @@protoc_insertion_point(module_scope)
