Package google.apps.card.v1

সূচী

পদক্ষেপ

একটি অ্যাকশন যা ফর্ম সাবমিট করা হলে তার আচরণ বর্ণনা করে। উদাহরণস্বরূপ, ফর্মটি পরিচালনা করার জন্য আপনি একটি অ্যাপস স্ক্রিপ্ট কল করতে পারেন। অ্যাকশনটি ট্রিগার হলে, ফর্মের ভ্যালুগুলো সার্ভারে পাঠানো হয়।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
function

string

একটি কাস্টম ফাংশন যা ধারণকারী এলিমেন্টটি ক্লিক করা হলে বা অন্য কোনোভাবে সক্রিয় হলে চালু হয়।

ব্যবহারের উদাহরণের জন্য, 'ফর্ম ডেটা পড়ুন' দেখুন।

parameters[]

ActionParameter

কর্ম পরামিতিগুলির তালিকা।

load_indicator

LoadIndicator

অ্যাকশনটি কল করার সময় যে লোডিং ইন্ডিকেটরটি প্রদর্শিত হয়, তা নির্দিষ্ট করে।

persist_values

bool

কাজটি সম্পন্ন হওয়ার পর ফর্মের মানগুলো স্থায়ী থাকবে কিনা তা নির্দেশ করে। এর ডিফল্ট মান হলো false

যদি true , তাহলে অ্যাকশনটি ট্রিগার হওয়ার পরেও ফর্মের মানগুলো অপরিবর্তিত থাকে। অ্যাকশনটি প্রসেস হওয়ার সময় ব্যবহারকারীকে পরিবর্তন করার সুযোগ দিতে, LoadIndicator কে NONE এ সেট করুন। চ্যাট অ্যাপের কার্ড মেসেজের ক্ষেত্রে, আপনাকে অবশ্যই অ্যাকশনটির ResponseType কে UPDATE_MESSAGE এ সেট করতে হবে এবং যে কার্ডে অ্যাকশনটি ছিল, সেই কার্ডের card_id ব্যবহার করতে হবে।

false হলে, অ্যাকশনটি ট্রিগার হওয়ার সময় ফর্মের ভ্যালুগুলো মুছে যায়। অ্যাকশনটি প্রসেস হওয়ার সময় ব্যবহারকারী যাতে কোনো পরিবর্তন করতে না পারে, সেজন্য LoadIndicator SPINNER এ সেট করুন।

interaction

Interaction

ঐচ্ছিক। ডায়ালগ খোলার সময় প্রয়োজন।

ব্যবহারকারীর সাথে কোনো ইন্টারঅ্যাকশনের জবাবে কী করতে হবে, যেমন ব্যবহারকারী কার্ড মেসেজে কোনো বাটনে ক্লিক করলে।

অনির্দিষ্ট থাকলে, অ্যাপটি স্বাভাবিকভাবে কোনো একটি action সম্পাদন করে—যেমন কোনো লিঙ্ক খোলা বা কোনো ফাংশন চালানো।

একটি interaction নির্দিষ্ট করার মাধ্যমে, অ্যাপটি বিশেষ ইন্টারেক্টিভ উপায়ে সাড়া দিতে পারে। উদাহরণস্বরূপ, interaction OPEN_DIALOG এ সেট করলে, অ্যাপটি একটি ডায়ালগ খুলতে পারে। এটি নির্দিষ্ট করা হলে, কোনো লোডিং ইন্ডিকেটর দেখানো হয় না। কোনো অ্যাড-অনের জন্য এটি নির্দিষ্ট করা হলে, সম্পূর্ণ কার্ডটি সরিয়ে ফেলা হয় এবং ক্লায়েন্টে কিছুই দেখানো হয় না।

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

required_widgets[]

string

ঐচ্ছিক। একটি বৈধ সাবমিশনের জন্য এই অ্যাকশনটির যে উইজেটগুলোর প্রয়োজন, সেগুলোর নাম দিয়ে এই তালিকাটি পূরণ করুন।

এই অ্যাকশনটি চালু করার সময় এখানে তালিকাভুক্ত উইজেটগুলিতে কোনো মান না থাকলে, ফর্ম জমা দেওয়ার প্রক্রিয়াটি বাতিল হয়ে যায়।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

all_widgets_are_required

bool

ঐচ্ছিক। যদি এটি সত্য হয়, তাহলে এই পদক্ষেপের জন্য সমস্ত উইজেট আবশ্যক বলে বিবেচিত হবে।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

অ্যাকশনপ্যারামিটার

অ্যাকশন মেথড কল করার সময় সরবরাহ করার জন্য স্ট্রিং প্যারামিটারগুলোর তালিকা। উদাহরণস্বরূপ, তিনটি স্নুজ বাটনের কথা ভাবুন: এখনই স্নুজ করুন, একদিনের জন্য স্নুজ করুন, অথবা আগামী সপ্তাহের জন্য স্নুজ করুন। আপনি স্ট্রিং প্যারামিটারগুলোর তালিকায় স্নুজের ধরন এবং স্নুজের সময় পাস করে action method = snooze() ব্যবহার করতে পারেন।

আরও জানতে CommonEventObject দেখুন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
key

string

অ্যাকশন স্ক্রিপ্টের প্যারামিটারের নাম।

value

string

প্যারামিটারটির মান।

মিথস্ক্রিয়া

ঐচ্ছিক। ডায়ালগ খোলার সময় প্রয়োজন।

ব্যবহারকারীর সাথে কোনো ইন্টারঅ্যাকশনের জবাবে কী করতে হবে, যেমন ব্যবহারকারী কার্ড মেসেজে কোনো বাটনে ক্লিক করলে।

অনির্দিষ্ট থাকলে, অ্যাপটি স্বাভাবিকভাবে কোনো একটি action সম্পাদন করে—যেমন কোনো লিঙ্ক খোলা বা কোনো ফাংশন চালানো।

একটি interaction নির্দিষ্ট করার মাধ্যমে, অ্যাপটি বিশেষ ইন্টারেক্টিভ উপায়ে সাড়া দিতে পারে। উদাহরণস্বরূপ, interaction OPEN_DIALOG এ সেট করলে, অ্যাপটি একটি ডায়ালগ খুলতে পারে।

নির্দিষ্ট করা থাকলে, লোডিং ইন্ডিকেটর দেখানো হয় না। কোনো অ্যাড-অনের জন্য নির্দিষ্ট করা হলে, সম্পূর্ণ কার্ডটি সরিয়ে ফেলা হয় এবং ক্লায়েন্টে কিছুই দেখানো হয় না।

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

এনাম
INTERACTION_UNSPECIFIED পূর্বনির্ধারিত মান। action স্বাভাবিকভাবে সম্পাদিত হবে।
OPEN_DIALOG

একটি ডায়ালগ খোলে, যা হলো একটি উইন্ডোযুক্ত, কার্ড-ভিত্তিক ইন্টারফেস এবং চ্যাট অ্যাপগুলো ব্যবহারকারীদের সাথে আলাপচারিতার জন্য এটি ব্যবহার করে।

শুধুমাত্র কার্ড মেসেজের বাটন-ক্লিকের প্রতিক্রিয়ায় চ্যাট অ্যাপে এটি সমর্থিত। কোনো অ্যাড-অনের জন্য নির্দিষ্ট করা হলে, সম্পূর্ণ কার্ডটি মুছে ফেলা হয় এবং ক্লায়েন্টে কিছুই দেখানো হয় না।

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

লোড ইন্ডিকেটর

অ্যাকশনটি কল করার সময় যে লোডিং ইন্ডিকেটরটি প্রদর্শিত হয়, তা নির্দিষ্ট করে।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

এনাম
SPINNER কন্টেন্ট লোড হচ্ছে বোঝাতে একটি স্পিনার প্রদর্শন করে।
NONE কিছুই প্রদর্শিত হচ্ছে না।

বর্ডারস্টাইল

একটি কার্ড বা উইজেটের বর্ডারের স্টাইল অপশন, যার মধ্যে বর্ডারের ধরন এবং রঙ অন্তর্ভুক্ত।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
type

BorderType

সীমানার ধরণ।

stroke_color

Color

টাইপটি BORDER_TYPE_STROKE হলে যে রংগুলো ব্যবহার করতে হবে।

স্ট্রোকের রঙ নির্ধারণ করতে, red , green , এবং blue ফিল্ডগুলির জন্য একটি মান নির্দিষ্ট করুন। মানটি অবশ্যই RGB রঙের মানের উপর ভিত্তি করে ০ এবং ১-এর মধ্যে একটি ফ্লোট সংখ্যা হতে হবে, যেখানে 0 (০/২৫৫) রঙের অনুপস্থিতি এবং 1 (২৫৫/২৫৫) রঙের সর্বোচ্চ তীব্রতা বোঝায়।

উদাহরণস্বরূপ, নিম্নলিখিতটি রঙটিকে তার সর্বোচ্চ তীব্রতায় লালে সেট করে:

"color": {
   "red": 1,
   "green": 0,
   "blue": 0,
}

স্ট্রোক রঙের জন্য alpha ফিল্ডটি উপলব্ধ নয়। এটি নির্দিষ্ট করা হলে, ফিল্ডটি উপেক্ষা করা হয়।

corner_radius

int32

বর্ডারের জন্য কোণার ব্যাসার্ধ।

বর্ডারটাইপ

উইজেটগুলিতে প্রয়োগ করা বর্ডারের প্রকারভেদ নির্দেশ করে।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

এনাম
BORDER_TYPE_UNSPECIFIED ব্যবহার করবেন না। অনির্দিষ্ট।
NO_BORDER কোনো সীমান্ত নেই।
STROKE পূর্বনির্ধারিত মান। রূপরেখা।

বোতাম

একটি টেক্সট, আইকন, অথবা টেক্সট ও আইকন সহ বাটন, যেটিতে ব্যবহারকারীরা ক্লিক করতে পারেন। গুগল চ্যাট অ্যাপে এর একটি উদাহরণের জন্য, ‘একটি বাটন যোগ করুন’ দেখুন।

একটি ইমেজকে ক্লিকযোগ্য বাটনে পরিণত করতে, একটি Image ( ImageComponent নয়) নির্দিষ্ট করুন এবং একটি onClick অ্যাকশন সেট করুন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
text

string

বাটনের ভিতরে লেখাটি প্রদর্শিত হয়েছে।

icon

Icon

বাটনের ভিতরে একটি আইকন প্রদর্শিত হয়। যদি icon এবং text উভয়ই সেট করা থাকে, তাহলে আইকনটি টেক্সটের আগে প্রদর্শিত হয়।

color

Color

ঐচ্ছিক। বাটনের রঙ। এটি সেট করা হলে, বাটনের type FILLED হিসেবে সেট করা হয় এবং পাঠযোগ্যতার জন্য texticon ফিল্ডের রঙ একটি বৈসাদৃশ্যপূর্ণ রঙে সেট করা হয়। উদাহরণস্বরূপ, যদি বাটনের রঙ নীল সেট করা হয়, তাহলে বাটনের ভেতরের যেকোনো টেক্সট বা আইকন সাদা রঙে সেট করা হবে।

