...

Source file src/google.golang.org/genproto/googleapis/actions/sdk/v2/conversation/link.pb.go

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

     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/conversation/prompt/content/link.proto
    20  
    21  package conversation
    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_LINK_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: "LINK_UNSPECIFIED",
    53  		1: "AMP",
    54  	}
    55  	UrlHint_value = map[string]int32{
    56  		"LINK_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_conversation_prompt_content_link_proto_enumTypes[0].Descriptor()
    73  }
    74  
    75  func (UrlHint) Type() protoreflect.EnumType {
    76  	return &file_google_actions_sdk_v2_conversation_prompt_content_link_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_conversation_prompt_content_link_proto_rawDescGZIP(), []int{0}
    86  }
    87  
    88  // Link content.
    89  type Link struct {
    90  	state         protoimpl.MessageState
    91  	sizeCache     protoimpl.SizeCache
    92  	unknownFields protoimpl.UnknownFields
    93  
    94  	// Name of the link
    95  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    96  	// What happens when a user opens the link
    97  	Open *OpenUrl `protobuf:"bytes,2,opt,name=open,proto3" json:"open,omitempty"`
    98  }
    99  
   100  func (x *Link) Reset() {
   101  	*x = Link{}
   102  	if protoimpl.UnsafeEnabled {
   103  		mi := &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[0]
   104  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   105  		ms.StoreMessageInfo(mi)
   106  	}
   107  }
   108  
   109  func (x *Link) String() string {
   110  	return protoimpl.X.MessageStringOf(x)
   111  }
   112  
   113  func (*Link) ProtoMessage() {}
   114  
   115  func (x *Link) ProtoReflect() protoreflect.Message {
   116  	mi := &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[0]
   117  	if protoimpl.UnsafeEnabled && x != nil {
   118  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   119  		if ms.LoadMessageInfo() == nil {
   120  			ms.StoreMessageInfo(mi)
   121  		}
   122  		return ms
   123  	}
   124  	return mi.MessageOf(x)
   125  }
   126  
   127  // Deprecated: Use Link.ProtoReflect.Descriptor instead.
   128  func (*Link) Descriptor() ([]byte, []int) {
   129  	return file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescGZIP(), []int{0}
   130  }
   131  
   132  func (x *Link) GetName() string {
   133  	if x != nil {
   134  		return x.Name
   135  	}
   136  	return ""
   137  }
   138  
   139  func (x *Link) GetOpen() *OpenUrl {
   140  	if x != nil {
   141  		return x.Open
   142  	}
   143  	return nil
   144  }
   145  
   146  // Action taken when a user opens a link.
   147  type OpenUrl struct {
   148  	state         protoimpl.MessageState
   149  	sizeCache     protoimpl.SizeCache
   150  	unknownFields protoimpl.UnknownFields
   151  
   152  	// The url field which could be any of:
   153  	// - http/https urls for opening an App-linked App or a webpage
   154  	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
   155  	// Indicates a hint for the url type.
   156  	Hint UrlHint `protobuf:"varint,2,opt,name=hint,proto3,enum=google.actions.sdk.v2.conversation.UrlHint" json:"hint,omitempty"`
   157  }
   158  
   159  func (x *OpenUrl) Reset() {
   160  	*x = OpenUrl{}
   161  	if protoimpl.UnsafeEnabled {
   162  		mi := &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[1]
   163  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   164  		ms.StoreMessageInfo(mi)
   165  	}
   166  }
   167  
   168  func (x *OpenUrl) String() string {
   169  	return protoimpl.X.MessageStringOf(x)
   170  }
   171  
   172  func (*OpenUrl) ProtoMessage() {}
   173  
   174  func (x *OpenUrl) ProtoReflect() protoreflect.Message {
   175  	mi := &file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[1]
   176  	if protoimpl.UnsafeEnabled && x != nil {
   177  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   178  		if ms.LoadMessageInfo() == nil {
   179  			ms.StoreMessageInfo(mi)
   180  		}
   181  		return ms
   182  	}
   183  	return mi.MessageOf(x)
   184  }
   185  
   186  // Deprecated: Use OpenUrl.ProtoReflect.Descriptor instead.
   187  func (*OpenUrl) Descriptor() ([]byte, []int) {
   188  	return file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescGZIP(), []int{1}
   189  }
   190  
   191  func (x *OpenUrl) GetUrl() string {
   192  	if x != nil {
   193  		return x.Url
   194  	}
   195  	return ""
   196  }
   197  
   198  func (x *OpenUrl) GetHint() UrlHint {
   199  	if x != nil {
   200  		return x.Hint
   201  	}
   202  	return UrlHint_LINK_UNSPECIFIED
   203  }
   204  
   205  var File_google_actions_sdk_v2_conversation_prompt_content_link_proto protoreflect.FileDescriptor
   206  
   207  var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDesc = []byte{
   208  	0x0a, 0x3c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   209  	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
   210  	0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x74,
   211  	0x65, 0x6e, 0x74, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x22,
   212  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
   213  	0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
   214  	0x6f, 0x6e, 0x22, 0x5b, 0x0a, 0x04, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
   215  	0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3f,
   216  	0x0a, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67,
   217  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
   218  	0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f,
   219  	0x6e, 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x52, 0x04, 0x6f, 0x70, 0x65, 0x6e, 0x22,
   220  	0x5c, 0x0a, 0x07, 0x4f, 0x70, 0x65, 0x6e, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72,
   221  	0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x3f, 0x0a, 0x04,
   222  	0x68, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f,
   223  	0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
   224  	0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
   225  	0x55, 0x72, 0x6c, 0x48, 0x69, 0x6e, 0x74, 0x52, 0x04, 0x68, 0x69, 0x6e, 0x74, 0x2a, 0x28, 0x0a,
   226  	0x07, 0x55, 0x72, 0x6c, 0x48, 0x69, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x10, 0x4c, 0x49, 0x4e, 0x4b,
   227  	0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x07,
   228  	0x0a, 0x03, 0x41, 0x4d, 0x50, 0x10, 0x01, 0x42, 0x85, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e,
   229  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
   230  	0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
   231  	0x6f, 0x6e, 0x42, 0x09, 0x4c, 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
   232  	0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
   233  	0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
   234  	0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73,
   235  	0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
   236  	0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62,
   237  	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   238  }
   239  
   240  var (
   241  	file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescOnce sync.Once
   242  	file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescData = file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDesc
   243  )
   244  
   245  func file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescGZIP() []byte {
   246  	file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescOnce.Do(func() {
   247  		file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescData)
   248  	})
   249  	return file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDescData
   250  }
   251  
   252  var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   253  var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   254  var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_goTypes = []interface{}{
   255  	(UrlHint)(0),    // 0: google.actions.sdk.v2.conversation.UrlHint
   256  	(*Link)(nil),    // 1: google.actions.sdk.v2.conversation.Link
   257  	(*OpenUrl)(nil), // 2: google.actions.sdk.v2.conversation.OpenUrl
   258  }
   259  var file_google_actions_sdk_v2_conversation_prompt_content_link_proto_depIdxs = []int32{
   260  	2, // 0: google.actions.sdk.v2.conversation.Link.open:type_name -> google.actions.sdk.v2.conversation.OpenUrl
   261  	0, // 1: google.actions.sdk.v2.conversation.OpenUrl.hint:type_name -> google.actions.sdk.v2.conversation.UrlHint
   262  	2, // [2:2] is the sub-list for method output_type
   263  	2, // [2:2] is the sub-list for method input_type
   264  	2, // [2:2] is the sub-list for extension type_name
   265  	2, // [2:2] is the sub-list for extension extendee
   266  	0, // [0:2] is the sub-list for field type_name
   267  }
   268  
   269  func init() { file_google_actions_sdk_v2_conversation_prompt_content_link_proto_init() }
   270  func file_google_actions_sdk_v2_conversation_prompt_content_link_proto_init() {
   271  	if File_google_actions_sdk_v2_conversation_prompt_content_link_proto != nil {
   272  		return
   273  	}
   274  	if !protoimpl.UnsafeEnabled {
   275  		file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   276  			switch v := v.(*Link); i {
   277  			case 0:
   278  				return &v.state
   279  			case 1:
   280  				return &v.sizeCache
   281  			case 2:
   282  				return &v.unknownFields
   283  			default:
   284  				return nil
   285  			}
   286  		}
   287  		file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   288  			switch v := v.(*OpenUrl); i {
   289  			case 0:
   290  				return &v.state
   291  			case 1:
   292  				return &v.sizeCache
   293  			case 2:
   294  				return &v.unknownFields
   295  			default:
   296  				return nil
   297  			}
   298  		}
   299  	}
   300  	type x struct{}
   301  	out := protoimpl.TypeBuilder{
   302  		File: protoimpl.DescBuilder{
   303  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   304  			RawDescriptor: file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDesc,
   305  			NumEnums:      1,
   306  			NumMessages:   2,
   307  			NumExtensions: 0,
   308  			NumServices:   0,
   309  		},
   310  		GoTypes:           file_google_actions_sdk_v2_conversation_prompt_content_link_proto_goTypes,
   311  		DependencyIndexes: file_google_actions_sdk_v2_conversation_prompt_content_link_proto_depIdxs,
   312  		EnumInfos:         file_google_actions_sdk_v2_conversation_prompt_content_link_proto_enumTypes,
   313  		MessageInfos:      file_google_actions_sdk_v2_conversation_prompt_content_link_proto_msgTypes,
   314  	}.Build()
   315  	File_google_actions_sdk_v2_conversation_prompt_content_link_proto = out.File
   316  	file_google_actions_sdk_v2_conversation_prompt_content_link_proto_rawDesc = nil
   317  	file_google_actions_sdk_v2_conversation_prompt_content_link_proto_goTypes = nil
   318  	file_google_actions_sdk_v2_conversation_prompt_content_link_proto_depIdxs = nil
   319  }
   320  

View as plain text