...

Source file src/google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt/surface_capabilities.pb.go

Documentation: google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt

     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/actions/sdk/v2/interactionmodel/prompt/surface_capabilities.proto
    20  
    21  package prompt
    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  )
    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  // Capabilities the device surface supports at the time of the request.
    40  type SurfaceCapabilities_Capability int32
    41  
    42  const (
    43  	// Unspecified surface capability.
    44  	SurfaceCapabilities_UNSPECIFIED SurfaceCapabilities_Capability = 0
    45  	// Device can speak to the user via text-to-speech or SSML.
    46  	SurfaceCapabilities_SPEECH SurfaceCapabilities_Capability = 1
    47  	// Device can display rich responses like cards, lists and tables.
    48  	SurfaceCapabilities_RICH_RESPONSE SurfaceCapabilities_Capability = 2
    49  	// Device can play long form audio media like music and podcasts.
    50  	SurfaceCapabilities_LONG_FORM_AUDIO SurfaceCapabilities_Capability = 3
    51  	// Device can display a interactive canvas response.
    52  	SurfaceCapabilities_INTERACTIVE_CANVAS SurfaceCapabilities_Capability = 4
    53  	// Device can use web links in rich responses to open a web browser.
    54  	SurfaceCapabilities_WEB_LINK SurfaceCapabilities_Capability = 5
    55  	// Device can support saving and fetching home storage.
    56  	SurfaceCapabilities_HOME_STORAGE SurfaceCapabilities_Capability = 6
    57  )
    58  
    59  // Enum value maps for SurfaceCapabilities_Capability.
    60  var (
    61  	SurfaceCapabilities_Capability_name = map[int32]string{
    62  		0: "UNSPECIFIED",
    63  		1: "SPEECH",
    64  		2: "RICH_RESPONSE",
    65  		3: "LONG_FORM_AUDIO",
    66  		4: "INTERACTIVE_CANVAS",
    67  		5: "WEB_LINK",
    68  		6: "HOME_STORAGE",
    69  	}
    70  	SurfaceCapabilities_Capability_value = map[string]int32{
    71  		"UNSPECIFIED":        0,
    72  		"SPEECH":             1,
    73  		"RICH_RESPONSE":      2,
    74  		"LONG_FORM_AUDIO":    3,
    75  		"INTERACTIVE_CANVAS": 4,
    76  		"WEB_LINK":           5,
    77  		"HOME_STORAGE":       6,
    78  	}
    79  )
    80  
    81  func (x SurfaceCapabilities_Capability) Enum() *SurfaceCapabilities_Capability {
    82  	p := new(SurfaceCapabilities_Capability)
    83  	*p = x
    84  	return p
    85  }
    86  
    87  func (x SurfaceCapabilities_Capability) String() string {
    88  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    89  }
    90  
    91  func (SurfaceCapabilities_Capability) Descriptor() protoreflect.EnumDescriptor {
    92  	return file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_enumTypes[0].Descriptor()
    93  }
    94  
    95  func (SurfaceCapabilities_Capability) Type() protoreflect.EnumType {
    96  	return &file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_enumTypes[0]
    97  }
    98  
    99  func (x SurfaceCapabilities_Capability) Number() protoreflect.EnumNumber {
   100  	return protoreflect.EnumNumber(x)
   101  }
   102  
   103  // Deprecated: Use SurfaceCapabilities_Capability.Descriptor instead.
   104  func (SurfaceCapabilities_Capability) EnumDescriptor() ([]byte, []int) {
   105  	return file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescGZIP(), []int{0, 0}
   106  }
   107  
   108  // Represents the surface the user is using to make a request to the Action.
   109  type SurfaceCapabilities struct {
   110  	state         protoimpl.MessageState
   111  	sizeCache     protoimpl.SizeCache
   112  	unknownFields protoimpl.UnknownFields
   113  
   114  	// Required. The capabilities of the surface making a request to the Action.
   115  	Capabilities []SurfaceCapabilities_Capability `protobuf:"varint,1,rep,packed,name=capabilities,proto3,enum=google.actions.sdk.v2.interactionmodel.prompt.SurfaceCapabilities_Capability" json:"capabilities,omitempty"`
   116  }
   117  
   118  func (x *SurfaceCapabilities) Reset() {
   119  	*x = SurfaceCapabilities{}
   120  	if protoimpl.UnsafeEnabled {
   121  		mi := &file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_msgTypes[0]
   122  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   123  		ms.StoreMessageInfo(mi)
   124  	}
   125  }
   126  
   127  func (x *SurfaceCapabilities) String() string {
   128  	return protoimpl.X.MessageStringOf(x)
   129  }
   130  
   131  func (*SurfaceCapabilities) ProtoMessage() {}
   132  
   133  func (x *SurfaceCapabilities) ProtoReflect() protoreflect.Message {
   134  	mi := &file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_msgTypes[0]
   135  	if protoimpl.UnsafeEnabled && x != nil {
   136  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   137  		if ms.LoadMessageInfo() == nil {
   138  			ms.StoreMessageInfo(mi)
   139  		}
   140  		return ms
   141  	}
   142  	return mi.MessageOf(x)
   143  }
   144  
   145  // Deprecated: Use SurfaceCapabilities.ProtoReflect.Descriptor instead.
   146  func (*SurfaceCapabilities) Descriptor() ([]byte, []int) {
   147  	return file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescGZIP(), []int{0}
   148  }
   149  
   150  func (x *SurfaceCapabilities) GetCapabilities() []SurfaceCapabilities_Capability {
   151  	if x != nil {
   152  		return x.Capabilities
   153  	}
   154  	return nil
   155  }
   156  
   157  var File_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto protoreflect.FileDescriptor
   158  
   159  var file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDesc = []byte{
   160  	0x0a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   161  	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
   162  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
   163  	0x73, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69,
   164  	0x74, 0x69, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67,
   165  	0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76,
   166  	0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64,
   167  	0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   168  	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61,
   169  	0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x99, 0x02, 0x0a, 0x13, 0x53,
   170  	0x75, 0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69,
   171  	0x65, 0x73, 0x12, 0x76, 0x0a, 0x0c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69,
   172  	0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x4d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
   173  	0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32,
   174  	0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65,
   175  	0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x75, 0x72, 0x66, 0x61, 0x63, 0x65,
   176  	0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x2e, 0x43, 0x61, 0x70,
   177  	0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x63, 0x61,
   178  	0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x0a, 0x43,
   179  	0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53,
   180  	0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x50,
   181  	0x45, 0x45, 0x43, 0x48, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x52, 0x49, 0x43, 0x48, 0x5f, 0x52,
   182  	0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x4c, 0x4f, 0x4e,
   183  	0x47, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x03, 0x12, 0x16,
   184  	0x0a, 0x12, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x5f, 0x43, 0x41,
   185  	0x4e, 0x56, 0x41, 0x53, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x57, 0x45, 0x42, 0x5f, 0x4c, 0x49,
   186  	0x4e, 0x4b, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x48, 0x4f, 0x4d, 0x45, 0x5f, 0x53, 0x54, 0x4f,
   187  	0x52, 0x41, 0x47, 0x45, 0x10, 0x06, 0x42, 0xa4, 0x01, 0x0a, 0x31, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
   188  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
   189  	0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   190  	0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x18, 0x53, 0x75,
   191  	0x72, 0x66, 0x61, 0x63, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65,
   192  	0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   193  	0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70,
   194  	0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f,
   195  	0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69,
   196  	0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f,
   197  	0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x62, 0x06, 0x70,
   198  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   199  }
   200  
   201  var (
   202  	file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescOnce sync.Once
   203  	file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDesc
   204  )
   205  
   206  func file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescGZIP() []byte {
   207  	file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescOnce.Do(func() {
   208  		file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescData)
   209  	})
   210  	return file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDescData
   211  }
   212  
   213  var file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   214  var file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   215  var file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_goTypes = []interface{}{
   216  	(SurfaceCapabilities_Capability)(0), // 0: google.actions.sdk.v2.interactionmodel.prompt.SurfaceCapabilities.Capability
   217  	(*SurfaceCapabilities)(nil),         // 1: google.actions.sdk.v2.interactionmodel.prompt.SurfaceCapabilities
   218  }
   219  var file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_depIdxs = []int32{
   220  	0, // 0: google.actions.sdk.v2.interactionmodel.prompt.SurfaceCapabilities.capabilities:type_name -> google.actions.sdk.v2.interactionmodel.prompt.SurfaceCapabilities.Capability
   221  	1, // [1:1] is the sub-list for method output_type
   222  	1, // [1:1] is the sub-list for method input_type
   223  	1, // [1:1] is the sub-list for extension type_name
   224  	1, // [1:1] is the sub-list for extension extendee
   225  	0, // [0:1] is the sub-list for field type_name
   226  }
   227  
   228  func init() { file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_init() }
   229  func file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_init() {
   230  	if File_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto != nil {
   231  		return
   232  	}
   233  	if !protoimpl.UnsafeEnabled {
   234  		file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   235  			switch v := v.(*SurfaceCapabilities); i {
   236  			case 0:
   237  				return &v.state
   238  			case 1:
   239  				return &v.sizeCache
   240  			case 2:
   241  				return &v.unknownFields
   242  			default:
   243  				return nil
   244  			}
   245  		}
   246  	}
   247  	type x struct{}
   248  	out := protoimpl.TypeBuilder{
   249  		File: protoimpl.DescBuilder{
   250  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   251  			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDesc,
   252  			NumEnums:      1,
   253  			NumMessages:   1,
   254  			NumExtensions: 0,
   255  			NumServices:   0,
   256  		},
   257  		GoTypes:           file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_goTypes,
   258  		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_depIdxs,
   259  		EnumInfos:         file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_enumTypes,
   260  		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_msgTypes,
   261  	}.Build()
   262  	File_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto = out.File
   263  	file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_rawDesc = nil
   264  	file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_goTypes = nil
   265  	file_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto_depIdxs = nil
   266  }
   267  

View as plain text