বাটনের রঙ সেট করতে, red , green , এবং blue ফিল্ডগুলোর জন্য একটি মান নির্দিষ্ট করুন। মানটি অবশ্যই RGB রঙের মানের উপর ভিত্তি করে ০ থেকে ১-এর মধ্যে একটি ফ্লোট সংখ্যা হতে হবে, যেখানে 0 (০/২৫৫) রঙের অনুপস্থিতি এবং 1 (২৫৫/২৫৫) রঙের সর্বোচ্চ তীব্রতা বোঝায়।

উদাহরণস্বরূপ, নিম্নলিখিতটি রঙটিকে তার সর্বোচ্চ তীব্রতায় লালে সেট করে:

"color": {
   "red": 1,
   "green": 0,
   "blue": 0,
}

বাটনের রঙের জন্য alpha ফিল্ডটি উপলব্ধ নয়। এটি নির্দিষ্ট করা হলে, ফিল্ডটি উপেক্ষা করা হয়।

on_click

OnClick

আবশ্যক। ব্যবহারকারী বোতামে ক্লিক করলে যে কাজটি সম্পাদন করতে হবে, যেমন একটি হাইপারলিঙ্ক খোলা বা একটি কাস্টম ফাংশন চালানো।

disabled

bool

যদি true , তাহলে বাটনটি একটি নিষ্ক্রিয় অবস্থায় প্রদর্শিত হয় এবং ব্যবহারকারীর কোনো কার্যকলাপে সাড়া দেয় না।

alt_text

string

অ্যাক্সেসিবিলিটির জন্য ব্যবহৃত বিকল্প টেক্সট।

বর্ণনামূলক টেক্সট সেট করুন যা ব্যবহারকারীদের জানিয়ে দেবে বাটনটি কী কাজ করে। উদাহরণস্বরূপ, যদি কোনো বাটন একটি হাইপারলিঙ্ক খোলে, তাহলে আপনি লিখতে পারেন: "একটি নতুন ব্রাউজার ট্যাব খোলে এবং https://developers.google.com/workspace/chat-এ থাকা গুগল চ্যাট ডেভেলপার ডকুমেন্টেশনে নিয়ে যায়"

type

Type

ঐচ্ছিক। বাটনের ধরণ। সেট না করা থাকলে, বাটনের ধরণ ডিফল্টভাবে OUTLINED হয়। যদি color ফিল্ডটি সেট করা থাকে, তাহলে বাটনের ধরণ বাধ্যতামূলকভাবে FILLED যায় এবং এই ফিল্ডের জন্য সেট করা যেকোনো মান উপেক্ষা করা হয়।

প্রকার

ঐচ্ছিক। বাটনের ধরণ । যদি color ক্ষেত্রটি সেট করা থাকে, তাহলে type বাধ্যতামূলকভাবে FILLED হবে।

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

এনাম
TYPE_UNSPECIFIED ব্যবহার করবেন না। অনির্দিষ্ট।
OUTLINED আউটলাইন করা বাটনগুলো হলো মাঝারি গুরুত্বের বাটন। এগুলোতে সাধারণত এমন সব অ্যাকশন থাকে যা গুরুত্বপূর্ণ, কিন্তু কোনো চ্যাট অ্যাপ বা অ্যাড-অনের প্রধান অ্যাকশন নয়।
FILLED একটি ফিল্ড বাটনের কন্টেইনারটি একরঙা হয়। এর দৃশ্যমান প্রভাব সবচেয়ে বেশি এবং একটি চ্যাট অ্যাপ বা অ্যাড-অনের গুরুত্বপূর্ণ ও প্রধান কাজের জন্য এটি ব্যবহার করার পরামর্শ দেওয়া হয়।
FILLED_TONAL একটি ফিল্ড টোনাল বাটন হলো ফিল্ড এবং আউটলাইনড বাটনের মাঝামাঝি একটি বিকল্প ব্যবস্থা। যেসব ক্ষেত্রে একটি কম গুরুত্বপূর্ণ বাটনের ওপর আউটলাইন বাটনের চেয়ে কিছুটা বেশি জোর দেওয়ার প্রয়োজন হয়, সেখানে এগুলো উপযোগী।
BORDERLESS ডিফল্ট অবস্থায় একটি বাটনের কোনো অদৃশ্য কন্টেইনার থাকে না। এটি প্রায়শই সর্বনিম্ন অগ্রাধিকারের কাজগুলোর জন্য ব্যবহৃত হয়, বিশেষ করে যখন একাধিক অপশন দেখানো হয়।

বাটনলিস্ট

আনুভূমিকভাবে সাজানো বাটনগুলির একটি তালিকা। গুগল চ্যাট অ্যাপে এর একটি উদাহরণের জন্য, ‘একটি বাটন যোগ করুন’ দেখুন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
buttons[]

Button

বোতামের একটি সারি।

কার্ড

গুগল চ্যাট মেসেজ বা গুগল ওয়ার্কস্পেস অ্যাড-অনে প্রদর্শিত একটি কার্ড ইন্টারফেস।

কার্ড একটি নির্দিষ্ট লেআউট, বাটনের মতো ইন্টারেক্টিভ UI এলিমেন্ট এবং ছবির মতো রিচ মিডিয়া সমর্থন করে। বিস্তারিত তথ্য উপস্থাপন করতে, ব্যবহারকারীদের কাছ থেকে তথ্য সংগ্রহ করতে এবং পরবর্তী পদক্ষেপ নিতে তাদের নির্দেশনা দিতে কার্ড ব্যবহার করুন।

কার্ড বিল্ডার ব্যবহার করে কার্ড ডিজাইন করুন এবং প্রিভিউ দেখুন।

কার্ড বিল্ডারটি খুলুন

কার্ড তৈরি করার পদ্ধতি জানতে, নিম্নলিখিত ডকুমেন্টেশন দেখুন:

দ্রষ্টব্য: আপনি প্রতি কার্ডে সর্বোচ্চ ১০০টি উইজেট যোগ করতে পারবেন। যদি কোনো সেকশনের উইজেটের সংখ্যা বেড়ে মোট সংখ্যা ১০০ ছাড়িয়ে যায়, তাহলে সেই সম্পূর্ণ সেকশন এবং তার পরবর্তী সমস্ত সেকশন উপেক্ষা করা হবে। এই সীমাটি গুগল চ্যাট অ্যাপের কার্ড মেসেজ ও ডায়ালগ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনের কার্ড—উভয়ের ক্ষেত্রেই প্রযোজ্য।

উদাহরণ: গুগল চ্যাট অ্যাপের জন্য কার্ড বার্তা

যোগাযোগের কার্ডের উদাহরণ

গুগল চ্যাটে নমুনা কার্ড বার্তা তৈরি করতে, নিম্নলিখিত JSON ব্যবহার করুন:

{
  "cardsV2": [
    {
      "cardId": "unique-card-id",
      "card": {
        "header": {
           "title": "Sasha",
           "subtitle": "Software Engineer",
           "imageUrl":
           "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
           "imageType": "CIRCLE",
           "imageAltText": "Avatar for Sasha"
         },
         "sections": [
           {
             "header": "Contact Info",
             "collapsible": true,
             "uncollapsibleWidgetsCount": 1,
             "widgets": [
               {
                 "decoratedText": {
                   "startIcon": {
                     "knownIcon": "EMAIL"
                   },
                   "text": "sasha@example.com"
                 }
               },
               {
                 "decoratedText": {
                   "startIcon": {
                     "knownIcon": "PERSON"
                   },
                   "text": "<font color=\"#80e27e\">Online</font>"
                 }
               },
               {
                 "decoratedText": {
                   "startIcon": {
                     "knownIcon": "PHONE"
                   },
                   "text": "+1 (555) 555-1234"
                 }
               },
               {
                 "buttonList": {
                   "buttons": [
                     {
                       "text": "Share",
                       "onClick": {
                        "openLink": {
                           "url": "https://example.com/share"
                         }
                       }
                     },
                     {
                       "text": "Edit",
                       "onClick": {
                         "action": {
                           "function": "goToView",
                           "parameters": [
                             {
                               "key": "viewType",
                               "value": "EDIT"
                             }
                           ]
                         }
                       }
                     }
                   ]
                 }
               }
             ]
           }
         ]
       }
    }
  ]
}
ক্ষেত্র
header

CardHeader

কার্ডের হেডার। একটি হেডারে সাধারণত একটি প্রধান ছবি এবং একটি শিরোনাম থাকে। হেডার সবসময় কার্ডের শীর্ষে প্রদর্শিত হয়।

sections[]

Section

এতে উইজেটের একটি সংগ্রহ রয়েছে। প্রতিটি বিভাগের নিজস্ব, ঐচ্ছিক হেডার আছে। বিভাগগুলো একটি রেখা বিভাজক দ্বারা দৃশ্যত পৃথক করা থাকে। গুগল চ্যাট অ্যাপে একটি উদাহরণের জন্য, ‘একটি কার্ডের বিভাগ সংজ্ঞায়িত করুন ’ দেখুন।

section_divider_style

DividerStyle

হেডার, সেকশন ও ফুটারের মধ্যবর্তী বিভাজক শৈলী।

card_actions[]

CardAction

কার্ডের কার্যকলাপসমূহ। কার্যকলাপগুলো কার্ডের টুলবার মেনুতে যোগ করা হয়।

গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ, কিন্তু গুগল চ্যাট অ্যাপগুলির জন্য অনুপলব্ধ।

উদাহরণস্বরূপ, নিম্নলিখিত JSON-টি Settings এবং Send Feedback বিকল্পসহ একটি কার্ড অ্যাকশন মেনু তৈরি করে:

"card_actions": [
  {
    "actionLabel": "Settings",
    "onClick": {
      "action": {
        "functionName": "goToView",
        "parameters": [
          {
            "key": "viewType",
            "value": "SETTING"
         }
        ],
        "loadIndicator": "LoadIndicator.SPINNER"
      }
    }
  },
  {
    "actionLabel": "Send Feedback",
    "onClick": {
      "openLink": {
        "url": "https://example.com/feedback"
      }
    }
  }
]
name

string

কার্ডের নাম। কার্ড নেভিগেশনে কার্ড শনাক্তকারী হিসেবে ব্যবহৃত হয়।

গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ, কিন্তু গুগল চ্যাট অ্যাপগুলির জন্য অনুপলব্ধ।

display_style

DisplayStyle

গুগল ওয়ার্কস্পেস অ্যাড-অন-এ, এটি peekCardHeader এর ডিসপ্লে প্রোপার্টি সেট করে।

গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ, কিন্তু গুগল চ্যাট অ্যাপগুলির জন্য অনুপলব্ধ।

peek_card_header

CardHeader

প্রাসঙ্গিক বিষয়বস্তু প্রদর্শন করার সময়, পিক কার্ড হেডারটি একটি প্লেসহোল্ডার হিসেবে কাজ করে, যাতে ব্যবহারকারী হোমপেজের কার্ডগুলো এবং প্রাসঙ্গিক কার্ডগুলোর মধ্যে সামনে এগিয়ে যেতে পারেন।

গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ, কিন্তু গুগল চ্যাট অ্যাপগুলির জন্য অনুপলব্ধ।

expression_data[]

ExpressionData

কার্ডটির জন্য এক্সপ্রেশন ডেটা।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

কার্ডঅ্যাকশন

কার্ড অ্যাকশন হলো কার্ডটির সাথে যুক্ত কাজটি। উদাহরণস্বরূপ, একটি ইনভয়েস কার্ডে ইনভয়েস ডিলিট করা, ইনভয়েস ইমেল করা, বা ব্রাউজারে ইনভয়েসটি খোলার মতো অ্যাকশন অন্তর্ভুক্ত থাকতে পারে।

গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ, কিন্তু গুগল চ্যাট অ্যাপগুলির জন্য অনুপলব্ধ।

ক্ষেত্র
action_label

string

যে লেবেলটি অ্যাকশন মেনু আইটেম হিসেবে প্রদর্শিত হয়।

on_click

OnClick

এই অ্যাকশন আইটেমটির জন্য onClick অ্যাকশন।

কার্ডফিক্সডফুটার

একটি স্থায়ী (স্টিকি) ফুটার যা কার্ডের নীচে প্রদর্শিত হয়।

primaryButton বা secondaryButton নির্দিষ্ট না করে fixedFooter সেট করলে একটি ত্রুটি দেখা দেয়।

চ্যাট অ্যাপের ক্ষেত্রে, আপনি ডায়ালগে ফিক্সড ফুটার ব্যবহার করতে পারেন, কিন্তু কার্ড মেসেজে নয়। গুগল চ্যাট অ্যাপের একটি উদাহরণের জন্য, ‘অ্যাড এ পারসিস্টেন্ট ফুটার’ দেখুন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
primary_button

Button

ফিক্সড ফুটারের প্রধান বাটন। বাটনটি অবশ্যই একটি টেক্সট বাটন হতে হবে এবং এতে টেক্সট ও রঙ নির্দিষ্ট করা থাকতে হবে।

secondary_button

Button

ফিক্সড ফুটারের সেকেন্ডারি বাটন। বাটনটি অবশ্যই একটি টেক্সট বাটন হতে হবে, যেখানে টেক্সট এবং রঙ সেট করা থাকবে। যদি secondaryButton সেট করা থাকে, তবে আপনাকে primaryButton ও সেট করতে হবে।

কার্ডহেডার

এটি একটি কার্ড হেডার নির্দেশ করে। গুগল চ্যাট অ্যাপে এর একটি উদাহরণের জন্য, ‘হেডার যোগ করুন’ দেখুন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
title

string

আবশ্যক। কার্ড হেডারের শিরোনাম। হেডারের একটি নির্দিষ্ট উচ্চতা রয়েছে: যদি শিরোনাম এবং উপ-শিরোনাম উভয়ই উল্লেখ করা হয়, তবে প্রতিটি এক লাইনে স্থান পাবে। যদি শুধু শিরোনাম উল্লেখ করা হয়, তবে সেটি উভয় লাইনেই স্থান পাবে।

subtitle

string

কার্ড হেডারের উপশিরোনাম। নির্দিষ্ট করা থাকলে, এটি title নিচে নিজস্ব লাইনে প্রদর্শিত হয়।

image_type

ImageType

ছবিটি ক্রপ করতে ব্যবহৃত আকৃতি।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

image_url

string

কার্ড হেডারে থাকা ছবিটির HTTPS URL।

image_alt_text

string

এই ছবিটির বিকল্প লেখাটি অ্যাক্সেসিবিলিটির জন্য ব্যবহৃত হয়।

প্রদর্শন শৈলী

গুগল ওয়ার্কস্পেস অ্যাড-অন-এ, একটি কার্ড কীভাবে প্রদর্শিত হবে তা এটি নির্ধারণ করে।

গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ, কিন্তু গুগল চ্যাট অ্যাপগুলির জন্য অনুপলব্ধ।

এনাম
DISPLAY_STYLE_UNSPECIFIED ব্যবহার করবেন না। অনির্দিষ্ট।
PEEK কার্ডের হেডারটি সাইডবারের নীচে প্রদর্শিত হয় এবং স্ট্যাকের বর্তমান শীর্ষ কার্ডটিকে আংশিকভাবে ঢেকে রাখে। হেডারে ক্লিক করলে কার্ডটি কার্ড স্ট্যাকে যুক্ত হয়ে যায়। যদি কার্ডটির কোনো হেডার না থাকে, তবে তার পরিবর্তে একটি জেনারেটেড হেডার ব্যবহৃত হয়।
REPLACE ডিফল্ট মান। কার্ড স্ট্যাকের উপরের কার্ডটির ভিউ প্রতিস্থাপন করে কার্ডটি দেখানো হয়।

বিভাজক শৈলী

কার্ডের বিভাজক শৈলী। বর্তমানে এটি শুধুমাত্র কার্ডের বিভিন্ন অংশের মধ্যে বিভাজক হিসেবে ব্যবহৃত হয়।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

এনাম
DIVIDER_STYLE_UNSPECIFIED ব্যবহার করবেন না। অনির্দিষ্ট।
SOLID_DIVIDER ডিফল্ট বিকল্প। একটি নিরেট বিভাজক রেন্ডার করুন।
NO_DIVIDER সেট করা থাকলে, কোনো ডিভাইডার রেন্ডার করা হয় না। এই স্টাইলটি লেআউট থেকে ডিভাইডারটিকে সম্পূর্ণরূপে সরিয়ে দেয়। এর ফলাফল একেবারেই কোনো ডিভাইডার যোগ না করার সমতুল্য।

নেস্টেডউইজেট

উইজেটগুলির একটি তালিকা যা একটি ধারণকারী লেআউটে, যেমন একটি CarouselCard , প্রদর্শন করা যেতে পারে। গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

ক্ষেত্র

ইউনিয়ন ফিল্ড data

data নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:

text_paragraph

TextParagraph

একটি টেক্সট প্যারাগ্রাফ উইজেট।

button_list

ButtonList

একটি বাটন তালিকা উইজেট।

image

Image

একটি ইমেজ উইজেট।

বিভাগ

একটি সেকশনে উইজেটগুলোর একটি সংগ্রহ থাকে, যেগুলো নির্দিষ্ট করার ক্রমানুসারে উল্লম্বভাবে রেন্ডার করা হয়।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
header

string

সেকশনের শীর্ষে প্রদর্শিত টেক্সট। সাধারণ HTML ফরম্যাট করা টেক্সট সমর্থন করে। টেক্সট ফরম্যাটিং সম্পর্কে আরও তথ্যের জন্য, Google Chat অ্যাপে টেক্সট ফরম্যাটিং এবং Google Workspace অ্যাড-অনে টেক্সট ফরম্যাটিং দেখুন।

widgets[]

Widget

সেকশনটির সমস্ত উইজেট। এতে অবশ্যই অন্তত একটি উইজেট থাকতে হবে।

collapsible

bool

এই অংশটি ভাঁজযোগ্য কিনা তা নির্দেশ করে।

সংকোচনযোগ্য বিভাগগুলো কিছু বা সমস্ত উইজেট লুকিয়ে রাখে, কিন্তু ব্যবহারকারীরা ' আরও দেখান' (Show more) এ ক্লিক করে বিভাগটি প্রসারিত করার মাধ্যমে লুকানো উইজেটগুলো আবার দেখতে পারেন। ব্যবহারকারীরা 'কম দেখান' (Show less) এ ক্লিক করে উইজেটগুলো পুনরায় লুকাতে পারেন।

কোন উইজেটগুলো লুকানো থাকবে তা নির্ধারণ করতে, uncollapsibleWidgetsCount নির্দিষ্ট করুন।

uncollapsible_widgets_count

int32

যেসব উইজেট কোনো সেকশন সংকুচিত করার পরেও দৃশ্যমান থাকে, তাদের সংখ্যা।

উদাহরণস্বরূপ, যখন একটি বিভাগে পাঁচটি উইজেট থাকে এবং uncollapsibleWidgetsCount এর মান 2 সেট করা থাকে, তখন প্রথম দুটি উইজেট সর্বদা দেখানো হয় এবং শেষের তিনটি ডিফল্টরূপে সংকুচিত থাকে। uncollapsibleWidgetsCount শুধুমাত্র তখনই বিবেচনা করা হয় যখন collapsible true হয়।

id

string

যে সেকশনটি পরিবর্তন করা হবে, সেটিকে শনাক্ত করার জন্য নির্ধারিত একটি অনন্য আইডি। আইডিটির অক্ষর সংখ্যা ৬৪-এর মধ্যে সীমাবদ্ধ এবং এটি [a-zA-Z0-9-]+ ফরম্যাটে হতে হবে।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

collapse_control

CollapseControl

ঐচ্ছিক। সেকশনটির এক্সপ্যান্ড এবং কলাপস বাটন নির্ধারণ করুন। এই বাটনটি শুধুমাত্র তখনই দেখানো হবে যখন সেকশনটি কলাপসিবল হবে। এই ফিল্ডটি সেট করা না থাকলে, ডিফল্ট বাটনটি ব্যবহৃত হবে।

দৃশ্যমানতা

কোনো UI উপাদান দৃশ্যমান হবে নাকি অদৃশ্য থাকবে তা নির্দিষ্ট করে।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

এনাম
VISIBILITY_UNSPECIFIED দৃশ্যমানতা অনির্দিষ্ট। ব্যবহার করবেন না।
VISIBLE UI উপাদানটি দৃশ্যমান।
HIDDEN UI উপাদানটি লুকানো আছে।

ক্যারোসেল, যা স্লাইডার নামেও পরিচিত, উইজেটগুলির একটি তালিকা ঘুরিয়ে স্লাইডশো আকারে প্রদর্শন করে এবং এতে থাকা বাটনগুলির মাধ্যমে আগের বা পরের উইজেটে যাওয়া যায়।

উদাহরণস্বরূপ, এটি একটি ক্যারোসেলের JSON উপস্থাপনা, যাতে তিনটি টেক্সট প্যারাগ্রাফ উইজেট রয়েছে।

{
  "carouselCards": [
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "First text paragraph in carousel",
          }
        }
      ]
    },
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "Second text paragraph in carousel",
          }
        }
      ]
    },
    {
      "widgets": [
        {
          "textParagraph": {
            "text": "Third text paragraph in carousel",
          }
        }
      ]
    }
  ]
}

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

ক্ষেত্র
carousel_cards[]

CarouselCard

ক্যারোসেলে অন্তর্ভুক্ত কার্ডগুলোর একটি তালিকা।

ক্যারোসেলকার্ড

একটি কার্ড যা ক্যারোসেল আইটেম হিসেবে প্রদর্শন করা যায়। গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

ক্ষেত্র
widgets[]

NestedWidget

ক্যারোসেল কার্ডে প্রদর্শিত উইজেটগুলোর একটি তালিকা। উইজেটগুলো নির্দিষ্ট করার ক্রম অনুসারে প্রদর্শিত হয়।

