Debian Codegraph @

googleapis/home/enterprise/sdm/v1/device.pb.go

raw symbols SCIP
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/home/enterprise/sdm/v1/device.proto
20
21 package sdm
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 structpb "google.golang.org/protobuf/types/known/structpb"
31 )
32
33 const (
34 // Verify that this generated code is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36 // Verify that runtime/protoimpl is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40 // Device resource represents an instance of enterprise managed device in the
41 // property.
42 type Device struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // Required. The resource name of the device. For example:
48 // "enterprises/XYZ/devices/123".
49 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
50 // Output only. Type of the device for general display purposes.
51 // For example: "THERMOSTAT". The device type should not be used to deduce or
52 // infer functionality of the actual device it is assigned to. Instead, use
53 // the returned traits for the device.
54 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
55 // Output only. Device traits.
56 Traits *structpb.Struct `protobuf:"bytes,4,opt,name=traits,proto3" json:"traits,omitempty"`
57 // Assignee details of the device.
58 ParentRelations []*ParentRelation `protobuf:"bytes,5,rep,name=parent_relations,json=parentRelations,proto3" json:"parent_relations,omitempty"`
59 }
60
61 func (x *Device) Reset() {
62 *x = Device{}
63 if protoimpl.UnsafeEnabled {
64 mi := &file_google_home_enterprise_sdm_v1_device_proto_msgTypes[0]
65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
66 ms.StoreMessageInfo(mi)
67 }
68 }
69
70 func (x *Device) String() string {
71 return protoimpl.X.MessageStringOf(x)
72 }
73
74 func (*Device) ProtoMessage() {}
75
76 func (x *Device) ProtoReflect() protoreflect.Message {
77 mi := &file_google_home_enterprise_sdm_v1_device_proto_msgTypes[0]
78 if protoimpl.UnsafeEnabled && x != nil {
79 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80 if ms.LoadMessageInfo() == nil {
81 ms.StoreMessageInfo(mi)
82 }
83 return ms
84 }
85 return mi.MessageOf(x)
86 }
87
88 // Deprecated: Use Device.ProtoReflect.Descriptor instead.
89 func (*Device) Descriptor() ([]byte, []int) {
90 return file_google_home_enterprise_sdm_v1_device_proto_rawDescGZIP(), []int{0}
91 }
92
93 func (x *Device) GetName() string {
94 if x != nil {
95 return x.Name
96 }
97 return ""
98 }
99
100 func (x *Device) GetType() string {
101 if x != nil {
102 return x.Type
103 }
104 return ""
105 }
106
107 func (x *Device) GetTraits() *structpb.Struct {
108 if x != nil {
109 return x.Traits
110 }
111 return nil
112 }
113
114 func (x *Device) GetParentRelations() []*ParentRelation {
115 if x != nil {
116 return x.ParentRelations
117 }
118 return nil
119 }
120
121 // Represents device relationships, for instance, structure/room to which the
122 // device is assigned to.
123 type ParentRelation struct {
124 state protoimpl.MessageState
125 sizeCache protoimpl.SizeCache
126 unknownFields protoimpl.UnknownFields
127
128 // Output only. The name of the relation -- e.g., structure/room where the
129 // device is assigned to. For example: "enterprises/XYZ/structures/ABC" or
130 // "enterprises/XYZ/structures/ABC/rooms/123"
131 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
132 // Output only. The custom name of the relation -- e.g., structure/room where
133 // the device is assigned to.
134 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
135 }
136
137 func (x *ParentRelation) Reset() {
138 *x = ParentRelation{}
139 if protoimpl.UnsafeEnabled {
140 mi := &file_google_home_enterprise_sdm_v1_device_proto_msgTypes[1]
141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
142 ms.StoreMessageInfo(mi)
143 }
144 }
145
146 func (x *ParentRelation) String() string {
147 return protoimpl.X.MessageStringOf(x)
148 }
149
150 func (*ParentRelation) ProtoMessage() {}
151
152 func (x *ParentRelation) ProtoReflect() protoreflect.Message {
153 mi := &file_google_home_enterprise_sdm_v1_device_proto_msgTypes[1]
154 if protoimpl.UnsafeEnabled && x != nil {
155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156 if ms.LoadMessageInfo() == nil {
157 ms.StoreMessageInfo(mi)
158 }
159 return ms
160 }
161 return mi.MessageOf(x)
162 }
163
164 // Deprecated: Use ParentRelation.ProtoReflect.Descriptor instead.
165 func (*ParentRelation) Descriptor() ([]byte, []int) {
166 return file_google_home_enterprise_sdm_v1_device_proto_rawDescGZIP(), []int{1}
167 }
168
169 func (x *ParentRelation) GetParent() string {
170 if x != nil {
171 return x.Parent
172 }
173 return ""
174 }
175
176 func (x *ParentRelation) GetDisplayName() string {
177 if x != nil {
178 return x.DisplayName
179 }
180 return ""
181 }
182
183 var File_google_home_enterprise_sdm_v1_device_proto protoreflect.FileDescriptor
184
185 var file_google_home_enterprise_sdm_v1_device_proto_rawDesc = []byte{
186 0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x68, 0x6f, 0x6d, 0x65, 0x2f, 0x65, 0x6e,
187 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x2f, 0x73, 0x64, 0x6d, 0x2f, 0x76, 0x31, 0x2f,
188 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f,
189 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x68, 0x6f, 0x6d, 0x65, 0x2e, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70,
190 0x72, 0x69, 0x73, 0x65, 0x2e, 0x73, 0x64, 0x6d, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
191 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65,
192 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f,
193 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
194 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
195 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e,
196 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x02, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
197 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
198 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01,
199 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x34, 0x0a,
200 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
201 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
202 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x74, 0x72, 0x61,
203 0x69, 0x74, 0x73, 0x12, 0x58, 0x0a, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65,
204 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e,
205 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x68, 0x6f, 0x6d, 0x65, 0x2e, 0x65, 0x6e, 0x74, 0x65,
206 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x2e, 0x73, 0x64, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61,
207 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x70, 0x61,
208 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x5b, 0xea,
209 0x41, 0x58, 0x0a, 0x2b, 0x73, 0x6d, 0x61, 0x72, 0x74, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x6d,
210 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
211 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x12,
212 0x29, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x65, 0x6e,
213 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x7d, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65,
214 0x73, 0x2f, 0x7b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x7d, 0x22, 0x55, 0x0a, 0x0e, 0x50, 0x61,
215 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x06,
216 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
217 0x03, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c, 0x64, 0x69, 0x73,
218 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,
219 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d,
220 0x65, 0x42, 0xb2, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
221 0x2e, 0x68, 0x6f, 0x6d, 0x65, 0x2e, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65,
222 0x2e, 0x73, 0x64, 0x6d, 0x2e, 0x76, 0x31, 0x50, 0x01, 0x5a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
223 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
224 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
225 0x2f, 0x68, 0x6f, 0x6d, 0x65, 0x2f, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65,
226 0x2f, 0x73, 0x64, 0x6d, 0x2f, 0x76, 0x31, 0x3b, 0x73, 0x64, 0x6d, 0xa2, 0x02, 0x08, 0x47, 0x48,
227 0x45, 0x4e, 0x54, 0x53, 0x44, 0x4d, 0xaa, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
228 0x48, 0x6f, 0x6d, 0x65, 0x2e, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x2e,
229 0x53, 0x64, 0x6d, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c,
230 0x48, 0x6f, 0x6d, 0x65, 0x5c, 0x45, 0x6e, 0x74, 0x65, 0x72, 0x70, 0x72, 0x69, 0x73, 0x65, 0x5c,
231 0x53, 0x64, 0x6d, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
232 }
233
234 var (
235 file_google_home_enterprise_sdm_v1_device_proto_rawDescOnce sync.Once
236 file_google_home_enterprise_sdm_v1_device_proto_rawDescData = file_google_home_enterprise_sdm_v1_device_proto_rawDesc
237 )
238
239 func file_google_home_enterprise_sdm_v1_device_proto_rawDescGZIP() []byte {
240 file_google_home_enterprise_sdm_v1_device_proto_rawDescOnce.Do(func() {
241 file_google_home_enterprise_sdm_v1_device_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_home_enterprise_sdm_v1_device_proto_rawDescData)
242 })
243 return file_google_home_enterprise_sdm_v1_device_proto_rawDescData
244 }
245
246 var file_google_home_enterprise_sdm_v1_device_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
247 var file_google_home_enterprise_sdm_v1_device_proto_goTypes = []interface{}{
248 (*Device)(nil), // 0: google.home.enterprise.sdm.v1.Device
249 (*ParentRelation)(nil), // 1: google.home.enterprise.sdm.v1.ParentRelation
250 (*structpb.Struct)(nil), // 2: google.protobuf.Struct
251 }
252 var file_google_home_enterprise_sdm_v1_device_proto_depIdxs = []int32{
253 2, // 0: google.home.enterprise.sdm.v1.Device.traits:type_name -> google.protobuf.Struct
254 1, // 1: google.home.enterprise.sdm.v1.Device.parent_relations:type_name -> google.home.enterprise.sdm.v1.ParentRelation
255 2, // [2:2] is the sub-list for method output_type
256 2, // [2:2] is the sub-list for method input_type
257 2, // [2:2] is the sub-list for extension type_name
258 2, // [2:2] is the sub-list for extension extendee
259 0, // [0:2] is the sub-list for field type_name
260 }
261
262 func init() { file_google_home_enterprise_sdm_v1_device_proto_init() }
263 func file_google_home_enterprise_sdm_v1_device_proto_init() {
264 if File_google_home_enterprise_sdm_v1_device_proto != nil {
265 return
266 }
267 if !protoimpl.UnsafeEnabled {
268 file_google_home_enterprise_sdm_v1_device_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
269 switch v := v.(*Device); i {
270 case 0:
271 return &v.state
272 case 1:
273 return &v.sizeCache
274 case 2:
275 return &v.unknownFields
276 default:
277 return nil
278 }
279 }
280 file_google_home_enterprise_sdm_v1_device_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
281 switch v := v.(*ParentRelation); i {
282 case 0:
283 return &v.state
284 case 1:
285 return &v.sizeCache
286 case 2:
287 return &v.unknownFields
288 default:
289 return nil
290 }
291 }
292 }
293 type x struct{}
294 out := protoimpl.TypeBuilder{
295 File: protoimpl.DescBuilder{
296 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
297 RawDescriptor: file_google_home_enterprise_sdm_v1_device_proto_rawDesc,
298 NumEnums: 0,
299 NumMessages: 2,
300 NumExtensions: 0,
301 NumServices: 0,
302 },
303 GoTypes: file_google_home_enterprise_sdm_v1_device_proto_goTypes,
304 DependencyIndexes: file_google_home_enterprise_sdm_v1_device_proto_depIdxs,
305 MessageInfos: file_google_home_enterprise_sdm_v1_device_proto_msgTypes,
306 }.Build()
307 File_google_home_enterprise_sdm_v1_device_proto = out.File
308 file_google_home_enterprise_sdm_v1_device_proto_rawDesc = nil
309 file_google_home_enterprise_sdm_v1_device_proto_goTypes = nil
310 file_google_home_enterprise_sdm_v1_device_proto_depIdxs = nil
311 }