...

Source file src/google.golang.org/genproto/googleapis/home/graph/v1/device.pb.go

Documentation: google.golang.org/genproto/googleapis/home/graph/v1

     1  // Copyright 2024 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/graph/v1/device.proto
    20  
    21  package graph
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	structpb "google.golang.org/protobuf/types/known/structpb"
    30  )
    31  
    32  const (
    33  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // Third-party device definition.
    40  type Device struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  
    45  	// Third-party device ID.
    46  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    47  	// Hardware type of the device.
    48  	// See [device
    49  	// types](https://developers.home.google.com/cloud-to-cloud/guides).
    50  	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
    51  	// Traits supported by the device.
    52  	// See [device
    53  	// traits](https://developers.home.google.com/cloud-to-cloud/traits).
    54  	Traits []string `protobuf:"bytes,3,rep,name=traits,proto3" json:"traits,omitempty"`
    55  	// Names given to this device by your smart home Action.
    56  	Name *DeviceNames `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
    57  	// Indicates whether your smart home Action will report state of this device
    58  	// to Google via
    59  	// [ReportStateAndNotification][google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification].
    60  	WillReportState bool `protobuf:"varint,5,opt,name=will_report_state,json=willReportState,proto3" json:"will_report_state,omitempty"`
    61  	// Suggested name for the room where this device is installed.
    62  	// Google attempts to use this value during user setup.
    63  	RoomHint string `protobuf:"bytes,6,opt,name=room_hint,json=roomHint,proto3" json:"room_hint,omitempty"`
    64  	// Suggested name for the structure where this device is installed.
    65  	// Google attempts to use this value during user setup.
    66  	StructureHint string `protobuf:"bytes,7,opt,name=structure_hint,json=structureHint,proto3" json:"structure_hint,omitempty"`
    67  	// Device manufacturer, model, hardware version, and software version.
    68  	DeviceInfo *DeviceInfo `protobuf:"bytes,8,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
    69  	// Attributes for the traits supported by the device.
    70  	Attributes *structpb.Struct `protobuf:"bytes,9,opt,name=attributes,proto3" json:"attributes,omitempty"`
    71  	// Custom device attributes stored in Home Graph and provided to your
    72  	// smart home Action in each
    73  	// [QUERY](https://developers.home.google.com/cloud-to-cloud/intents/query)
    74  	// and
    75  	// [EXECUTE](https://developers.home.google.com/cloud-to-cloud/intents/execute)
    76  	// intent.
    77  	// Data in this object has a few constraints: No sensitive information,
    78  	// including but not limited to Personally Identifiable Information.
    79  	CustomData *structpb.Struct `protobuf:"bytes,10,opt,name=custom_data,json=customData,proto3" json:"custom_data,omitempty"`
    80  	// Alternate IDs associated with this device.
    81  	// This is used to identify cloud synced devices enabled for [local
    82  	// fulfillment](https://developers.home.google.com/local-home/overview).
    83  	OtherDeviceIds []*AgentOtherDeviceId `protobuf:"bytes,11,rep,name=other_device_ids,json=otherDeviceIds,proto3" json:"other_device_ids,omitempty"`
    84  	// Indicates whether your smart home Action will report notifications
    85  	// to Google for this device via
    86  	// [ReportStateAndNotification][google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification].
    87  	//
    88  	// If your smart home Action enables users to control device notifications,
    89  	// you should update this field and call
    90  	// [RequestSyncDevices][google.home.graph.v1.HomeGraphApiService.RequestSyncDevices].
    91  	NotificationSupportedByAgent bool `protobuf:"varint,12,opt,name=notification_supported_by_agent,json=notificationSupportedByAgent,proto3" json:"notification_supported_by_agent,omitempty"`
    92  }
    93  
    94  func (x *Device) Reset() {
    95  	*x = Device{}
    96  	if protoimpl.UnsafeEnabled {
    97  		mi := &file_google_home_graph_v1_device_proto_msgTypes[0]
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		ms.StoreMessageInfo(mi)
   100  	}
   101  }
   102  
   103  func (x *Device) String() string {
   104  	return protoimpl.X.MessageStringOf(x)
   105  }
   106  
   107  func (*Device) ProtoMessage() {}
   108  
   109  func (x *Device) ProtoReflect() protoreflect.Message {
   110  	mi := &file_google_home_graph_v1_device_proto_msgTypes[0]
   111  	if protoimpl.UnsafeEnabled && x != nil {
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		if ms.LoadMessageInfo() == nil {
   114  			ms.StoreMessageInfo(mi)
   115  		}
   116  		return ms
   117  	}
   118  	return mi.MessageOf(x)
   119  }
   120  
   121  // Deprecated: Use Device.ProtoReflect.Descriptor instead.
   122  func (*Device) Descriptor() ([]byte, []int) {
   123  	return file_google_home_graph_v1_device_proto_rawDescGZIP(), []int{0}
   124  }
   125  
   126  func (x *Device) GetId() string {
   127  	if x != nil {
   128  		return x.Id
   129  	}
   130  	return ""
   131  }
   132  
   133  func (x *Device) GetType() string {
   134  	if x != nil {
   135  		return x.Type
   136  	}
   137  	return ""
   138  }
   139  
   140  func (x *Device) GetTraits() []string {
   141  	if x != nil {
   142  		return x.Traits
   143  	}
   144  	return nil
   145  }
   146  
   147  func (x *Device) GetName() *DeviceNames {
   148  	if x != nil {
   149  		return x.Name
   150  	}
   151  	return nil
   152  }
   153  
   154  func (x *Device) GetWillReportState() bool {
   155  	if x != nil {
   156  		return x.WillReportState
   157  	}
   158  	return false
   159  }
   160  
   161  func (x *Device) GetRoomHint() string {
   162  	if x != nil {
   163  		return x.RoomHint
   164  	}
   165  	return ""
   166  }
   167  
   168  func (x *Device) GetStructureHint() string {
   169  	if x != nil {
   170  		return x.StructureHint
   171  	}
   172  	return ""
   173  }
   174  
   175  func (x *Device) GetDeviceInfo() *DeviceInfo {
   176  	if x != nil {
   177  		return x.DeviceInfo
   178  	}
   179  	return nil
   180  }
   181  
   182  func (x *Device) GetAttributes() *structpb.Struct {
   183  	if x != nil {
   184  		return x.Attributes
   185  	}
   186  	return nil
   187  }
   188  
   189  func (x *Device) GetCustomData() *structpb.Struct {
   190  	if x != nil {
   191  		return x.CustomData
   192  	}
   193  	return nil
   194  }
   195  
   196  func (x *Device) GetOtherDeviceIds() []*AgentOtherDeviceId {
   197  	if x != nil {
   198  		return x.OtherDeviceIds
   199  	}
   200  	return nil
   201  }
   202  
   203  func (x *Device) GetNotificationSupportedByAgent() bool {
   204  	if x != nil {
   205  		return x.NotificationSupportedByAgent
   206  	}
   207  	return false
   208  }
   209  
   210  // Identifiers used to describe the device.
   211  type DeviceNames struct {
   212  	state         protoimpl.MessageState
   213  	sizeCache     protoimpl.SizeCache
   214  	unknownFields protoimpl.UnknownFields
   215  
   216  	// Primary name of the device, generally provided by the user.
   217  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   218  	// Additional names provided by the user for the device.
   219  	Nicknames []string `protobuf:"bytes,2,rep,name=nicknames,proto3" json:"nicknames,omitempty"`
   220  	// List of names provided by the manufacturer rather than the user, such as
   221  	// serial numbers, SKUs, etc.
   222  	DefaultNames []string `protobuf:"bytes,3,rep,name=default_names,json=defaultNames,proto3" json:"default_names,omitempty"`
   223  }
   224  
   225  func (x *DeviceNames) Reset() {
   226  	*x = DeviceNames{}
   227  	if protoimpl.UnsafeEnabled {
   228  		mi := &file_google_home_graph_v1_device_proto_msgTypes[1]
   229  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   230  		ms.StoreMessageInfo(mi)
   231  	}
   232  }
   233  
   234  func (x *DeviceNames) String() string {
   235  	return protoimpl.X.MessageStringOf(x)
   236  }
   237  
   238  func (*DeviceNames) ProtoMessage() {}
   239  
   240  func (x *DeviceNames) ProtoReflect() protoreflect.Message {
   241  	mi := &file_google_home_graph_v1_device_proto_msgTypes[1]
   242  	if protoimpl.UnsafeEnabled && x != nil {
   243  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   244  		if ms.LoadMessageInfo() == nil {
   245  			ms.StoreMessageInfo(mi)
   246  		}
   247  		return ms
   248  	}
   249  	return mi.MessageOf(x)
   250  }
   251  
   252  // Deprecated: Use DeviceNames.ProtoReflect.Descriptor instead.
   253  func (*DeviceNames) Descriptor() ([]byte, []int) {
   254  	return file_google_home_graph_v1_device_proto_rawDescGZIP(), []int{1}
   255  }
   256  
   257  func (x *DeviceNames) GetName() string {
   258  	if x != nil {
   259  		return x.Name
   260  	}
   261  	return ""
   262  }
   263  
   264  func (x *DeviceNames) GetNicknames() []string {
   265  	if x != nil {
   266  		return x.Nicknames
   267  	}
   268  	return nil
   269  }
   270  
   271  func (x *DeviceNames) GetDefaultNames() []string {
   272  	if x != nil {
   273  		return x.DefaultNames
   274  	}
   275  	return nil
   276  }
   277  
   278  // Device information.
   279  type DeviceInfo struct {
   280  	state         protoimpl.MessageState
   281  	sizeCache     protoimpl.SizeCache
   282  	unknownFields protoimpl.UnknownFields
   283  
   284  	// Device manufacturer.
   285  	Manufacturer string `protobuf:"bytes,1,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
   286  	// Device model.
   287  	Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
   288  	// Device hardware version.
   289  	HwVersion string `protobuf:"bytes,3,opt,name=hw_version,json=hwVersion,proto3" json:"hw_version,omitempty"`
   290  	// Device software version.
   291  	SwVersion string `protobuf:"bytes,4,opt,name=sw_version,json=swVersion,proto3" json:"sw_version,omitempty"`
   292  }
   293  
   294  func (x *DeviceInfo) Reset() {
   295  	*x = DeviceInfo{}
   296  	if protoimpl.UnsafeEnabled {
   297  		mi := &file_google_home_graph_v1_device_proto_msgTypes[2]
   298  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   299  		ms.StoreMessageInfo(mi)
   300  	}
   301  }
   302  
   303  func (x *DeviceInfo) String() string {
   304  	return protoimpl.X.MessageStringOf(x)
   305  }
   306  
   307  func (*DeviceInfo) ProtoMessage() {}
   308  
   309  func (x *DeviceInfo) ProtoReflect() protoreflect.Message {
   310  	mi := &file_google_home_graph_v1_device_proto_msgTypes[2]
   311  	if protoimpl.UnsafeEnabled && x != nil {
   312  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   313  		if ms.LoadMessageInfo() == nil {
   314  			ms.StoreMessageInfo(mi)
   315  		}
   316  		return ms
   317  	}
   318  	return mi.MessageOf(x)
   319  }
   320  
   321  // Deprecated: Use DeviceInfo.ProtoReflect.Descriptor instead.
   322  func (*DeviceInfo) Descriptor() ([]byte, []int) {
   323  	return file_google_home_graph_v1_device_proto_rawDescGZIP(), []int{2}
   324  }
   325  
   326  func (x *DeviceInfo) GetManufacturer() string {
   327  	if x != nil {
   328  		return x.Manufacturer
   329  	}
   330  	return ""
   331  }
   332  
   333  func (x *DeviceInfo) GetModel() string {
   334  	if x != nil {
   335  		return x.Model
   336  	}
   337  	return ""
   338  }
   339  
   340  func (x *DeviceInfo) GetHwVersion() string {
   341  	if x != nil {
   342  		return x.HwVersion
   343  	}
   344  	return ""
   345  }
   346  
   347  func (x *DeviceInfo) GetSwVersion() string {
   348  	if x != nil {
   349  		return x.SwVersion
   350  	}
   351  	return ""
   352  }
   353  
   354  // Alternate third-party device ID.
   355  type AgentOtherDeviceId struct {
   356  	state         protoimpl.MessageState
   357  	sizeCache     protoimpl.SizeCache
   358  	unknownFields protoimpl.UnknownFields
   359  
   360  	// Project ID for your smart home Action.
   361  	AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
   362  	// Unique third-party device ID.
   363  	DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
   364  }
   365  
   366  func (x *AgentOtherDeviceId) Reset() {
   367  	*x = AgentOtherDeviceId{}
   368  	if protoimpl.UnsafeEnabled {
   369  		mi := &file_google_home_graph_v1_device_proto_msgTypes[3]
   370  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   371  		ms.StoreMessageInfo(mi)
   372  	}
   373  }
   374  
   375  func (x *AgentOtherDeviceId) String() string {
   376  	return protoimpl.X.MessageStringOf(x)
   377  }
   378  
   379  func (*AgentOtherDeviceId) ProtoMessage() {}
   380  
   381  func (x *AgentOtherDeviceId) ProtoReflect() protoreflect.Message {
   382  	mi := &file_google_home_graph_v1_device_proto_msgTypes[3]
   383  	if protoimpl.UnsafeEnabled && x != nil {
   384  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   385  		if ms.LoadMessageInfo() == nil {
   386  			ms.StoreMessageInfo(mi)
   387  		}
   388  		return ms
   389  	}
   390  	return mi.MessageOf(x)
   391  }
   392  
   393  // Deprecated: Use AgentOtherDeviceId.ProtoReflect.Descriptor instead.
   394  func (*AgentOtherDeviceId) Descriptor() ([]byte, []int) {
   395  	return file_google_home_graph_v1_device_proto_rawDescGZIP(), []int{3}
   396  }
   397  
   398  func (x *AgentOtherDeviceId) GetAgentId() string {
   399  	if x != nil {
   400  		return x.AgentId
   401  	}
   402  	return ""
   403  }
   404  
   405  func (x *AgentOtherDeviceId) GetDeviceId() string {
   406  	if x != nil {
   407  		return x.DeviceId
   408  	}
   409  	return ""
   410  }
   411  
   412  var File_google_home_graph_v1_device_proto protoreflect.FileDescriptor
   413  
   414  var file_google_home_graph_v1_device_proto_rawDesc = []byte{
   415  	0x0a, 0x21, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x68, 0x6f, 0x6d, 0x65, 0x2f, 0x67, 0x72,
   416  	0x61, 0x70, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72,
   417  	0x6f, 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x68, 0x6f, 0x6d, 0x65,
   418  	0x2e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   419  	0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63,
   420  	0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbc, 0x04, 0x0a, 0x06, 0x44, 0x65, 0x76, 0x69,
   421  	0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
   422  	0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   423  	0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73,
   424  	0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73, 0x12, 0x35,
   425  	0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67,
   426  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x68, 0x6f, 0x6d, 0x65, 0x2e, 0x67, 0x72, 0x61, 0x70, 0x68,
   427  	0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x52,
   428  	0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x77, 0x69, 0x6c, 0x6c, 0x5f, 0x72, 0x65,
   429  	0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
   430  	0x52, 0x0f, 0x77, 0x69, 0x6c, 0x6c, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x61, 0x74,
   431  	0x65, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x06,
   432  	0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x6f, 0x6f, 0x6d, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x25,
   433  	0x0a, 0x0e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x5f, 0x68, 0x69, 0x6e, 0x74,
   434  	0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72,
   435  	0x65, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x0b, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f,
   436  	0x69, 0x6e, 0x66, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f,
   437  	0x67, 0x6c, 0x65, 0x2e, 0x68, 0x6f, 0x6d, 0x65, 0x2e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2e, 0x76,
   438  	0x31, 0x2e, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x64, 0x65,
   439  	0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x37, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72,
   440  	0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67,
   441  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53,
   442  	0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
   443  	0x73, 0x12, 0x38, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x64, 0x61, 0x74, 0x61,
   444  	0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   445  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52,
   446  	0x0a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x12, 0x52, 0x0a, 0x10, 0x6f,
   447  	0x74, 0x68, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18,
   448  	0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x68,
   449  	0x6f, 0x6d, 0x65, 0x2e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x65,
   450  	0x6e, 0x74, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x52,
   451  	0x0e, 0x6f, 0x74, 0x68, 0x65, 0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x73, 0x12,
   452  	0x45, 0x0a, 0x1f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
   453  	0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x61, 0x67, 0x65,
   454  	0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69,
   455  	0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x42,
   456  	0x79, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x22, 0x64, 0x0a, 0x0b, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65,
   457  	0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
   458  	0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x69, 0x63,
   459  	0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x69,
   460  	0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75,
   461  	0x6c, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c,
   462  	0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x22, 0x84, 0x01, 0x0a,
   463  	0x0a, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x22, 0x0a, 0x0c, 0x6d,
   464  	0x61, 0x6e, 0x75, 0x66, 0x61, 0x63, 0x74, 0x75, 0x72, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
   465  	0x09, 0x52, 0x0c, 0x6d, 0x61, 0x6e, 0x75, 0x66, 0x61, 0x63, 0x74, 0x75, 0x72, 0x65, 0x72, 0x12,
   466  	0x14, 0x0a, 0x05, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
   467  	0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x77, 0x5f, 0x76, 0x65, 0x72, 0x73,
   468  	0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x77, 0x56, 0x65, 0x72,
   469  	0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x77, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
   470  	0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x77, 0x56, 0x65, 0x72, 0x73,
   471  	0x69, 0x6f, 0x6e, 0x22, 0x4c, 0x0a, 0x12, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4f, 0x74, 0x68, 0x65,
   472  	0x72, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x67, 0x65,
   473  	0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x67, 0x65,
   474  	0x6e, 0x74, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69,
   475  	0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49,
   476  	0x64, 0x42, 0x79, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   477  	0x68, 0x6f, 0x6d, 0x65, 0x2e, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x44,
   478  	0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x39, 0x67, 0x6f, 0x6f, 0x67,
   479  	0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65,
   480  	0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
   481  	0x73, 0x2f, 0x68, 0x6f, 0x6d, 0x65, 0x2f, 0x67, 0x72, 0x61, 0x70, 0x68, 0x2f, 0x76, 0x31, 0x3b,
   482  	0x67, 0x72, 0x61, 0x70, 0x68, 0xca, 0x02, 0x14, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x48,
   483  	0x6f, 0x6d, 0x65, 0x5c, 0x47, 0x72, 0x61, 0x70, 0x68, 0x5c, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,
   484  	0x6f, 0x74, 0x6f, 0x33,
   485  }
   486  
   487  var (
   488  	file_google_home_graph_v1_device_proto_rawDescOnce sync.Once
   489  	file_google_home_graph_v1_device_proto_rawDescData = file_google_home_graph_v1_device_proto_rawDesc
   490  )
   491  
   492  func file_google_home_graph_v1_device_proto_rawDescGZIP() []byte {
   493  	file_google_home_graph_v1_device_proto_rawDescOnce.Do(func() {
   494  		file_google_home_graph_v1_device_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_home_graph_v1_device_proto_rawDescData)
   495  	})
   496  	return file_google_home_graph_v1_device_proto_rawDescData
   497  }
   498  
   499  var file_google_home_graph_v1_device_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   500  var file_google_home_graph_v1_device_proto_goTypes = []interface{}{
   501  	(*Device)(nil),             // 0: google.home.graph.v1.Device
   502  	(*DeviceNames)(nil),        // 1: google.home.graph.v1.DeviceNames
   503  	(*DeviceInfo)(nil),         // 2: google.home.graph.v1.DeviceInfo
   504  	(*AgentOtherDeviceId)(nil), // 3: google.home.graph.v1.AgentOtherDeviceId
   505  	(*structpb.Struct)(nil),    // 4: google.protobuf.Struct
   506  }
   507  var file_google_home_graph_v1_device_proto_depIdxs = []int32{
   508  	1, // 0: google.home.graph.v1.Device.name:type_name -> google.home.graph.v1.DeviceNames
   509  	2, // 1: google.home.graph.v1.Device.device_info:type_name -> google.home.graph.v1.DeviceInfo
   510  	4, // 2: google.home.graph.v1.Device.attributes:type_name -> google.protobuf.Struct
   511  	4, // 3: google.home.graph.v1.Device.custom_data:type_name -> google.protobuf.Struct
   512  	3, // 4: google.home.graph.v1.Device.other_device_ids:type_name -> google.home.graph.v1.AgentOtherDeviceId
   513  	5, // [5:5] is the sub-list for method output_type
   514  	5, // [5:5] is the sub-list for method input_type
   515  	5, // [5:5] is the sub-list for extension type_name
   516  	5, // [5:5] is the sub-list for extension extendee
   517  	0, // [0:5] is the sub-list for field type_name
   518  }
   519  
   520  func init() { file_google_home_graph_v1_device_proto_init() }
   521  func file_google_home_graph_v1_device_proto_init() {
   522  	if File_google_home_graph_v1_device_proto != nil {
   523  		return
   524  	}
   525  	if !protoimpl.UnsafeEnabled {
   526  		file_google_home_graph_v1_device_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   527  			switch v := v.(*Device); i {
   528  			case 0:
   529  				return &v.state
   530  			case 1:
   531  				return &v.sizeCache
   532  			case 2:
   533  				return &v.unknownFields
   534  			default:
   535  				return nil
   536  			}
   537  		}
   538  		file_google_home_graph_v1_device_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   539  			switch v := v.(*DeviceNames); i {
   540  			case 0:
   541  				return &v.state
   542  			case 1:
   543  				return &v.sizeCache
   544  			case 2:
   545  				return &v.unknownFields
   546  			default:
   547  				return nil
   548  			}
   549  		}
   550  		file_google_home_graph_v1_device_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   551  			switch v := v.(*DeviceInfo); i {
   552  			case 0:
   553  				return &v.state
   554  			case 1:
   555  				return &v.sizeCache
   556  			case 2:
   557  				return &v.unknownFields
   558  			default:
   559  				return nil
   560  			}
   561  		}
   562  		file_google_home_graph_v1_device_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   563  			switch v := v.(*AgentOtherDeviceId); i {
   564  			case 0:
   565  				return &v.state
   566  			case 1:
   567  				return &v.sizeCache
   568  			case 2:
   569  				return &v.unknownFields
   570  			default:
   571  				return nil
   572  			}
   573  		}
   574  	}
   575  	type x struct{}
   576  	out := protoimpl.TypeBuilder{
   577  		File: protoimpl.DescBuilder{
   578  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   579  			RawDescriptor: file_google_home_graph_v1_device_proto_rawDesc,
   580  			NumEnums:      0,
   581  			NumMessages:   4,
   582  			NumExtensions: 0,
   583  			NumServices:   0,
   584  		},
   585  		GoTypes:           file_google_home_graph_v1_device_proto_goTypes,
   586  		DependencyIndexes: file_google_home_graph_v1_device_proto_depIdxs,
   587  		MessageInfos:      file_google_home_graph_v1_device_proto_msgTypes,
   588  	}.Build()
   589  	File_google_home_graph_v1_device_proto = out.File
   590  	file_google_home_graph_v1_device_proto_rawDesc = nil
   591  	file_google_home_graph_v1_device_proto_goTypes = nil
   592  	file_google_home_graph_v1_device_proto_depIdxs = nil
   593  }
   594  

View as plain text