footer_widgets[]

NestedWidget

ক্যারোসেল কার্ডের নীচে উইজেটগুলির একটি তালিকা প্রদর্শিত হয়। উইজেটগুলি যে ক্রমে নির্দিষ্ট করা হয়েছে, সেই ক্রমেই প্রদর্শিত হয়।

চিপ

একটি টেক্সট, আইকন, অথবা টেক্সট ও আইকন উভয়ই থাকতে পারে এমন একটি চিপ, যেটিতে ব্যবহারকারীরা ক্লিক করতে পারেন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
icon

Icon

আইকন চিত্র। যদি icon এবং text উভয়ই সেট করা থাকে, তাহলে আইকনটি টেক্সটের আগে প্রদর্শিত হবে।

label

string

চিপের ভিতরে লেখাটি প্রদর্শিত হয়েছিল।

on_click

OnClick

ঐচ্ছিক। ব্যবহারকারী চিপটিতে ক্লিক করলে যে কাজটি করা হবে, যেমন একটি হাইপারলিঙ্ক খোলা বা একটি কাস্টম ফাংশন চালানো।

enabled
(deprecated)

bool

চিপটি সক্রিয় অবস্থায় আছে কিনা এবং ব্যবহারকারীর কার্যকলাপে সাড়া দেয় কিনা। ডিফল্ট মান ' true । এটি অপ্রচলিত। এর পরিবর্তে disabled ব্যবহার করুন।

disabled

bool

চিপটি নিষ্ক্রিয় অবস্থায় আছে কিনা এবং ব্যবহারকারীর কার্যকলাপ উপেক্ষা করছে কিনা। এর ডিফল্ট মান হলো false

alt_text

string

অ্যাক্সেসিবিলিটির জন্য ব্যবহৃত বিকল্প টেক্সট।

বর্ণনামূলক টেক্সট সেট করুন যা ব্যবহারকারীদের জানিয়ে দেবে চিপটি কী কাজ করে। উদাহরণস্বরূপ, যদি একটি চিপ কোনো হাইপারলিঙ্ক খোলে, তাহলে লিখুন: "একটি নতুন ব্রাউজার ট্যাব খোলে এবং https://developers.google.com/workspace/chat-এ থাকা গুগল চ্যাট ডেভেলপার ডকুমেন্টেশনে নিয়ে যায়"

চিপলিস্ট

আনুভূমিকভাবে সাজানো চিপগুলির একটি তালিকা, যা আনুভূমিকভাবে স্ক্রল করতে পারে অথবা পরবর্তী লাইনে চলে যেতে পারে।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
layout

Layout

নির্দিষ্ট চিপ তালিকা বিন্যাস।

chips[]

Chip

চিপের একটি বিন্যাস।

লেআউট

চিপ তালিকার বিন্যাস।

এনাম
LAYOUT_UNSPECIFIED ব্যবহার করবেন না। অনির্দিষ্ট।
WRAPPED ডিফল্ট মান। পর্যাপ্ত আনুভূমিক স্থান না থাকলে চিপ তালিকাটি পরবর্তী লাইনে চলে যায়।
HORIZONTAL_SCROLLABLE উপলব্ধ জায়গায় না ধরলে চিপগুলো আনুভূমিকভাবে সরে যায়।

কলাপসকন্ট্রোল

সম্প্রসারণ এবং সংকোচন নিয়ন্ত্রণ উপস্থাপন করে।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
horizontal_alignment

HorizontalAlignment

এক্সপ্যান্ড এবং কলাপস বাটনের আনুভূমিক বিন্যাস।

expand_button

Button

ঐচ্ছিক। সেকশনটি প্রসারিত করার জন্য একটি কাস্টমাইজযোগ্য বাটন নির্ধারণ করুন। expand_button এবং collapse_button উভয় ফিল্ডই অবশ্যই সেট করতে হবে। শুধুমাত্র একটি ফিল্ড সেট করা হলে তা কার্যকর হবে না। এই ফিল্ডটি সেট করা না থাকলে, ডিফল্ট বাটনটি ব্যবহৃত হবে।

collapse_button

Button

ঐচ্ছিক। সেকশনটি সংকুচিত করার জন্য একটি কাস্টমাইজযোগ্য বাটন নির্ধারণ করুন। expand_button এবং collapse_button উভয় ফিল্ডই অবশ্যই সেট করতে হবে। শুধুমাত্র একটি ফিল্ড সেট করা থাকলে তা কার্যকর হবে না। এই ফিল্ডটি সেট করা না থাকলে, ডিফল্ট বাটনটি ব্যবহৃত হবে।

কলাম

Columns উইজেটটি একটি কার্ড বা ডায়ালগে সর্বোচ্চ ২টি কলাম প্রদর্শন করে। আপনি প্রতিটি কলামে উইজেট যোগ করতে পারেন; উইজেটগুলো নির্দিষ্ট করা ক্রমানুসারে প্রদর্শিত হয়। গুগল চ্যাট অ্যাপে একটি উদাহরণের জন্য, ‘কলামে কার্ড এবং ডায়ালগ প্রদর্শন’ দেখুন।

প্রতিটি কলামের উচ্চতা অপেক্ষাকৃত লম্বা কলামটির দ্বারা নির্ধারিত হয়। উদাহরণস্বরূপ, যদি প্রথম কলামটি দ্বিতীয় কলামের চেয়ে লম্বা হয়, তবে উভয় কলামের উচ্চতাই হবে প্রথম কলামের সমান। যেহেতু প্রতিটি কলামে ভিন্ন ভিন্ন সংখ্যক উইজেট থাকতে পারে, তাই আপনি সারি নির্ধারণ করতে বা কলামগুলোর মধ্যে উইজেট সারিবদ্ধ করতে পারবেন না।

কলামগুলো পাশাপাশি প্রদর্শিত হয়। আপনি HorizontalSizeStyle ফিল্ডটি ব্যবহার করে প্রতিটি কলামের প্রস্থ নিজের মতো করে সাজিয়ে নিতে পারেন। যদি ব্যবহারকারীর স্ক্রিনের প্রস্থ খুব কম হয়, তাহলে দ্বিতীয় কলামটি প্রথমটির নিচে চলে আসে:

  • ওয়েবে, স্ক্রিনের প্রস্থ ৪৮০ পিক্সেল বা তার কম হলে দ্বিতীয় কলামটি র‍্যাপ হয়।
  • iOS ডিভাইসগুলিতে, স্ক্রিনের প্রস্থ ৩০০ পয়েন্ট বা তার কম হলে দ্বিতীয় কলামটি র‍্যাপ হয়।
  • অ্যান্ড্রয়েড ডিভাইসগুলিতে, স্ক্রিনের প্রস্থ ৩২০ ডিপি-র সমান বা তার কম হলে দ্বিতীয় কলামটি র‍্যাপ হয়।

দুইটির বেশি কলাম বা সারি অন্তর্ভুক্ত করতে Grid উইজেট ব্যবহার করুন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ। যে অ্যাড-অন UI-গুলি কলাম সমর্থন করে, সেগুলি হলো:

  • ইমেল ড্রাফট থেকে ব্যবহারকারীরা অ্যাড-অনটি খুললে এই ডায়ালগটি প্রদর্শিত হয়।
  • গুগল ক্যালেন্ডার ইভেন্টের 'অ্যাড অ্যাটাচমেন্ট ' মেনু থেকে ব্যবহারকারীরা অ্যাড-অনটি খুললে এই ডায়ালগ বক্সটি প্রদর্শিত হয়।
ক্ষেত্র
column_items[]

Column

কলামের একটি অ্যারে। আপনি একটি কার্ড বা ডায়ালগে সর্বোচ্চ ২টি কলাম অন্তর্ভুক্ত করতে পারেন।

কলাম

একটি স্তম্ভ।

গুগল ওয়ার্কস্পেস অ্যাড-অন এবং চ্যাট অ্যাপ

ক্ষেত্র
horizontal_size_style

HorizontalSizeStyle

একটি কলাম কার্ডের প্রস্থ জুড়ে কীভাবে থাকবে তা নির্দিষ্ট করে।

horizontal_alignment

HorizontalAlignment

উইজেটগুলো কোনো কলামের বামে, ডানে, নাকি কেন্দ্রে সারিবদ্ধ হবে তা নির্দিষ্ট করে।

vertical_alignment

VerticalAlignment

উইজেটগুলো কোনো কলামের উপরে, নীচে, নাকি কেন্দ্রে সারিবদ্ধ হবে তা নির্দিষ্ট করে।

widgets[]

Widgets

একটি কলামে অন্তর্ভুক্ত উইজেটসমূহের একটি অ্যারে। উইজেটগুলো নির্দিষ্ট করার ক্রম অনুসারে প্রদর্শিত হয়।

হরাইজন্টালসাইজস্টাইল

একটি কলাম কার্ডের প্রস্থ জুড়ে কীভাবে বিস্তৃত হবে তা নির্দিষ্ট করে। প্রতিটি কলামের প্রস্থ তার HorizontalSizeStyle এবং কলামের ভেতরের উইজেটগুলোর প্রস্থ উভয়ের উপর নির্ভর করে।

গুগল ওয়ার্কস্পেস অ্যাড-অন এবং চ্যাট অ্যাপ

এনাম
HORIZONTAL_SIZE_STYLE_UNSPECIFIED ব্যবহার করবেন না। অনির্দিষ্ট।
FILL_AVAILABLE_SPACE ডিফল্ট মান। কলামটি কার্ডের প্রস্থের সর্বোচ্চ ৭০% পর্যন্ত উপলব্ধ স্থান পূরণ করে। যদি উভয় কলামই FILL_AVAILABLE_SPACE এ সেট করা থাকে, তাহলে প্রতিটি কলাম স্থানের ৫০% পূরণ করে।
FILL_MINIMUM_SPACE কলামটি সর্বনিম্ন পরিমাণ জায়গা পূরণ করে এবং কার্ডের প্রস্থের ৩০%-এর বেশি হয় না।

উল্লম্ব সারিবদ্ধকরণ

উইজেটগুলো কোনো কলামের উপরে, নীচে, নাকি কেন্দ্রে সারিবদ্ধ হবে তা নির্দিষ্ট করে।

গুগল ওয়ার্কস্পেস অ্যাড-অন এবং চ্যাট অ্যাপ

এনাম
VERTICAL_ALIGNMENT_UNSPECIFIED ব্যবহার করবেন না। অনির্দিষ্ট।
CENTER ডিফল্ট মান। উইজেটগুলোকে একটি কলামের কেন্দ্রে সারিবদ্ধ করে।
TOP উইজেটগুলোকে কলামের শীর্ষে সারিবদ্ধ করে।
BOTTOM উইজেটগুলোকে কলামের শেষে সারিবদ্ধ করে।

উইজেট

সমর্থিত উইজেটগুলো যা আপনি একটি কলামে অন্তর্ভুক্ত করতে পারেন।

গুগল ওয়ার্কস্পেস অ্যাড-অন এবং চ্যাট অ্যাপ

