...

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

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

     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/global_intent_event.proto
    20  
    21  package interactionmodel
    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  // Defines a global intent handler. Global intent events are scoped to the
    40  // entire Actions project and may be overridden by intent handlers in a scene.
    41  // Intent names must be unique within an Actions project.
    42  //
    43  // Global intents can be matched anytime during a session, allowing users to
    44  // access common flows like  "get help" or "go back home." They can also be
    45  // used to deep link users into specific flows when they invoke an Action.
    46  //
    47  // Note, the intent name is specified in the name of the file.
    48  type GlobalIntentEvent struct {
    49  	state         protoimpl.MessageState
    50  	sizeCache     protoimpl.SizeCache
    51  	unknownFields protoimpl.UnknownFields
    52  
    53  	// Optional. Destination scene which the conversation should jump to. The state of the
    54  	// current scene is destroyed on the transition.
    55  	TransitionToScene string `protobuf:"bytes,1,opt,name=transition_to_scene,json=transitionToScene,proto3" json:"transition_to_scene,omitempty"`
    56  	// Optional. Event handler which is triggered when the intent is matched. Should execute
    57  	// before transitioning to the destination scene. Useful to generate Prompts
    58  	// in response to events.
    59  	Handler *EventHandler `protobuf:"bytes,2,opt,name=handler,proto3" json:"handler,omitempty"`
    60  }
    61  
    62  func (x *GlobalIntentEvent) Reset() {
    63  	*x = GlobalIntentEvent{}
    64  	if protoimpl.UnsafeEnabled {
    65  		mi := &file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes[0]
    66  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67  		ms.StoreMessageInfo(mi)
    68  	}
    69  }
    70  
    71  func (x *GlobalIntentEvent) String() string {
    72  	return protoimpl.X.MessageStringOf(x)
    73  }
    74  
    75  func (*GlobalIntentEvent) ProtoMessage() {}
    76  
    77  func (x *GlobalIntentEvent) ProtoReflect() protoreflect.Message {
    78  	mi := &file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes[0]
    79  	if protoimpl.UnsafeEnabled && x != nil {
    80  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    81  		if ms.LoadMessageInfo() == nil {
    82  			ms.StoreMessageInfo(mi)
    83  		}
    84  		return ms
    85  	}
    86  	return mi.MessageOf(x)
    87  }
    88  
    89  // Deprecated: Use GlobalIntentEvent.ProtoReflect.Descriptor instead.
    90  func (*GlobalIntentEvent) Descriptor() ([]byte, []int) {
    91  	return file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescGZIP(), []int{0}
    92  }
    93  
    94  func (x *GlobalIntentEvent) GetTransitionToScene() string {
    95  	if x != nil {
    96  		return x.TransitionToScene
    97  	}
    98  	return ""
    99  }
   100  
   101  func (x *GlobalIntentEvent) GetHandler() *EventHandler {
   102  	if x != nil {
   103  		return x.Handler
   104  	}
   105  	return nil
   106  }
   107  
   108  var File_google_actions_sdk_v2_interactionmodel_global_intent_event_proto protoreflect.FileDescriptor
   109  
   110  var file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDesc = []byte{
   111  	0x0a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   112  	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
   113  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x5f,
   114  	0x69, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
   115  	0x74, 0x6f, 0x12, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f,
   116  	0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61,
   117  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x1a, 0x3a, 0x67, 0x6f, 0x6f, 0x67,
   118  	0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76,
   119  	0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64,
   120  	0x65, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72,
   121  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
   122  	0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
   123  	0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x11, 0x47, 0x6c, 0x6f, 0x62,
   124  	0x61, 0x6c, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x33, 0x0a,
   125  	0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x6f, 0x5f, 0x73,
   126  	0x63, 0x65, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52,
   127  	0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x53, 0x63, 0x65,
   128  	0x6e, 0x65, 0x12, 0x53, 0x0a, 0x07, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20,
   129  	0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74,
   130  	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65,
   131  	0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x45, 0x76, 0x65,
   132  	0x6e, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07,
   133  	0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x42, 0x9e, 0x01, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e,
   134  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
   135  	0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
   136  	0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x42, 0x16, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x49, 0x6e,
   137  	0x74, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
   138  	0x5a, 0x56, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e,
   139  	0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f,
   140  	0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
   141  	0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69,
   142  	0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
   143  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   144  }
   145  
   146  var (
   147  	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescOnce sync.Once
   148  	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDesc
   149  )
   150  
   151  func file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescGZIP() []byte {
   152  	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescOnce.Do(func() {
   153  		file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescData)
   154  	})
   155  	return file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDescData
   156  }
   157  
   158  var file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   159  var file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_goTypes = []interface{}{
   160  	(*GlobalIntentEvent)(nil), // 0: google.actions.sdk.v2.interactionmodel.GlobalIntentEvent
   161  	(*EventHandler)(nil),      // 1: google.actions.sdk.v2.interactionmodel.EventHandler
   162  }
   163  var file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_depIdxs = []int32{
   164  	1, // 0: google.actions.sdk.v2.interactionmodel.GlobalIntentEvent.handler:type_name -> google.actions.sdk.v2.interactionmodel.EventHandler
   165  	1, // [1:1] is the sub-list for method output_type
   166  	1, // [1:1] is the sub-list for method input_type
   167  	1, // [1:1] is the sub-list for extension type_name
   168  	1, // [1:1] is the sub-list for extension extendee
   169  	0, // [0:1] is the sub-list for field type_name
   170  }
   171  
   172  func init() { file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_init() }
   173  func file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_init() {
   174  	if File_google_actions_sdk_v2_interactionmodel_global_intent_event_proto != nil {
   175  		return
   176  	}
   177  	file_google_actions_sdk_v2_interactionmodel_event_handler_proto_init()
   178  	if !protoimpl.UnsafeEnabled {
   179  		file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   180  			switch v := v.(*GlobalIntentEvent); i {
   181  			case 0:
   182  				return &v.state
   183  			case 1:
   184  				return &v.sizeCache
   185  			case 2:
   186  				return &v.unknownFields
   187  			default:
   188  				return nil
   189  			}
   190  		}
   191  	}
   192  	type x struct{}
   193  	out := protoimpl.TypeBuilder{
   194  		File: protoimpl.DescBuilder{
   195  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   196  			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDesc,
   197  			NumEnums:      0,
   198  			NumMessages:   1,
   199  			NumExtensions: 0,
   200  			NumServices:   0,
   201  		},
   202  		GoTypes:           file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_goTypes,
   203  		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_depIdxs,
   204  		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_msgTypes,
   205  	}.Build()
   206  	File_google_actions_sdk_v2_interactionmodel_global_intent_event_proto = out.File
   207  	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_rawDesc = nil
   208  	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_goTypes = nil
   209  	file_google_actions_sdk_v2_interactionmodel_global_intent_event_proto_depIdxs = nil
   210  }
   211  

View as plain text