...

Source file src/google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt/suggestion.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/suggestion.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  // Represents a suggestion chip, a UI element shown to the user for convenience.
    40  type Suggestion struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  
    45  	// Required. The text shown in the suggestion chip. When tapped, this text will be
    46  	// posted back to the conversation verbatim as if the user had typed it.
    47  	// Each title must be unique among the set of suggestion chips.
    48  	// Max 25 chars
    49  	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
    50  }
    51  
    52  func (x *Suggestion) Reset() {
    53  	*x = Suggestion{}
    54  	if protoimpl.UnsafeEnabled {
    55  		mi := &file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_msgTypes[0]
    56  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    57  		ms.StoreMessageInfo(mi)
    58  	}
    59  }
    60  
    61  func (x *Suggestion) String() string {
    62  	return protoimpl.X.MessageStringOf(x)
    63  }
    64  
    65  func (*Suggestion) ProtoMessage() {}
    66  
    67  func (x *Suggestion) ProtoReflect() protoreflect.Message {
    68  	mi := &file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_msgTypes[0]
    69  	if protoimpl.UnsafeEnabled && x != nil {
    70  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    71  		if ms.LoadMessageInfo() == nil {
    72  			ms.StoreMessageInfo(mi)
    73  		}
    74  		return ms
    75  	}
    76  	return mi.MessageOf(x)
    77  }
    78  
    79  // Deprecated: Use Suggestion.ProtoReflect.Descriptor instead.
    80  func (*Suggestion) Descriptor() ([]byte, []int) {
    81  	return file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDescGZIP(), []int{0}
    82  }
    83  
    84  func (x *Suggestion) GetTitle() string {
    85  	if x != nil {
    86  		return x.Title
    87  	}
    88  	return ""
    89  }
    90  
    91  var File_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto protoreflect.FileDescriptor
    92  
    93  var file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDesc = []byte{
    94  	0x0a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
    95  	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
    96  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
    97  	0x73, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
    98  	0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
    99  	0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
   100  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x1a,
   101  	0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,
   102  	0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   103  	0x22, 0x27, 0x0a, 0x0a, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x19,
   104  	0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
   105  	0x41, 0x02, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, 0x9b, 0x01, 0x0a, 0x31, 0x63, 0x6f,
   106  	0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   107  	0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
   108  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42,
   109  	0x0f, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f,
   110  	0x50, 0x01, 0x5a, 0x53, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
   111  	0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
   112  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   113  	0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63,
   114  	0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74,
   115  	0x3b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   116  }
   117  
   118  var (
   119  	file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDescOnce sync.Once
   120  	file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDesc
   121  )
   122  
   123  func file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDescGZIP() []byte {
   124  	file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDescOnce.Do(func() {
   125  		file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDescData)
   126  	})
   127  	return file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDescData
   128  }
   129  
   130  var file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   131  var file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_goTypes = []interface{}{
   132  	(*Suggestion)(nil), // 0: google.actions.sdk.v2.interactionmodel.prompt.Suggestion
   133  }
   134  var file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_depIdxs = []int32{
   135  	0, // [0:0] is the sub-list for method output_type
   136  	0, // [0:0] is the sub-list for method input_type
   137  	0, // [0:0] is the sub-list for extension type_name
   138  	0, // [0:0] is the sub-list for extension extendee
   139  	0, // [0:0] is the sub-list for field type_name
   140  }
   141  
   142  func init() { file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_init() }
   143  func file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_init() {
   144  	if File_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto != nil {
   145  		return
   146  	}
   147  	if !protoimpl.UnsafeEnabled {
   148  		file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   149  			switch v := v.(*Suggestion); i {
   150  			case 0:
   151  				return &v.state
   152  			case 1:
   153  				return &v.sizeCache
   154  			case 2:
   155  				return &v.unknownFields
   156  			default:
   157  				return nil
   158  			}
   159  		}
   160  	}
   161  	type x struct{}
   162  	out := protoimpl.TypeBuilder{
   163  		File: protoimpl.DescBuilder{
   164  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   165  			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDesc,
   166  			NumEnums:      0,
   167  			NumMessages:   1,
   168  			NumExtensions: 0,
   169  			NumServices:   0,
   170  		},
   171  		GoTypes:           file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_goTypes,
   172  		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_depIdxs,
   173  		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_msgTypes,
   174  	}.Build()
   175  	File_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto = out.File
   176  	file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_rawDesc = nil
   177  	file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_goTypes = nil
   178  	file_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto_depIdxs = nil
   179  }
   180  

View as plain text