ক্ষেত্র

ইউনিয়ন ফিল্ড data

data নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:

text_paragraph

TextParagraph

TextParagraph উইজেট।

image

Image

Image উইজেট।

decorated_text

DecoratedText

DecoratedText উইজেট।

button_list

ButtonList

ButtonList উইজেট।

text_input

TextInput

TextInput উইজেট।

selection_input

SelectionInput

SelectionInput উইজেট।

date_time_picker

DateTimePicker

DateTimePicker উইজেট।

chip_list

ChipList

ChipList উইজেট।

অবস্থা

এমন একটি অবস্থাকে বোঝায় যা কোনো একটি কাজ শুরু করতে ব্যবহার করা যেতে পারে।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

ক্ষেত্র
action_rule_id

string

অ্যাকশনরুলটির অনন্য শনাক্তকারী।

ইউনিয়ন ফিল্ড condition । এই condition নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:
expression_data_condition

ExpressionDataCondition

যে অবস্থাটি এক্সপ্রেশন ডেটা দ্বারা নির্ধারিত হয়।

এক্সপ্রেশন ডেটা কন্ডিশন

এমন একটি অবস্থাকে বোঝায় যা CEL ব্যবহার করে মূল্যায়ন করা হয়।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

ক্ষেত্র
condition_type

ConditionType

অবস্থার ধরণ।

শর্তের ধরণ

অবস্থার ধরণ।

এনাম
CONDITION_TYPE_UNSPECIFIED অনির্দিষ্ট অবস্থার ধরণ।
EXPRESSION_EVALUATION_SUCCESS অভিব্যক্তি মূল্যায়ন সফল হয়েছে।
EXPRESSION_EVALUATION_FAILURE অভিব্যক্তি মূল্যায়ন অসফল ছিল।

ডেটাসোর্সকনফিগ

একটি কনফিগারেশন অবজেক্ট যা একটি উইজেটের জন্য ডেটা সোর্সগুলো কনফিগার করতে সাহায্য করে।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস স্টুডিও-এর কার্যকারিতা বর্ধনকারী গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
ইউনিয়ন ফিল্ড data_source হলো ডেটা সোর্স। data_source নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:
remote_data_source

Action

ডেটাটি একটি দূরবর্তী ডেটা সরবরাহকারীর কাছ থেকে এসেছে।

platform_data_source

PlatformDataSource

ডেটাটি একটি গুগল ওয়ার্কস্পেস অ্যাপ্লিকেশন থেকে নেওয়া হয়েছে।

min_characters_trigger

int32

এই ডেটা প্রোভাইডারটি সক্রিয় হওয়ার (অর্থাৎ, ফলাফল দেখানো শুরু করার) আগে ব্যবহারকারীকে ন্যূনতম যতগুলো অক্ষর প্রবেশ করাতে হবে।

ডেটটাইমপিকার

ব্যবহারকারীদের একটি তারিখ, একটি সময়, অথবা তারিখ ও সময় উভয়ই ইনপুট করার সুযোগ দেয়। ফর্ম সাবমিশন ভ্যালিডেশন সমর্থন করে। যখন Action.all_widgets_are_required কে true সেট করা হয় অথবা এই উইজেটটি Action.required_widgets এ নির্দিষ্ট করা থাকে, তখন কোনো মান নির্বাচন না করা পর্যন্ত সাবমিশন অ্যাকশনটি ব্লক করা থাকে। গুগল চ্যাট অ্যাপে একটি উদাহরণের জন্য, “ব্যবহারকারীকে একটি তারিখ এবং সময় বেছে নিতে দিন” দেখুন।

ব্যবহারকারীরা টেক্সট ইনপুট করতে পারেন অথবা পিকার ব্যবহার করে তারিখ ও সময় নির্বাচন করতে পারেন। যদি ব্যবহারকারীরা কোনো ভুল তারিখ বা সময় ইনপুট করেন, তাহলে পিকারটি একটি এরর দেখায়, যা ব্যবহারকারীকে তথ্যটি সঠিকভাবে ইনপুট করার জন্য অনুরোধ করে।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
name

string

ফর্ম ইনপুট ইভেন্টে DateTimePicker কে যে নামে শনাক্ত করা হয়।

ফর্ম ইনপুট নিয়ে কাজ করার বিস্তারিত বিবরণের জন্য, ‘ফর্ম ডেটা গ্রহণ’ দেখুন।

label

string

যে লেখাটি ব্যবহারকারীদের একটি তারিখ, একটি সময়, অথবা তারিখ ও সময় উভয়ই ইনপুট করতে বলে। উদাহরণস্বরূপ, যদি ব্যবহারকারীরা একটি অ্যাপয়েন্টমেন্ট নির্ধারণ করেন, তাহলে Appointment date বা Appointment date and time এর মতো লেবেল ব্যবহার করুন।

type

DateTimePickerType

উইজেটটি তারিখ, সময়, অথবা তারিখ ও সময় উভয়ই ইনপুট করা সমর্থন করে কিনা।

value_ms_epoch

int64

উইজেটে প্রদর্শিত ডিফল্ট মান, যা ইউনিক্স ইপক টাইম থেকে মিলিসেকেন্ডে পরিমাপ করা হয়।

পিকারের প্রকারভেদের ( DateTimePickerType ) উপর ভিত্তি করে মান নির্দিষ্ট করুন:

  • DATE_AND_TIME : UTC-তে একটি ক্যালেন্ডার তারিখ ও সময়। উদাহরণস্বরূপ, ১ জানুয়ারী, ২০২৩, দুপুর ১২:০০ UTC বোঝাতে 1672574400000 ব্যবহার করুন।
  • DATE_ONLY : ০০:০০:০০ UTC সময়ের একটি ক্যালেন্ডার তারিখ। উদাহরণস্বরূপ, ১ জানুয়ারী, ২০২৩ বোঝাতে 1672531200000 ব্যবহার করুন।
  • TIME_ONLY : UTC-তে একটি সময়। উদাহরণস্বরূপ, দুপুর ১২:০০ বোঝাতে 43200000 (বা 12 * 60 * 60 * 1000 ) ব্যবহার করুন।
timezone_offset_date

int32

UTC থেকে টাইম জোন অফসেট নির্দেশকারী সংখ্যা, যা মিনিটে পরিমাপ করা হয়। যদি সেট করা থাকে, তাহলে value_ms_epoch নির্দিষ্ট টাইম জোনে প্রদর্শিত হবে। যদি সেট করা না থাকে, তাহলে এর মান ডিফল্টভাবে ব্যবহারকারীর টাইম জোন সেটিং অনুযায়ী হবে।

on_change_action

Action

ব্যবহারকারী DateTimePicker ইন্টারফেস থেকে Save বা Clear-এ ক্লিক করলে এটি সক্রিয় হয়।

ইউনিয়ন ফিল্ড data_source । তারিখ ও সময় উপস্থাপনের জন্য নির্দিষ্ট করা ডেটা সোর্স। data_source নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:
host_app_data_source

HostAppDataSourceMarkup

ডেটার এমন উৎস যা কোনো গুগল ওয়ার্কস্পেস হোস্ট অ্যাপ্লিকেশনের জন্য স্বতন্ত্র, যেমন জিমেইল ইমেল, গুগল ক্যালেন্ডার ইভেন্ট বা গুগল চ্যাট বার্তা।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

তারিখ ও সময় পিকারের ধরন

DateTimePicker উইজেটে তারিখ এবং সময়ের ফরম্যাট। এটি নির্ধারণ করে যে ব্যবহারকারীরা একটি তারিখ, একটি সময়, নাকি তারিখ এবং সময় উভয়ই ইনপুট করতে পারবে।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

এনাম
DATE_AND_TIME ব্যবহারকারীরা একটি তারিখ ও সময় ইনপুট করেন।
DATE_ONLY ব্যবহারকারীরা একটি তারিখ ইনপুট করেন।
TIME_ONLY ব্যবহারকারীরা একটি সময় ইনপুট করেন।

সজ্জিত পাঠ্য

একটি উইজেট যা টেক্সটের সাথে ঐচ্ছিক অলঙ্করণ প্রদর্শন করে, যেমন টেক্সটের উপরে বা নীচে একটি লেবেল, টেক্সটের সামনে একটি আইকন, একটি সিলেকশন উইজেট, অথবা টেক্সটের পরে একটি বাটন। গুগল চ্যাট অ্যাপে একটি উদাহরণের জন্য, ‘অলঙ্করণমূলক টেক্সট সহ টেক্সট প্রদর্শন’ দেখুন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

ক্ষেত্র
icon
(deprecated)

Icon

startIcon এর প্রচলনের কারণে এটি অপ্রচলিত হয়ে গেছে।

start_icon

Icon

টেক্সটের সামনে প্রদর্শিত আইকনটি।

start_icon_vertical_alignment

VerticalAlignment

ঐচ্ছিক। স্টার্ট আইকনের উল্লম্ব বিন্যাস। সেট না করা হলে, আইকনটি উল্লম্বভাবে কেন্দ্রে থাকবে।

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

top_label

string

text উপরে যে লেখাটি দেখা যায়, তা সর্বদা সংক্ষিপ্ত হয়ে যায়।

top_label_text

TextParagraph

top_label এর TextParagraph সমতুল্য। সর্বদা সংক্ষিপ্ত করে। top_label চেয়ে আরও জটিল ফরম্যাটিংয়ের সুযোগ দেয়।

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

text

string

আবশ্যক। মূল পাঠ্য।

সাধারণ ফরম্যাটিং সমর্থন করে। টেক্সট ফরম্যাটিং সম্পর্কে আরও তথ্যের জন্য, Google Chat অ্যাপে টেক্সট ফরম্যাটিং এবং Google Workspace অ্যাড-অনগুলিতে টেক্সট ফরম্যাটিং দেখুন।

content_text

TextParagraph

TextParagraph হলো text এর সমতুল্য। এটি text এর চেয়ে আরও জটিল ফরম্যাটিং-এর সুযোগ দেয়।

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

wrap_text

bool

টেক্সট র‍্যাপ করার সেটিং। যদি true , তাহলে টেক্সট র‍্যাপ হয়ে একাধিক লাইনে প্রদর্শিত হবে। অন্যথায়, টেক্সটটি সংক্ষিপ্ত হয়ে যাবে।

শুধুমাত্র text ক্ষেত্রে প্রযোজ্য, topLabel এবং bottomLabel ক্ষেত্রে নয়।

bottom_label

string

যে লেখাটি text নিচে প্রদর্শিত হয়, তা সর্বদা টেক্সটকে ঘিরে রাখে।

bottom_label_text

TextParagraph

bottom_label এর TextParagraph সমতুল্য। সর্বদা র‍্যাপ করে। bottom_label চেয়ে আরও জটিল ফরম্যাটিংয়ের সুযোগ দেয়।

গুগল চ্যাট অ্যাপের জন্য উপলব্ধ, কিন্তু গুগল ওয়ার্কস্পেস অ্যাড-অনের জন্য অনুপলব্ধ।

on_click

OnClick

