...

Source file src/google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt/static_image_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_image_prompt.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  // Possible image display options for affecting the presentation of the image.
    40  // This should be used for when the image's aspect ratio does not match the
    41  // image container's aspect ratio.
    42  type StaticImagePrompt_ImageFill int32
    43  
    44  const (
    45  	// ImageFill unspecified.
    46  	StaticImagePrompt_UNSPECIFIED StaticImagePrompt_ImageFill = 0
    47  	// Fill the gaps between the image and the image container with gray bars.
    48  	StaticImagePrompt_GRAY StaticImagePrompt_ImageFill = 1
    49  	// Fill the gaps between the image and the image container with white bars.
    50  	StaticImagePrompt_WHITE StaticImagePrompt_ImageFill = 2
    51  	// Image is scaled such that the image width and height match or exceed the
    52  	// container dimensions. This may crop the top and bottom of the image if
    53  	// the scaled image height is greater than the container height, or crop the
    54  	// left and right of the image if the scaled image width is greater than the
    55  	// container width. This is similar to "Zoom Mode" on a widescreen TV when
    56  	// playing a 4:3 video.
    57  	StaticImagePrompt_CROPPED StaticImagePrompt_ImageFill = 3
    58  )
    59  
    60  // Enum value maps for StaticImagePrompt_ImageFill.
    61  var (
    62  	StaticImagePrompt_ImageFill_name = map[int32]string{
    63  		0: "UNSPECIFIED",
    64  		1: "GRAY",
    65  		2: "WHITE",
    66  		3: "CROPPED",
    67  	}
    68  	StaticImagePrompt_ImageFill_value = map[string]int32{
    69  		"UNSPECIFIED": 0,
    70  		"GRAY":        1,
    71  		"WHITE":       2,
    72  		"CROPPED":     3,
    73  	}
    74  )
    75  
    76  func (x StaticImagePrompt_ImageFill) Enum() *StaticImagePrompt_ImageFill {
    77  	p := new(StaticImagePrompt_ImageFill)
    78  	*p = x
    79  	return p
    80  }
    81  
    82  func (x StaticImagePrompt_ImageFill) String() string {
    83  	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    84  }
    85  
    86  func (StaticImagePrompt_ImageFill) Descriptor() protoreflect.EnumDescriptor {
    87  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_enumTypes[0].Descriptor()
    88  }
    89  
    90  func (StaticImagePrompt_ImageFill) Type() protoreflect.EnumType {
    91  	return &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_enumTypes[0]
    92  }
    93  
    94  func (x StaticImagePrompt_ImageFill) Number() protoreflect.EnumNumber {
    95  	return protoreflect.EnumNumber(x)
    96  }
    97  
    98  // Deprecated: Use StaticImagePrompt_ImageFill.Descriptor instead.
    99  func (StaticImagePrompt_ImageFill) EnumDescriptor() ([]byte, []int) {
   100  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescGZIP(), []int{0, 0}
   101  }
   102  
   103  // An image displayed in the card.
   104  type StaticImagePrompt struct {
   105  	state         protoimpl.MessageState
   106  	sizeCache     protoimpl.SizeCache
   107  	unknownFields protoimpl.UnknownFields
   108  
   109  	// Required. The source url of the image. Images can be JPG, PNG and GIF (animated and
   110  	// non-animated). For example,`https://www.agentx.com/logo.png`.
   111  	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
   112  	// Required. A text description of the image to be used for accessibility, e.g. screen
   113  	// readers.
   114  	Alt string `protobuf:"bytes,2,opt,name=alt,proto3" json:"alt,omitempty"`
   115  	// Optional. The height of the image in pixels.
   116  	Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
   117  	// Optional. The width of the image in pixels.
   118  	Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
   119  }
   120  
   121  func (x *StaticImagePrompt) Reset() {
   122  	*x = StaticImagePrompt{}
   123  	if protoimpl.UnsafeEnabled {
   124  		mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes[0]
   125  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   126  		ms.StoreMessageInfo(mi)
   127  	}
   128  }
   129  
   130  func (x *StaticImagePrompt) String() string {
   131  	return protoimpl.X.MessageStringOf(x)
   132  }
   133  
   134  func (*StaticImagePrompt) ProtoMessage() {}
   135  
   136  func (x *StaticImagePrompt) ProtoReflect() protoreflect.Message {
   137  	mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes[0]
   138  	if protoimpl.UnsafeEnabled && x != nil {
   139  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   140  		if ms.LoadMessageInfo() == nil {
   141  			ms.StoreMessageInfo(mi)
   142  		}
   143  		return ms
   144  	}
   145  	return mi.MessageOf(x)
   146  }
   147  
   148  // Deprecated: Use StaticImagePrompt.ProtoReflect.Descriptor instead.
   149  func (*StaticImagePrompt) Descriptor() ([]byte, []int) {
   150  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescGZIP(), []int{0}
   151  }
   152  
   153  func (x *StaticImagePrompt) GetUrl() string {
   154  	if x != nil {
   155  		return x.Url
   156  	}
   157  	return ""
   158  }
   159  
   160  func (x *StaticImagePrompt) GetAlt() string {
   161  	if x != nil {
   162  		return x.Alt
   163  	}
   164  	return ""
   165  }
   166  
   167  func (x *StaticImagePrompt) GetHeight() int32 {
   168  	if x != nil {
   169  		return x.Height
   170  	}
   171  	return 0
   172  }
   173  
   174  func (x *StaticImagePrompt) GetWidth() int32 {
   175  	if x != nil {
   176  		return x.Width
   177  	}
   178  	return 0
   179  }
   180  
   181  var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto protoreflect.FileDescriptor
   182  
   183  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDesc = []byte{
   184  	0x0a, 0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
   185  	0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
   186  	0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
   187  	0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x69,
   188  	0x6d, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   189  	0x6f, 0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
   190  	0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63,
   191  	0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74,
   192  	0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
   193  	0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   194  	0x6f, 0x22, 0xb9, 0x01, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67,
   195  	0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01,
   196  	0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x15,
   197  	0x0a, 0x03, 0x61, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
   198  	0x52, 0x03, 0x61, 0x6c, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18,
   199  	0x03, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67,
   200  	0x68, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28,
   201  	0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x22, 0x3e, 0x0a,
   202  	0x09, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e,
   203  	0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x47,
   204  	0x52, 0x41, 0x59, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x57, 0x48, 0x49, 0x54, 0x45, 0x10, 0x02,
   205  	0x12, 0x0b, 0x0a, 0x07, 0x43, 0x52, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x03, 0x42, 0xa2, 0x01,
   206  	0x0a, 0x31, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74,
   207  	0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65,
   208  	0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
   209  	0x6d, 0x70, 0x74, 0x42, 0x16, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65,
   210  	0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67,
   211  	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
   212  	0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   213  	0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b,
   214  	0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d,
   215  	0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6d,
   216  	0x70, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   217  }
   218  
   219  var (
   220  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescOnce sync.Once
   221  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDesc
   222  )
   223  
   224  func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescGZIP() []byte {
   225  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescOnce.Do(func() {
   226  		file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescData)
   227  	})
   228  	return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDescData
   229  }
   230  
   231  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
   232  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   233  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_goTypes = []interface{}{
   234  	(StaticImagePrompt_ImageFill)(0), // 0: google.actions.sdk.v2.interactionmodel.prompt.StaticImagePrompt.ImageFill
   235  	(*StaticImagePrompt)(nil),        // 1: google.actions.sdk.v2.interactionmodel.prompt.StaticImagePrompt
   236  }
   237  var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_depIdxs = []int32{
   238  	0, // [0:0] is the sub-list for method output_type
   239  	0, // [0:0] is the sub-list for method input_type
   240  	0, // [0:0] is the sub-list for extension type_name
   241  	0, // [0:0] is the sub-list for extension extendee
   242  	0, // [0:0] is the sub-list for field type_name
   243  }
   244  
   245  func init() {
   246  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_init()
   247  }
   248  func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_init() {
   249  	if File_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto != nil {
   250  		return
   251  	}
   252  	if !protoimpl.UnsafeEnabled {
   253  		file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   254  			switch v := v.(*StaticImagePrompt); i {
   255  			case 0:
   256  				return &v.state
   257  			case 1:
   258  				return &v.sizeCache
   259  			case 2:
   260  				return &v.unknownFields
   261  			default:
   262  				return nil
   263  			}
   264  		}
   265  	}
   266  	type x struct{}
   267  	out := protoimpl.TypeBuilder{
   268  		File: protoimpl.DescBuilder{
   269  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   270  			RawDescriptor: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDesc,
   271  			NumEnums:      1,
   272  			NumMessages:   1,
   273  			NumExtensions: 0,
   274  			NumServices:   0,
   275  		},
   276  		GoTypes:           file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_goTypes,
   277  		DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_depIdxs,
   278  		EnumInfos:         file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_enumTypes,
   279  		MessageInfos:      file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_msgTypes,
   280  	}.Build()
   281  	File_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto = out.File
   282  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_rawDesc = nil
   283  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_goTypes = nil
   284  	file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_depIdxs = nil
   285  }
   286  

View as plain text