github.com/metaworking/channeld@v0.7.3/pkg/channeldpb/unity_common.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        v3.20.1
     5  // source: unity_common.proto
     6  
     7  package channeldpb
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Vector3F struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
    29  	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
    30  	Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
    31  }
    32  
    33  func (x *Vector3F) Reset() {
    34  	*x = Vector3F{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_unity_common_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *Vector3F) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*Vector3F) ProtoMessage() {}
    47  
    48  func (x *Vector3F) ProtoReflect() protoreflect.Message {
    49  	mi := &file_unity_common_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use Vector3F.ProtoReflect.Descriptor instead.
    61  func (*Vector3F) Descriptor() ([]byte, []int) {
    62  	return file_unity_common_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *Vector3F) GetX() float32 {
    66  	if x != nil {
    67  		return x.X
    68  	}
    69  	return 0
    70  }
    71  
    72  func (x *Vector3F) GetY() float32 {
    73  	if x != nil {
    74  		return x.Y
    75  	}
    76  	return 0
    77  }
    78  
    79  func (x *Vector3F) GetZ() float32 {
    80  	if x != nil {
    81  		return x.Z
    82  	}
    83  	return 0
    84  }
    85  
    86  type Vector4F struct {
    87  	state         protoimpl.MessageState
    88  	sizeCache     protoimpl.SizeCache
    89  	unknownFields protoimpl.UnknownFields
    90  
    91  	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
    92  	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
    93  	Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
    94  	W float32 `protobuf:"fixed32,4,opt,name=w,proto3" json:"w,omitempty"`
    95  }
    96  
    97  func (x *Vector4F) Reset() {
    98  	*x = Vector4F{}
    99  	if protoimpl.UnsafeEnabled {
   100  		mi := &file_unity_common_proto_msgTypes[1]
   101  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   102  		ms.StoreMessageInfo(mi)
   103  	}
   104  }
   105  
   106  func (x *Vector4F) String() string {
   107  	return protoimpl.X.MessageStringOf(x)
   108  }
   109  
   110  func (*Vector4F) ProtoMessage() {}
   111  
   112  func (x *Vector4F) ProtoReflect() protoreflect.Message {
   113  	mi := &file_unity_common_proto_msgTypes[1]
   114  	if protoimpl.UnsafeEnabled && x != nil {
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		if ms.LoadMessageInfo() == nil {
   117  			ms.StoreMessageInfo(mi)
   118  		}
   119  		return ms
   120  	}
   121  	return mi.MessageOf(x)
   122  }
   123  
   124  // Deprecated: Use Vector4F.ProtoReflect.Descriptor instead.
   125  func (*Vector4F) Descriptor() ([]byte, []int) {
   126  	return file_unity_common_proto_rawDescGZIP(), []int{1}
   127  }
   128  
   129  func (x *Vector4F) GetX() float32 {
   130  	if x != nil {
   131  		return x.X
   132  	}
   133  	return 0
   134  }
   135  
   136  func (x *Vector4F) GetY() float32 {
   137  	if x != nil {
   138  		return x.Y
   139  	}
   140  	return 0
   141  }
   142  
   143  func (x *Vector4F) GetZ() float32 {
   144  	if x != nil {
   145  		return x.Z
   146  	}
   147  	return 0
   148  }
   149  
   150  func (x *Vector4F) GetW() float32 {
   151  	if x != nil {
   152  		return x.W
   153  	}
   154  	return 0
   155  }
   156  
   157  type TransformState struct {
   158  	state         protoimpl.MessageState
   159  	sizeCache     protoimpl.SizeCache
   160  	unknownFields protoimpl.UnknownFields
   161  
   162  	// Marks that the state should be removed from the containing map
   163  	Removed  bool      `protobuf:"varint,1,opt,name=removed,proto3" json:"removed,omitempty"`
   164  	Position *Vector3F `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
   165  	Rotation *Vector4F `protobuf:"bytes,3,opt,name=rotation,proto3" json:"rotation,omitempty"`
   166  	Scale    *Vector3F `protobuf:"bytes,4,opt,name=scale,proto3" json:"scale,omitempty"`
   167  }
   168  
   169  func (x *TransformState) Reset() {
   170  	*x = TransformState{}
   171  	if protoimpl.UnsafeEnabled {
   172  		mi := &file_unity_common_proto_msgTypes[2]
   173  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   174  		ms.StoreMessageInfo(mi)
   175  	}
   176  }
   177  
   178  func (x *TransformState) String() string {
   179  	return protoimpl.X.MessageStringOf(x)
   180  }
   181  
   182  func (*TransformState) ProtoMessage() {}
   183  
   184  func (x *TransformState) ProtoReflect() protoreflect.Message {
   185  	mi := &file_unity_common_proto_msgTypes[2]
   186  	if protoimpl.UnsafeEnabled && x != nil {
   187  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   188  		if ms.LoadMessageInfo() == nil {
   189  			ms.StoreMessageInfo(mi)
   190  		}
   191  		return ms
   192  	}
   193  	return mi.MessageOf(x)
   194  }
   195  
   196  // Deprecated: Use TransformState.ProtoReflect.Descriptor instead.
   197  func (*TransformState) Descriptor() ([]byte, []int) {
   198  	return file_unity_common_proto_rawDescGZIP(), []int{2}
   199  }
   200  
   201  func (x *TransformState) GetRemoved() bool {
   202  	if x != nil {
   203  		return x.Removed
   204  	}
   205  	return false
   206  }
   207  
   208  func (x *TransformState) GetPosition() *Vector3F {
   209  	if x != nil {
   210  		return x.Position
   211  	}
   212  	return nil
   213  }
   214  
   215  func (x *TransformState) GetRotation() *Vector4F {
   216  	if x != nil {
   217  		return x.Rotation
   218  	}
   219  	return nil
   220  }
   221  
   222  func (x *TransformState) GetScale() *Vector3F {
   223  	if x != nil {
   224  		return x.Scale
   225  	}
   226  	return nil
   227  }
   228  
   229  var File_unity_common_proto protoreflect.FileDescriptor
   230  
   231  var file_unity_common_proto_rawDesc = []byte{
   232  	0x0a, 0x12, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
   233  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x64, 0x70, 0x62,
   234  	0x22, 0x34, 0x0a, 0x08, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x33, 0x66, 0x12, 0x0c, 0x0a, 0x01,
   235  	0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18,
   236  	0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20,
   237  	0x01, 0x28, 0x02, 0x52, 0x01, 0x7a, 0x22, 0x42, 0x0a, 0x08, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72,
   238  	0x34, 0x66, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x78,
   239  	0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x79, 0x12, 0x0c,
   240  	0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x7a, 0x12, 0x0c, 0x0a, 0x01,
   241  	0x77, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x77, 0x22, 0xba, 0x01, 0x0a, 0x0e, 0x54,
   242  	0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a,
   243  	0x07, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07,
   244  	0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x08, 0x70, 0x6f, 0x73, 0x69, 0x74,
   245  	0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x68, 0x61, 0x6e,
   246  	0x6e, 0x65, 0x6c, 0x64, 0x70, 0x62, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x33, 0x66, 0x52,
   247  	0x08, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x08, 0x72, 0x6f, 0x74,
   248  	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x68,
   249  	0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x64, 0x70, 0x62, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x34,
   250  	0x66, 0x52, 0x08, 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x05, 0x73,
   251  	0x63, 0x61, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x68, 0x61,
   252  	0x6e, 0x6e, 0x65, 0x6c, 0x64, 0x70, 0x62, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x33, 0x66,
   253  	0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x42, 0x3b, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75,
   254  	0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e,
   255  	0x67, 0x2f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x64, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x63,
   256  	0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x64, 0x70, 0x62, 0xaa, 0x02, 0x08, 0x43, 0x68, 0x61, 0x6e,
   257  	0x6e, 0x65, 0x6c, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   258  }
   259  
   260  var (
   261  	file_unity_common_proto_rawDescOnce sync.Once
   262  	file_unity_common_proto_rawDescData = file_unity_common_proto_rawDesc
   263  )
   264  
   265  func file_unity_common_proto_rawDescGZIP() []byte {
   266  	file_unity_common_proto_rawDescOnce.Do(func() {
   267  		file_unity_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_unity_common_proto_rawDescData)
   268  	})
   269  	return file_unity_common_proto_rawDescData
   270  }
   271  
   272  var file_unity_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   273  var file_unity_common_proto_goTypes = []interface{}{
   274  	(*Vector3F)(nil),       // 0: channeldpb.Vector3f
   275  	(*Vector4F)(nil),       // 1: channeldpb.Vector4f
   276  	(*TransformState)(nil), // 2: channeldpb.TransformState
   277  }
   278  var file_unity_common_proto_depIdxs = []int32{
   279  	0, // 0: channeldpb.TransformState.position:type_name -> channeldpb.Vector3f
   280  	1, // 1: channeldpb.TransformState.rotation:type_name -> channeldpb.Vector4f
   281  	0, // 2: channeldpb.TransformState.scale:type_name -> channeldpb.Vector3f
   282  	3, // [3:3] is the sub-list for method output_type
   283  	3, // [3:3] is the sub-list for method input_type
   284  	3, // [3:3] is the sub-list for extension type_name
   285  	3, // [3:3] is the sub-list for extension extendee
   286  	0, // [0:3] is the sub-list for field type_name
   287  }
   288  
   289  func init() { file_unity_common_proto_init() }
   290  func file_unity_common_proto_init() {
   291  	if File_unity_common_proto != nil {
   292  		return
   293  	}
   294  	if !protoimpl.UnsafeEnabled {
   295  		file_unity_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   296  			switch v := v.(*Vector3F); i {
   297  			case 0:
   298  				return &v.state
   299  			case 1:
   300  				return &v.sizeCache
   301  			case 2:
   302  				return &v.unknownFields
   303  			default:
   304  				return nil
   305  			}
   306  		}
   307  		file_unity_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   308  			switch v := v.(*Vector4F); i {
   309  			case 0:
   310  				return &v.state
   311  			case 1:
   312  				return &v.sizeCache
   313  			case 2:
   314  				return &v.unknownFields
   315  			default:
   316  				return nil
   317  			}
   318  		}
   319  		file_unity_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   320  			switch v := v.(*TransformState); i {
   321  			case 0:
   322  				return &v.state
   323  			case 1:
   324  				return &v.sizeCache
   325  			case 2:
   326  				return &v.unknownFields
   327  			default:
   328  				return nil
   329  			}
   330  		}
   331  	}
   332  	type x struct{}
   333  	out := protoimpl.TypeBuilder{
   334  		File: protoimpl.DescBuilder{
   335  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   336  			RawDescriptor: file_unity_common_proto_rawDesc,
   337  			NumEnums:      0,
   338  			NumMessages:   3,
   339  			NumExtensions: 0,
   340  			NumServices:   0,
   341  		},
   342  		GoTypes:           file_unity_common_proto_goTypes,
   343  		DependencyIndexes: file_unity_common_proto_depIdxs,
   344  		MessageInfos:      file_unity_common_proto_msgTypes,
   345  	}.Build()
   346  	File_unity_common_proto = out.File
   347  	file_unity_common_proto_rawDesc = nil
   348  	file_unity_common_proto_goTypes = nil
   349  	file_unity_common_proto_depIdxs = nil
   350  }