ব্যবহারকারীরা topLabel বা bottomLabel ক্লিক করলে এই অ্যাকশনটি সক্রিয় হয়।

ইউনিয়ন ফিল্ড control । একটি বাটন, সুইচ, চেকবক্স বা ছবি যা decoratedText ' উইজেটের টেক্সটের ডানদিকে প্রদর্শিত হয়। control নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:
button

Button

এমন একটি বাটন, যেটিতে ক্লিক করে ব্যবহারকারী কোনো কাজ সম্পন্ন করতে পারেন।

switch_control

SwitchControl

একটি সুইচ উইজেট, যেটিতে ক্লিক করে ব্যবহারকারী এর অবস্থা পরিবর্তন করতে এবং কোনো একটি কাজ শুরু করতে পারেন।

end_icon

Icon

লেখাটির পরে একটি আইকন প্রদর্শিত হয়।

অন্তর্নির্মিত এবং কাস্টম আইকন সমর্থন করে।

সুইচকন্ট্রোল

একটি টগল-স্টাইলের সুইচ অথবা একটি decoratedText উইজেটের ভিতরে থাকা একটি চেকবক্স।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

শুধুমাত্র decoratedText উইজেটে সমর্থিত।

ক্ষেত্র
name

string

ফর্ম ইনপুট ইভেন্টে সুইচ উইজেটটি যে নামে শনাক্ত করা হয়।

ফর্ম ইনপুট নিয়ে কাজ করার বিস্তারিত বিবরণের জন্য, ‘ফর্ম ডেটা গ্রহণ’ দেখুন।

value

string

ব্যবহারকারীর প্রবেশ করানো মান, যা ফর্ম ইনপুট ইভেন্টের অংশ হিসেবে ফেরত আসে।

ফর্ম ইনপুট নিয়ে কাজ করার বিস্তারিত বিবরণের জন্য, ‘ফর্ম ডেটা গ্রহণ’ দেখুন।

selected

bool

true হলে, সুইচটি নির্বাচিত হয়।

on_change_action

Action

সুইচের অবস্থা পরিবর্তিত হলে যে কাজটি সম্পাদন করতে হবে, যেমন কোন ফাংশনটি চালানো হবে।

control_type

ControlType

ইউজার ইন্টারফেসে সুইচটি যেভাবে প্রদর্শিত হয়।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

নিয়ন্ত্রণ প্রকার

ইউজার ইন্টারফেসে সুইচটি যেভাবে প্রদর্শিত হয়।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

এনাম
SWITCH একটি টগল-স্টাইলের সুইচ।
CHECKBOX CHECK_BOX এর প্রচলনের কারণে এটি অপ্রচলিত হয়ে গেছে।
CHECK_BOX একটি চেকবক্স।

বিভাজক

এই প্রকারে কোনো ক্ষেত্র নেই।

উইজেটগুলোর মধ্যে একটি বিভাজক হিসেবে একটি অনুভূমিক রেখা প্রদর্শন করে। গুগল চ্যাট অ্যাপে একটি উদাহরণের জন্য, “উইজেটগুলোর মধ্যে একটি অনুভূমিক বিভাজক যোগ করুন” দেখুন।

গুগল চ্যাট অ্যাপ এবং গুগল ওয়ার্কস্পেস অ্যাড-অনগুলির জন্য উপলব্ধ।

উদাহরণস্বরূপ, নিম্নলিখিত JSON একটি ডিভাইডার তৈরি করে:

"divider": {}

ইভেন্টঅ্যাকশন

এটি এমন একটি ক্রিয়াকে বোঝায় যা কোনো UI উপাদানের উপর সম্পাদন করা যায়।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

ক্ষেত্র
action_rule_id

string

অ্যাকশনরুলটির অনন্য শনাক্তকারী।

post_event_triggers[]

Trigger

EventAction কার্যকর হওয়ার পর যে ট্রিগারগুলো সক্রিয় হবে তার তালিকা।

সংঘের মাঠ পর্যায়ের action । সম্পাদন করার কার্যক্রম। action নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:
common_widget_action

CommonWidgetAction

সাধারণ উইজেট অ্যাকশন।

কমনউইজেটঅ্যাকশন

এমন একটি ক্রিয়াকে বোঝায় যা কোনো উইজেটের জন্য নির্দিষ্ট নয়।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

ক্ষেত্র
সংঘের মাঠ পর্যায়ের action । সম্পাদন করার কার্যক্রম। action নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:
update_visibility_action

UpdateVisibilityAction

একটি উইজেটের দৃশ্যমানতা আপডেট করার ক্রিয়া।

UpdateVisibilityAction

এটি এমন একটি ক্রিয়াকে বোঝায় যা কোনো উইজেটের দৃশ্যমানতা হালনাগাদ করে।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

ক্ষেত্র
visibility

Visibility

নতুন দৃশ্যমানতা।

এক্সপ্রেশন ডেটা

এটি সেই ডেটাকে উপস্থাপন করে যা কোনো এক্সপ্রেশন মূল্যায়ন করতে ব্যবহৃত হয়।

Google Workspace Studio-এর কার্যকারিতা বর্ধনকারী Google Workspace অ্যাড-অনগুলির জন্য উপলব্ধ। Google Chat অ্যাপগুলির জন্য অনুপলব্ধ।

ক্ষেত্র
id

string

ExpressionData-এর অনন্য শনাক্তকারী।

expression

string

অসংকলিত অভিব্যক্তি।

conditions[]

Condition

এক্সপ্রেশন মূল্যায়নের ফলাফল দ্বারা নির্ধারিত শর্তাবলীর তালিকা।

event_actions[]

EventAction

যেসব কাজে ExpressionData ব্যবহার করা যায় তার তালিকা।

গ্রিড

আইটেমের একটি সংগ্রহ সহ একটি গ্রিড প্রদর্শন করে। আইটেমগুলিতে শুধুমাত্র টেক্সট বা ছবি থাকতে পারে। রেসপন্সিভ কলামের জন্য, অথবা টেক্সট বা ছবির চেয়ে বেশি কিছু অন্তর্ভুক্ত করতে, Columns ব্যবহার করুন। গুগল চ্যাট অ্যাপে একটি উদাহরণের জন্য, আইটেমের একটি সংগ্রহ সহ একটি গ্রিড প্রদর্শন দেখুন।

A grid supports any number of columns and items. The number of rows is determined by items divided by columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows.

Available for Google Chat apps and Google Workspace add-ons.

For example, the following JSON creates a 2 column grid with a single item:

"grid": {
  "title": "A fine collection of items",
  "columnCount": 2,
  "borderStyle": {
    "type": "STROKE",
    "cornerRadius": 4
  },
  "items": [
    {
      "image": {
        "imageUri": "https://www.example.com/image.png",
        "cropStyle": {
          "type": "SQUARE"
        },
        "borderStyle": {
          "type": "STROKE"
        }
      },
      "title": "An item",
      "textAlignment": "CENTER"
    }
  ],
  "onClick": {
    "openLink": {
      "url": "https://www.example.com"
    }
  }
}
ক্ষেত্র
title

string

The text that displays in the grid header.

items[]

GridItem

The items to display in the grid.

border_style

BorderStyle

The border style to apply to each grid item.

column_count

int32

The number of columns to display in the grid. A default value is used if this field isn't specified, and that default value is different depending on where the grid is shown (dialog versus companion).

on_click

OnClick

This callback is reused by each individual grid item, but with the item's identifier and index in the items list added to the callback's parameters.

গ্রিডআইটেম

Represents an item in a grid layout. Items can contain text, an image, or both text and an image.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
id

string

A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.

image

ImageComponent

The image that displays in the grid item.

title

string

The grid item's title.

subtitle

string

The grid item's subtitle.

layout

GridItemLayout

The layout to use for the grid item.

GridItemLayout

Represents the various layout options available for a grid item.

Available for Google Chat apps and Google Workspace add-ons.

এনাম
GRID_ITEM_LAYOUT_UNSPECIFIED Don't use. Unspecified.
TEXT_BELOW The title and subtitle are shown below the grid item's image.
TEXT_ABOVE The title and subtitle are shown above the grid item's image.

আইকন

An icon displayed in a widget on a card. For an example in Google Chat apps, see Add an icon .

Supports built-in and custom icons.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
alt_text

string

Optional. A description of the icon used for accessibility. If unspecified, the default value Button is provided. As a best practice, you should set a helpful description for what the icon displays, and if applicable, what it does. For example, A user's account portrait , or Opens a new browser tab and navigates to the Google Chat developer documentation at https://developers.google.com/workspace/chat .

If the icon is set in a Button , the altText appears as helper text when the user hovers over the button. However, if the button also sets text , the icon's altText is ignored.

image_type

ImageType

The crop style applied to the image. In some cases, applying a CIRCLE crop causes the image to be drawn larger than a built-in icon.

Union field icons . The icon displayed in the widget on the card. icons can be only one of the following:
known_icon

string

Display one of the built-in icons provided by Google Workspace.

For example, to display an airplane icon, specify AIRPLANE . For a bus, specify BUS .

For a full list of supported icons, see built-in icons .

icon_url

string

Display a custom icon hosted at an HTTPS URL.

উদাহরণস্বরূপ:

"iconUrl":
"https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png"

Supported file types include .png and .jpg .

material_icon

MaterialIcon

Display one of the Google Material Icons .

For example, to display a checkbox icon , use

"material_icon": {
  "name": "check_box"
}

Available for Google Chat apps and unavailable for Google Workspace add-ons.

ছবি

An image that is specified by a URL and can have an onClick action. For an example, see Add an image .

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
image_url

string

The HTTPS URL that hosts the image.

উদাহরণস্বরূপ:

https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png
on_click

OnClick

When a user clicks the image, the click triggers this action.

alt_text

string

The alternative text of this image that's used for accessibility.

ImageComponent

Represents an image.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
image_uri

string

The image URL.

alt_text

string

The accessibility label for the image.

crop_style

ImageCropStyle

The crop style to apply to the image.

border_style

BorderStyle

The border style to apply to the image.

ImageCropStyle

Represents the crop style applied to an image.

Available for Google Chat apps and Google Workspace add-ons.

For example, here's how to apply a 16:9 aspect ratio:

cropStyle {
 "type": "RECTANGLE_CUSTOM",
 "aspectRatio": 16/9
}
ক্ষেত্র
type

ImageCropType

The crop type.

aspect_ratio

double

The aspect ratio to use if the crop type is RECTANGLE_CUSTOM .

For example, here's how to apply a 16:9 aspect ratio:

cropStyle {
 "type": "RECTANGLE_CUSTOM",
 "aspectRatio": 16/9
}

ImageCropType

Represents the crop style applied to an image.

Available for Google Chat apps and Google Workspace add-ons.

এনাম
IMAGE_CROP_TYPE_UNSPECIFIED Don't use. Unspecified.
SQUARE Default value. Applies a square crop.
CIRCLE Applies a circular crop.
RECTANGLE_CUSTOM Applies a rectangular crop with a custom aspect ratio. Set the custom aspect ratio with aspectRatio .
RECTANGLE_4_3 Applies a rectangular crop with a 4:3 aspect ratio.

