...

Source file src/google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt/static_link_prompt.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/content/static_link_prompt.proto
    20  
    21  package prompt
    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  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  // Different types of url hints.
    39  type UrlHint int32
    40  
    41  const (
    42  	// Unspecified
    43  	UrlHint_HINT_UNSPECIFIED UrlHint = 0
    44  	// URL that points directly to AMP content, or to a canonical URL
    45  	// which refers to AMP content via `<link rel="amphtml">`.
    46  	UrlHint_AMP UrlHint = 1
    47  )
    48  
    49  // Enum value maps for UrlHint.
    50  var (
    51  	UrlHint_name = map[int32]string{
    52  		0: "HINT_UNSPECIFIED",
    53  		1: "AMP",
    54  	}
    55  	UrlHint_value = map[string]int32{
    56  		"HINT_UNSPECIFIED": 0,
    57  		"AMP":              1,
    58  	}
    59  )
    60  
    61  func (x UrlHint) Enum() *UrlHint {
    62  	p := new(UrlHint)
    63  	*p = x
    64  	return p
    65  }
    66  
    67  func (x UrlHint) String() string {
    68  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    69  }
    70  
    71  func (UrlHint) Descriptor() protoreflect.EnumDescriptor {
    72  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_enumTypes[0].Descriptor()
    73  }
    74  
    75  func (UrlHint) Type() protoreflect.EnumType {
    76  	return &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_enumTypes[0]
    77  }
    78  
    79  func (x UrlHint) Number() protoreflect.EnumNumber {
    80  	return protoreflect.EnumNumber(x)
    81  }
    82  
    83  // Deprecated: Use UrlHint.Descriptor instead.
    84  func (UrlHint) EnumDescriptor() ([]byte, []int) {
    85  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescGZIP(), []int{0}
    86  }
    87  
    88  // Defines a link which will be displayed as a suggestion chip and can be opened
    89  // by the user.
    90  type StaticLinkPrompt struct {
    91  	state         protoimpl.MessageState
    92  	sizeCache     protoimpl.SizeCache
    93  	unknownFields protoimpl.UnknownFields
    94  
    95  	// Name of the link
    96  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    97  	// Defines behavior when the user opens the link.
    98  	Open *OpenUrl `protobuf:"bytes,2,opt,name=open,proto3" json:"open,omitempty"`
    99  }
   100  
   101  func (x *StaticLinkPrompt) Reset() {
   102  	*x = StaticLinkPrompt{}
   103  	if protoimpl.UnsafeEnabled {
   104  		mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_msgTypes[0]
   105  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   106  		ms.StoreMessageInfo(mi)
   107  	}
   108  }
   109  
   110  func (x *StaticLinkPrompt) String() string {
   111  	return protoimpl.X.MessageStringOf(x)
   112  }
   113  
   114  func (*StaticLinkPrompt) ProtoMessage() {}
   115  
   116  func (x *StaticLinkPrompt) ProtoReflect() protoreflect.Message {
   117  	mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_msgTypes[0]
   118  	if protoimpl.UnsafeEnabled && x != nil {
   119  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   120  		if ms.LoadMessageInfo() == nil {
   121  			ms.StoreMessageInfo(mi)
   122  		}
   123  		return ms
   124  	}
   125  	return mi.MessageOf(x)
   126  }
   127  
   128  // Deprecated: Use StaticLinkPrompt.ProtoReflect.Descriptor instead.
   129  func (*StaticLinkPrompt) Descriptor() ([]byte, []int) {
   130  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescGZIP(), []int{0}
   131  }
   132  
   133  func (x *StaticLinkPrompt) GetName() string {
   134  	if x != nil {
   135  		return x.Name
   136  	}
   137  	return ""
   138  }
   139  
   140  func (x *StaticLinkPrompt) GetOpen() *OpenUrl {
   141  	if x != nil {
   142  		return x.Open
   143  	}
   144  	return nil
   145  }
   146  
   147  // Defines behavior when the user opens the link.
   148  type OpenUrl struct {
   149  	state         protoimpl.MessageState
   150  	sizeCache     protoimpl.SizeCache
   151  	unknownFields protoimpl.UnknownFields
   152  
   153  	// The url field which could be any of:
   154  	// - http/https urls for opening an App-linked App or a webpage
   155  	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
   156  	// Indicates a hint for the url type.
   157  	Hint UrlHint `protobuf:"varint,2,opt,name=hint,proto3,enum=google.actions.sdk.v2.interactionmodel.prompt.UrlHint" json:"hint,omitempty"`
   158  }
   159  
   160  func (x *OpenUrl) Reset() {
   161  	*x = OpenUrl{}
   162  	if protoimpl.UnsafeEnabled {
   163  		mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_msgTypes[1]
   164  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   165  		ms.StoreMessageInfo(mi)
   166  	}
   167  }
   168  
   169  func (x *OpenUrl) String() string {
   170  	return protoimpl.X.MessageStringOf(x)
   171  }
   172  
   173  func (*OpenUrl) ProtoMessage() {}
   174  
   175  func (x *OpenUrl) ProtoReflect() protoreflect.Message {
   176  	mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_msgTypes[1]
   177  	if protoimpl.UnsafeEnabled && x != nil {
   178  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   179  		if ms.LoadMessageInfo() == nil {
   180  			ms.StoreMessageInfo(mi)
   181  		}
   182  		return ms
   183  	}
   184  	return mi.MessageOf(x)
   185  }
   186  
   187  // Deprecated: Use OpenUrl.ProtoReflect.Descriptor instead.
   188  func (*OpenUrl) Descriptor() ([]byte, []int) {
   189  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescGZIP(), []int{1}
   190  }
   191  
   192  func (x *OpenUrl) GetUrl() string {
   193  	if x != nil {
   194  		return x.Url
   195  	}
   196  	return ""
   197  }
   198  
   199  func (x *OpenUrl) GetHint() UrlHint {
   200  	if x != nil {
   201  		return x.Hint
   202  	}
   203  	return UrlHint_HINT_UNSPECIFIED
   204  }
   205  
   206  var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto protoreflect.FileDescriptor
   207  
   208  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDesc = []byte{
   209  	0x0a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   210  	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
   211  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
   212  	0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6c,
   213  	0x69, 0x6e, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   214  	0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   215  	0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
   216  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x22,
   217  	0x72, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x6f,
   218  	0x6d, 0x70, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
   219  	0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x4a, 0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18,
   220  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
   221  	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e,
   222  	0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70,
   223  	0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x52, 0x04, 0x6f,
   224  	0x70, 0x65, 0x6e, 0x22, 0x67, 0x0a, 0x07, 0x4f, 0x70, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x10,
   225  	0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c,
   226  	0x12, 0x4a, 0x0a, 0x04, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36,
   227  	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
   228  	0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69,
   229  	0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x55,
   230  	0x72, 0x6c, 0x48, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x68, 0x69, 0x6e, 0x74, 0x2a, 0x28, 0x0a, 0x07,
   231  	0x55, 0x72, 0x6c, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x10, 0x48, 0x49, 0x4e, 0x54, 0x5f,
   232  	0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07, 0x0a,
   233  	0x03, 0x41, 0x4d, 0x50, 0x10, 0x01, 0x42, 0xa1, 0x01, 0x0a, 0x31, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
   234  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
   235  	0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   236  	0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x15, 0x53, 0x74,
   237  	0x61, 0x74, 0x69, 0x63, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x72,
   238  	0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
   239  	0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
   240  	0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74,
   241  	0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65,
   242  	0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f,
   243  	0x6d, 0x70, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   244  	0x6f, 0x33,
   245  }
   246  
   247  var (
   248  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescOnce sync.Once
   249  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDesc
   250  )
   251  
   252  func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescGZIP() []byte {
   253  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescOnce.Do(func() {
   254  		file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescData)
   255  	})
   256  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDescData
   257  }
   258  
   259  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   260  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   261  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_goTypes = []interface{}{
   262  	(UrlHint)(0),             // 0: google.actions.sdk.v2.interactionmodel.prompt.UrlHint
   263  	(*StaticLinkPrompt)(nil), // 1: google.actions.sdk.v2.interactionmodel.prompt.StaticLinkPrompt
   264  	(*OpenUrl)(nil),          // 2: google.actions.sdk.v2.interactionmodel.prompt.OpenUrl
   265  }
   266  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_depIdxs = []int32{
   267  	2, // 0: google.actions.sdk.v2.interactionmodel.prompt.StaticLinkPrompt.open:type_name -> google.actions.sdk.v2.interactionmodel.prompt.OpenUrl
   268  	0, // 1: google.actions.sdk.v2.interactionmodel.prompt.OpenUrl.hint:type_name -> google.actions.sdk.v2.interactionmodel.prompt.UrlHint
   269  	2, // [2:2] is the sub-list for method output_type
   270  	2, // [2:2] is the sub-list for method input_type
   271  	2, // [2:2] is the sub-list for extension type_name
   272  	2, // [2:2] is the sub-list for extension extendee
   273  	0, // [0:2] is the sub-list for field type_name
   274  }
   275  
   276  func init() {
   277  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_init()
   278  }
   279  func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_init() {
   280  	if File_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto != nil {
   281  		return
   282  	}
   283  	if !protoimpl.UnsafeEnabled {
   284  		file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   285  			switch v := v.(*StaticLinkPrompt); i {
   286  			case 0:
   287  				return &v.state
   288  			case 1:
   289  				return &v.sizeCache
   290  			case 2:
   291  				return &v.unknownFields
   292  			default:
   293  				return nil
   294  			}
   295  		}
   296  		file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   297  			switch v := v.(*OpenUrl); i {
   298  			case 0:
   299  				return &v.state
   300  			case 1:
   301  				return &v.sizeCache
   302  			case 2:
   303  				return &v.unknownFields
   304  			default:
   305  				return nil
   306  			}
   307  		}
   308  	}
   309  	type x struct{}
   310  	out := protoimpl.TypeBuilder{
   311  		File: protoimpl.DescBuilder{
   312  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   313  			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDesc,
   314  			NumEnums:      1,
   315  			NumMessages:   2,
   316  			NumExtensions: 0,
   317  			NumServices:   0,
   318  		},
   319  		GoTypes:           file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_goTypes,
   320  		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_depIdxs,
   321  		EnumInfos:         file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_enumTypes,
   322  		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_msgTypes,
   323  	}.Build()
   324  	File_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto = out.File
   325  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_rawDesc = nil
   326  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_goTypes = nil
   327  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_depIdxs = nil
   328  }
   329  

View as plain text