MaterialIcon

A Google Material Icon , which includes over 2500+ options.

For example, to display a checkbox icon with customized weight and grade, write the following:

{
  "name": "check_box",
  "fill": true,
  "weight": 300,
  "grade": -25
}

Available for Google Chat apps and unavailable for Google Workspace add-ons.

ক্ষেত্র
name

string

The icon name defined in the Google Material Icon , for example, check_box . Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.

fill

bool

Whether the icon renders as filled. Default value is false.

To preview different icon settings, go to Google Font Icons and adjust the settings under Customize .

weight

int32

The stroke weight of the icon. Choose from {100, 200, 300, 400, 500, 600, 700}. If absent, default value is 400. If any other value is specified, the default value is used.

To preview different icon settings, go to Google Font Icons and adjust the settings under Customize .

grade

int32

Weight and grade affect a symbol's thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, the default value is used.

To preview different icon settings, go to Google Font Icons and adjust the settings under Customize .

অনক্লিক

Represents how to respond when users click an interactive element on a card, such as a button.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র

Union field data .

data can be only one of the following:

action

Action

If specified, an action is triggered by this onClick .

card

Card

A new card is pushed to the card stack after clicking if specified.

Available for Google Workspace add-ons and unavailable for Google Chat apps.

overflow_menu

OverflowMenu

If specified, this onClick opens an overflow menu.

OnClose

What the client does when a link opened by an OnClick action is closed.

Implementation depends on client platform capabilities. For example, a web browser might open a link in a pop-up window with an OnClose handler.

If both OnOpen and OnClose handlers are set, and the client platform can't support both values, OnClose takes precedence.

Available for Google Workspace add-ons and unavailable for Google Chat apps.

এনাম
NOTHING Default value. The card doesn't reload; nothing happens.
RELOAD

Reloads the card after the child window closes.

If used in conjunction with OpenAs.OVERLAY , the child window acts as a modal dialog and the parent card is blocked until the child window closes.

OpenAs

When an OnClick action opens a link, then the client can either open it as a full-size window (if that's the frame used by the client), or an overlay (such as a pop-up). The implementation depends on the client platform capabilities, and the value selected might be ignored if the client doesn't support it. FULL_SIZE is supported by all clients.

Available for Google Workspace add-ons and unavailable for Google Chat apps.

এনাম
FULL_SIZE The link opens as a full-size window (if that's the frame used by the client).
OVERLAY The link opens as an overlay, such as a pop-up.

OverflowMenu

A widget that presents a pop-up menu with one or more actions that users can invoke. For example, showing non-primary actions in a card. You can use this widget when actions don't fit in the available space. To use, specify this widget in the OnClick action of widgets that support it. For example, in a Button .

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
items[]

OverflowMenuItem

Required. The list of menu options.

OverflowMenuItem

An option that users can invoke in an overflow menu.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
start_icon

Icon

The icon displayed in front of the text.

text

string

Required. The text that identifies or describes the item to users.

on_click

OnClick

Required. The action invoked when a menu option is selected. This OnClick cannot contain an OverflowMenu , any specified OverflowMenu is dropped and the menu item disabled.

disabled

bool

Whether the menu option is disabled. Defaults to false.

SelectionInput

A widget that creates one or more UI items that users can select. Supports form submission validation for dropdown and multiselect menus only. When Action.all_widgets_are_required is set to true or this widget is specified in Action.required_widgets , the submission action is blocked unless a value is selected. For example, a dropdown menu or checkboxes. You can use this widget to collect data that can be predicted or enumerated. For an example in Google Chat apps, see Add selectable UI elements .

Chat apps can process the value of items that users select or input. For details about working with form inputs, see Receive form data .

To collect undefined or abstract data from users, use the TextInput widget.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
name

string

Required. The name that identifies the selection input in a form input event.

For details about working with form inputs, see Receive form data .

label

string

The text that appears above the selection input field in the user interface.

Specify text that helps the user enter the information your app needs. For example, if users are selecting the urgency of a work ticket from a drop-down menu, the label might be "Urgency" or "Select urgency".

type

SelectionType

The type of items that are displayed to users in a SelectionInput widget. Selection types support different types of interactions. For example, users can select one or more checkboxes, but they can only select one value from a dropdown menu.

items[]

SelectionItem

An array of selectable items. For example, an array of radio buttons or checkboxes. Supports up to 100 items.

on_change_action

Action

If specified, the form is submitted when the selection changes. If not specified, you must specify a separate button that submits the form.

For details about working with form inputs, see Receive form data .

multi_select_min_query_length

int32

For multiselect menus, the number of text characters that a user inputs before the menu returns suggested selection items.

If unset, the multiselect menu uses the following default values:

  • If the menu uses a static array of SelectionInput items, defaults to 0 characters and immediately populates items from the array.
  • If the menu uses a dynamic data source ( multi_select_data_source ), defaults to 3 characters before querying the data source to return suggested items.
data_source_configs[]

DataSourceConfig

Optional. The data source configs for the selection control. This field provides more fine-grained control over the data source.

If specified, the multi_select_max_selected_items field, multi_select_min_query_length field, external_data_source field and platform_data_source field are ignored.

Available for Google Workspace add-ons that extend Google Workspace Studio.

Available for the Dropdown widget in Google Chat apps. For the Dropdown widget in Google Chat apps, only one DataSourceConfig is supported. If multiple DataSourceConfig s are set, only the first one is used.

multi_select_max_selected_items

int32

For multiselect menus, the maximum number of items that a user can select. Minimum value is 1 item. If unspecified, defaults to 3 items.

hint_text

string

Optional. Text that appears below the selection input field meant to assist users by prompting them to enter a certain value. This text is always visible.

Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps.

Union field multi_select_data_source . For a multiselect menu, a data source that dynamically populates selection items.

Available for Google Chat apps and unavailable for Google Workspace add-ons. multi_select_data_source can be only one of the following:

external_data_source

Action

An external data source, such as a relational database.

platform_data_source

PlatformDataSource

A data source from Google Workspace.

PlatformDataSource

For a SelectionInput widget that uses a multiselect menu, a data source from Google Workspace. Used to populate items in a multiselect menu.

Available for Google Chat apps and unavailable for Google Workspace add-ons.

ক্ষেত্র
Union field data_source . The data source. data_source can be only one of the following:
common_data_source

CommonDataSource

A data source shared by all Google Workspace applications, such as users in a Google Workspace organization.

host_app_data_source

HostAppDataSourceMarkup

A data source that's unique to a Google Workspace host application, such spaces in Google Chat.

This field supports the Google API Client Libraries but isn't available in the Cloud Client Libraries. To learn more, see Install the client libraries .

CommonDataSource

A data source shared by all Google Workspace applications .

Available for Google Chat apps and unavailable for Google Workspace add-ons.

এনাম
UNKNOWN Default value. Don't use.
USER Google Workspace users. The user can only view and select users from their Google Workspace organization.

SelectionItem

An item that users can select in a selection input, such as a checkbox or switch. Supports up to 100 items.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
text

string

The text that identifies or describes the item to users.

value

string

The value associated with this item. The client should use this as a form input value.

For details about working with form inputs, see Receive form data .

selected

bool

Whether the item is selected by default. If the selection input only accepts one value (such as for radio buttons or a dropdown menu), only set this field for one item.

bottom_text

string

For multiselect menus, a text description or label that's displayed below the item's text field.

Union field start_icon . For multiselect menus, the URL for the icon displayed next to the item's text field. Supports PNG and JPEG files. Must be an HTTPS URL. For example, https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png . start_icon can be only one of the following:
start_icon_uri

string

SelectionType

The format for the items that users can select. Different options support different types of interactions. For example, users can select multiple checkboxes, but can only select one item from a dropdown menu.

Each selection input supports one type of selection. Mixing checkboxes and switches, for example, isn't supported.

Available for Google Chat apps and Google Workspace add-ons.

এনাম
CHECK_BOX A set of checkboxes. Users can select one or more checkboxes.
RADIO_BUTTON A set of radio buttons. Users can select one radio button.
SWITCH A set of switches. Users can turn on one or more switches.
DROPDOWN

A dropdown menu. Users can select one item from the menu.

For Google Chat apps, you can populate items using a dynamic data source and autosuggest items as users type in the menu. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space. To dynamically populate items for a dropdown menu, use one of the following types of data sources:

  • Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces.
  • External data: Items are populated from an external data source outside of Google Workspace.

For examples of how to implement dropdown menus for Chat apps, see Add a dropdown menu and Dynamically populate drop-down menus .

Available for Google Chat apps and Google Workspace add-ons.

MULTI_SELECT

A menu with a text box. Users can type and select one or more items. For Google Workspace add-ons, you must populate items using a static array of SelectionItem objects.

For Google Chat apps, you can also populate items using a dynamic data source and autosuggest items as users type in the menu. For example, users can start typing the name of a Google Chat space and the widget autosuggests the space. To dynamically populate items for a multiselect menu, use one of the following types of data sources:

  • Google Workspace data: Items are populated using data from Google Workspace, such as Google Workspace users or Google Chat spaces.
  • External data: Items are populated from an external data source outside of Google Workspace.

For examples of how to implement multiselect menus for Chat apps, see Add a multiselect menu .

Available for Google Chat apps and Google Workspace add-ons.

পরামর্শ

Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed.

For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing Jav , the list of suggestions filters to show Java and JavaScript .

Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter javascript and others java script . Suggesting JavaScript can standardize how users interact with your app.

When specified, TextInput.type is always SINGLE_LINE , even if it's set to MULTIPLE_LINE .

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
items[]

SuggestionItem

A list of suggestions used for autocomplete recommendations in text input fields.

SuggestionItem

One suggested value that users can enter in a text input field.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র

ইউনিয়ন ক্ষেত্রের content

content নিম্নলিখিতগুলির মধ্যে কেবল একটি হতে পারে:

text

string

The value of a suggested input to a text input field. This is equivalent to what users enter themselves.

TextInput

A field in which users can enter text. Supports suggestions and on-change actions. Supports form submission validation. When Action.all_widgets_are_required is set to true or this widget is specified in Action.required_widgets , the submission action is blocked unless a value is entered. For an example in Google Chat apps, see Add a field in which a user can enter text .

Chat apps receive and can process the value of entered text during form input events. For details about working with form inputs, see Receive form data .

When you need to collect undefined or abstract data from users, use a text input. To collect defined or enumerated data from users, use the SelectionInput widget.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
name

string

The name by which the text input is identified in a form input event.

For details about working with form inputs, see Receive form data .

label

string

The text that appears above the text input field in the user interface.

Specify text that helps the user enter the information your app needs. For example, if you are asking someone's name, but specifically need their surname, write surname instead of name .

Required if hintText is unspecified. Otherwise, optional.

hint_text

string

Text that appears below the text input field meant to assist users by prompting them to enter a certain value. This text is always visible.

Required if label is unspecified. Otherwise, optional.

value

string

The value entered by a user, returned as part of a form input event.

For details about working with form inputs, see Receive form data .

type

Type

How a text input field appears in the user interface. For example, whether the field is single or multi-line.

on_change_action

Action

What to do when a change occurs in the text input field. For example, a user adding to the field or deleting text.

Examples of actions to take include running a custom function or opening a dialog in Google Chat.

initial_suggestions

Suggestions

Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed.

For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing Jav , the list of suggestions filters to show just Java and JavaScript .

Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter javascript and others java script . Suggesting JavaScript can standardize how users interact with your app.

When specified, TextInput.type is always SINGLE_LINE , even if it's set to MULTIPLE_LINE .

Available for Google Chat apps and Google Workspace add-ons.

auto_complete_action

Action

Optional. Specify what action to take when the text input field provides suggestions to users who interact with it.

If unspecified, the suggestions are set by initialSuggestions and are processed by the client.

If specified, the app takes the action specified here, such as running a custom function.

Available for Google Workspace add-ons and unavailable for Google Chat apps.

validation

Validation

Specify the input format validation necessary for this text field.

Available for Google Chat apps and Google Workspace add-ons.

placeholder_text

string

Text that appears in the text input field when the field is empty. Use this text to prompt users to enter a value. For example, Enter a number from 0 to 100 .

Available for Google Chat apps and unavailable for Google Workspace add-ons.

Union field data_source .

data_source can be only one of the following:

host_app_data_source

HostAppDataSourceMarkup

A data source that's unique to a Google Workspace host application, such as Gmail emails, Google Calendar events, or Google Chat messages.

Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps.

প্রকার

How a text input field appears in the user interface. For example, whether it's a single line input field, or a multi-line input. If initialSuggestions is specified, type is always SINGLE_LINE , even if it's set to MULTIPLE_LINE .

Available for Google Chat apps and Google Workspace add-ons.

এনাম
SINGLE_LINE The text input field has a fixed height of one line.
MULTIPLE_LINE The text input field has a fixed height of multiple lines.

TextParagraph

A paragraph of text that supports formatting. For an example in Google Chat apps, see Add a paragraph of formatted text . For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace add-ons .

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
text

string

The text that's shown in the widget.

max_lines

int32

The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show more button. If the text is equal or shorter than the specified maximum number of lines, a show more button isn't displayed.

The default value is 0, in which case all context is displayed. Negative values are ignored.

text_syntax

TextSyntax

The syntax of the text. If not set, the text is rendered as HTML.

Available for Google Chat apps and unavailable for Google Workspace add-ons.

TextSyntax

Syntax to use for formatting text.

Available for Google Chat apps and unavailable for Google Workspace add-ons.

এনাম
TEXT_SYNTAX_UNSPECIFIED The text is rendered as HTML if unspecified.
HTML The text is rendered as HTML. This is the default value.
MARKDOWN The text is rendered as Markdown.

ট্রিগার

Represents a trigger.

Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps.

ক্ষেত্র
action_rule_id

string

The unique identifier of the ActionRule.

বৈধতা

Represents the necessary data for validating the widget it's attached to.

Available for Google Chat apps and Google Workspace add-ons.

ক্ষেত্র
character_limit

int32

Specify the character limit for text input widgets. Note that this is only used for text input and is ignored for other widgets.

Available for Google Chat apps and Google Workspace add-ons.

input_type

InputType

Specify the type of the input widgets.

Available for Google Chat apps and Google Workspace add-ons.

InputType

The type of the input widget.

এনাম
INPUT_TYPE_UNSPECIFIED Unspecified type. Do not use.
TEXT Regular text that accepts all characters.
INTEGER An integer value.
FLOAT A float value.
EMAIL An email address.
EMOJI_PICKER A emoji selected from system-provided emoji picker.

উইজেট

Each card is made up of widgets.

A widget is a composite object that can represent one of text, images, buttons, and other object types.

ক্ষেত্র
horizontal_alignment

HorizontalAlignment

Specifies whether widgets align to the left, right, or center of a column.

id

string

A unique ID assigned to the widget that's used to identify the widget to be mutated. The ID has a character limit of 64 characters and should be in the format of [a-zA-Z0-9-]+ .

Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps.

visibility

Visibility

Specifies whether the widget is visible or hidden. The default value is VISIBLE .

Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps.

event_actions[]

EventAction

Specifies the event actions that can be performed on the widget.

Available for Google Workspace add-ons that extend Google Workspace Studio. Unavailable for Google Chat apps.

Union field data . A widget can only have one of the following items. You can use multiple widget fields to display more items. data can be only one of the following:
text_paragraph

TextParagraph

Displays a text paragraph. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace add-ons .

For example, the following JSON creates a bolded text:

"textParagraph": {
  "text": "  <b>bold text</b>"
}
image

Image

একটি ছবি প্রদর্শন করে।

For example, the following JSON creates an image with alternative text:

"image": {
  "imageUrl":
  "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
  "altText": "Chat app avatar"
}
decorated_text

DecoratedText

Displays a decorated text item.

For example, the following JSON creates a decorated text widget showing email address:

"decoratedText": {
  "icon": {
    "knownIcon": "EMAIL"
  },
  "topLabel": "Email Address",
  "text": "sasha@example.com",
  "bottomLabel": "This is a new Email address!",
  "switchControl": {
    "name": "has_send_welcome_email_to_sasha",
    "selected": false,
    "controlType": "CHECKBOX"
  }
}
button_list

ButtonList

A list of buttons.

For example, the following JSON creates two buttons. The first is a blue text button and the second is an image button that opens a link:

"buttonList": {
  "buttons": [
    {
      "text": "Edit",
      "color": {
        "red": 0,
        "green": 0,
        "blue": 1,
      },
      "disabled": true,
    },
    {
      "icon": {
        "knownIcon": "INVITE",
        "altText": "check calendar"
      },
      "onClick": {
        "openLink": {
          "url": "https://example.com/calendar"
        }
      }
    }
  ]
}
text_input

TextInput

Displays a text box that users can type into.

For example, the following JSON creates a text input for an email address:

"textInput": {
  "name": "mailing_address",
  "label": "Mailing Address"
}

As another example, the following JSON creates a text input for a programming language with static suggestions:

"textInput": {
  "name": "preferred_programing_language",
  "label": "Preferred Language",
  "initialSuggestions": {
    "items": [
      {
        "text": "C++"
      },
      {
        "text": "Java"
      },
      {
        "text": "JavaScript"
      },
      {
        "text": "Python"
      }
    ]
  }
}
selection_input

SelectionInput

Displays a selection control that lets users select items. Selection controls can be checkboxes, radio buttons, switches, or dropdown menus.

For example, the following JSON creates a dropdown menu that lets users choose a size:

"selectionInput": {
  "name": "size",
  "label": "Size"
  "type": "DROPDOWN",
  "items": [
    {
      "text": "S",
      "value": "small",
      "selected": false
    },
    {
      "text": "M",
      "value": "medium",
      "selected": true
    },
    {
      "text": "L",
      "value": "large",
      "selected": false
    },
    {
      "text": "XL",
      "value": "extra_large",
      "selected": false
    }
  ]
}
date_time_picker

DateTimePicker

Displays a widget that lets users input a date, time, or date and time.

For example, the following JSON creates a date time picker to schedule an appointment:

"dateTimePicker": {
  "name": "appointment_time",
  "label": "Book your appointment at:",
  "type": "DATE_AND_TIME",
  "valueMsEpoch": 796435200000
}
divider

Divider

Displays a horizontal line divider between widgets.

For example, the following JSON creates a divider:

"divider": {
}
grid

Grid

Displays a grid with a collection of items.

A grid supports any number of columns and items. The number of rows is determined by the upper bounds of the number items divided by the number of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11 items and 2 columns has 6 rows.

Available for Google Chat apps and Google Workspace add-ons.

For example, the following JSON creates a 2 column grid with a single item:

"grid": {
  "title": "A fine collection of items",
  "columnCount": 2,
  "borderStyle": {
    "type": "STROKE",
    "cornerRadius": 4
  },
  "items": [
    {
      "image": {
        "imageUri": "https://www.example.com/image.png",
        "cropStyle": {
          "type": "SQUARE"
        },
        "borderStyle": {
          "type": "STROKE"
        }
      },
      "title": "An item",
      "textAlignment": "CENTER"
    }
  ],
  "onClick": {
    "openLink": {
      "url": "https://www.example.com"
    }
  }
}
columns

Columns

Displays up to 2 columns.

To include more than 2 columns, or to use rows, use the Grid widget.

For example, the following JSON creates 2 columns that each contain text paragraphs:

"columns": {
  "columnItems": [
    {
      "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
      "horizontalAlignment": "CENTER",
      "verticalAlignment": "CENTER",
      "widgets": [
        {
          "textParagraph": {
            "text": "First column text paragraph"
          }
        }
      ]
    },
    {
      "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
      "horizontalAlignment": "CENTER",
      "verticalAlignment": "CENTER",
      "widgets": [
        {
          "textParagraph": {
            "text": "Second column text paragraph"
          }
        }
      ]
    }
  ]
}
carousel

Carousel

A carousel contains a collection of nested widgets. For example, this is a JSON representation of a carousel that contains two text paragraphs.

{
  "widgets": [
    {
      "textParagraph": {
        "text": "First text paragraph in the carousel."
      }
    },
    {
      "textParagraph": {
        "text": "Second text paragraph in the carousel."
      }
    }
  ]
}
chip_list

ChipList

A list of chips.

For example, the following JSON creates two chips. The first is a text chip and the second is an icon chip that opens a link:

"chipList": {
  "chips": [
    {
      "text": "Edit",
      "disabled": true,
    },
    {
      "icon": {
        "knownIcon": "INVITE",
        "altText": "check calendar"
      },
      "onClick": {
        "openLink": {
          "url": "https://example.com/calendar"
        }
      }
    }
  ]
}

অনুভূমিক সারিবদ্ধকরণ

Specifies whether widgets align to the left, right, or center of a column.

Available for Google Chat apps and unavailable for Google Workspace add-ons.

এনাম
HORIZONTAL_ALIGNMENT_UNSPECIFIED Don't use. Unspecified.
START Default value. Aligns widgets to the start position of the column. For left-to-right layouts, aligns to the left. For right-to-left layouts, aligns to the right.
CENTER Aligns widgets to the center of the column.
END Aligns widgets to the end position of the column. For left-to-right layouts, aligns widgets to the right. For right-to-left layouts, aligns widgets to the left.

ImageType

The shape used to crop the image.

Available for Google Chat apps and Google Workspace add-ons.

এনাম
SQUARE Default value. Applies a square mask to the image. For example, a 4x3 image becomes 3x3.
CIRCLE Applies a circular mask to the image. For example, a 4x3 image becomes a circle with a diameter of 3.

উল্লম্ব সারিবদ্ধকরণ

Represents vertical alignment attribute.

এনাম
VERTICAL_ALIGNMENT_UNSPECIFIED Unspecified type. Do not use.
TOP Alignment to the top position.
MIDDLE Alignment to the middle position.
BOTTOM Alignment to the bottom position.