Package google.chat.v1

সূচক

চ্যাট সার্ভিস

ডেভেলপারদের Google চ্যাট প্ল্যাটফর্মে চ্যাট অ্যাপ এবং ইন্টিগ্রেশন তৈরি করতে সক্ষম করে।

CompleteImportSpace

rpc CompleteImportSpace( CompleteImportSpaceRequest ) returns ( CompleteImportSpaceResponse )

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

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগ প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

সদস্যপদ তৈরি করুন

rpc CreateMembership( CreateMembershipRequest ) returns ( Membership )

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

যোগ করার জন্য সদস্য নির্দিষ্ট করতে, মানব বা অ্যাপ সদস্যের জন্য membership.member.name সেট করুন বা গ্রুপ সদস্যের জন্য membership.group_member.name সেট করুন।

  • একটি স্পেসে কলিং অ্যাপ যোগ করতে বা দুটি মানব ব্যবহারকারীর মধ্যে সরাসরি বার্তা যোগ করতে, users/app ব্যবহার করুন। স্পেসে অন্যান্য অ্যাপ যোগ করতে অক্ষম৷

  • একটি মানব ব্যবহারকারী যোগ করতে, users/{user} ব্যবহার করুন, যেখানে {user} ব্যবহারকারীর ইমেল ঠিকানা হতে পারে। একই ওয়ার্কস্পেস সংস্থার ব্যবহারকারীদের জন্য {user} জন এপিআই থেকে ব্যক্তির জন্য id বা ডিরেক্টরি API-এর ব্যবহারকারীর জন্য id হতে পারে। উদাহরণ স্বরূপ, user@example.com এর জন্য People API Person প্রোফাইল ID 123456789 হলে, আপনি users/user@example.com বা users/123456789membership.member.name সেট করে স্পেসে ব্যবহারকারীকে যোগ করতে পারেন।

  • একটি নামযুক্ত স্পেসে একটি Google গ্রুপ যোগ করতে বা আমন্ত্রণ জানাতে, groups/{group} ব্যবহার করুন, যেখানে {group} হল Cloud Identity Groups API থেকে গোষ্ঠীর id ৷ উদাহরণস্বরূপ, আপনি গ্রুপ ইমেল group@example.com এর জন্য আইডি 123456789 পুনরুদ্ধার করতে ক্লাউড আইডেন্টিটি গ্রুপ লুকআপ API ব্যবহার করতে পারেন, তারপর আপনি groups/123456789membership.group_member.name সেট করে একটি নামযুক্ত স্পেসে গ্রুপকে যোগ করতে বা আমন্ত্রণ জানাতে পারেন। গ্রুপ ইমেল সমর্থিত নয়, এবং Google গ্রুপগুলি শুধুমাত্র নামযুক্ত স্থানগুলিতে সদস্য হিসাবে যোগ করা যেতে পারে।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.app

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

মেসেজ তৈরি করুন

rpc CreateMessage( CreateMessageRequest ) returns ( Message )

একটি Google চ্যাট স্পেসে একটি বার্তা তৈরি করে। পাঠ্য এবং কার্ড সহ সর্বাধিক বার্তার আকার হল 32,000 বাইট৷ একটি উদাহরণের জন্য, একটি বার্তা পাঠান দেখুন।

এই পদ্ধতিতে কল করার জন্য প্রমাণীকরণ প্রয়োজন এবং নিম্নলিখিত প্রমাণীকরণ প্রকারগুলিকে সমর্থন করে:

  • পাঠ্য বার্তাগুলির জন্য, ব্যবহারকারীর প্রমাণীকরণ বা অ্যাপ প্রমাণীকরণ সমর্থিত।
  • কার্ড বার্তাগুলির জন্য, শুধুমাত্র অ্যাপ প্রমাণীকরণ সমর্থিত। (শুধুমাত্র চ্যাট অ্যাপই কার্ড বার্তা তৈরি করতে পারে।)
অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.create

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

প্রতিক্রিয়া তৈরি করুন

rpc CreateReaction( CreateReactionRequest ) returns ( Reaction )

একটি প্রতিক্রিয়া তৈরি করে এবং এটি একটি বার্তায় যোগ করে। শুধুমাত্র ইউনিকোড ইমোজি সমর্থিত। একটি উদাহরণের জন্য, একটি বার্তার প্রতিক্রিয়া যোগ করুন দেখুন। ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.create

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

স্পেস তৈরি করুন

rpc CreateSpace( CreateSpaceRequest ) returns ( Space )

একটি নামযুক্ত স্থান তৈরি করে। বিষয় দ্বারা গোষ্ঠীবদ্ধ স্থানগুলি সমর্থিত নয়৷ একটি উদাহরণের জন্য, একটি স্থান তৈরি করুন দেখুন।

যদি আপনি একটি স্পেস তৈরি করার সময় ALREADY_EXISTS ত্রুটি বার্তাটি পান, একটি ভিন্ন displayName চেষ্টা করুন। Google Workspace সংস্থার মধ্যে আগে থেকেই এই ডিসপ্লে নাম ব্যবহার করা হতে পারে।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.create

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

সদস্যপদ মুছুন

rpc DeleteMembership( DeleteMembershipRequest ) returns ( Membership )

একটি সদস্যপদ মুছে দেয়। একটি উদাহরণের জন্য, একটি স্থান থেকে ব্যবহারকারী বা একটি Google চ্যাট অ্যাপ সরান দেখুন।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.app

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

বার্তা মুছুন

rpc DeleteMessage( DeleteMessageRequest ) returns ( Empty )

একটি বার্তা মুছে দেয়। একটি উদাহরণের জন্য, একটি বার্তা মুছুন দেখুন।

প্রমাণীকরণ প্রয়োজন. অ্যাপ প্রমাণীকরণ এবং ব্যবহারকারীর প্রমাণীকরণ সমর্থন করে। অ্যাপ প্রমাণীকরণ ব্যবহার করার সময়, অনুরোধ শুধুমাত্র কলিং চ্যাট অ্যাপ দ্বারা তৈরি বার্তাগুলি মুছে ফেলতে পারে।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

ডিলিট রিঅ্যাকশন

rpc DeleteReaction( DeleteReactionRequest ) returns ( Empty )

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

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.reactions

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

DeleteSpace

rpc DeleteSpace( DeleteSpaceRequest ) returns ( Empty )

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

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.delete
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.delete

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

ডাইরেক্ট মেসেজ খুঁজুন

rpc FindDirectMessage( FindDirectMessageRequest ) returns ( Space )

নির্দিষ্ট ব্যবহারকারীর সাথে বিদ্যমান সরাসরি বার্তা ফেরত দেয়। যদি কোনো সরাসরি বার্তা স্থান না পাওয়া যায়, একটি 404 NOT_FOUND ত্রুটি প্রদান করে। একটি উদাহরণের জন্য, একটি সরাসরি বার্তা খুঁজুন দেখুন।

ব্যবহারকারীর প্রমাণীকরণের সাথে, নির্দিষ্ট ব্যবহারকারী এবং প্রমাণীকৃত ব্যবহারকারীর মধ্যে সরাসরি বার্তা স্থান ফেরত দেয়।

অ্যাপ প্রমাণীকরণের মাধ্যমে, নির্দিষ্ট ব্যবহারকারী এবং কলিং চ্যাট অ্যাপের মধ্যে সরাসরি বার্তার স্থান ফেরত দেয়।

ব্যবহারকারীর প্রমাণীকরণ বা অ্যাপ প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.bot

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

সংযুক্তি পান

rpc GetAttachment( GetAttachmentRequest ) returns ( Attachment )

একটি বার্তা সংযুক্তির মেটাডেটা পায়। সংযুক্তি ডেটা মিডিয়া API ব্যবহার করে আনা হয়। একটি উদাহরণের জন্য, একটি বার্তা সংযুক্তি সম্পর্কে মেটাডেটা পান দেখুন। অ্যাপ প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগ প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

সদস্যপদ পান

rpc GetMembership( GetMembershipRequest ) returns ( Membership )

সদস্যতা সম্পর্কে বিশদ বিবরণ প্রদান করে। উদাহরণের জন্য, ব্যবহারকারীর বা Google চ্যাট অ্যাপের সদস্যতা সম্পর্কে বিশদ বিবরণ পান দেখুন।

প্রমাণীকরণ প্রয়োজন. অ্যাপ প্রমাণীকরণ এবং ব্যবহারকারীর প্রমাণীকরণ সমর্থন করে।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.admin.memberships.readonly
  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

GetMessage

rpc GetMessage( GetMessageRequest ) returns ( Message )

একটি বার্তা সম্পর্কে বিবরণ প্রদান করে। একটি উদাহরণের জন্য, একটি বার্তা সম্পর্কে বিবরণ পান দেখুন।

প্রমাণীকরণ প্রয়োজন. অ্যাপ প্রমাণীকরণ এবং ব্যবহারকারীর প্রমাণীকরণ সমর্থন করে।

দ্রষ্টব্য: একটি অবরুদ্ধ সদস্য বা স্থান থেকে একটি বার্তা ফিরে আসতে পারে.

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

GetSpace

rpc GetSpace( GetSpaceRequest ) returns ( Space )

একটি স্থান সম্পর্কে বিশদ বিবরণ প্রদান করে। একটি উদাহরণের জন্য, একটি স্থান সম্পর্কে বিশদ বিবরণ পান দেখুন।

প্রমাণীকরণ প্রয়োজন. অ্যাপ প্রমাণীকরণ এবং ব্যবহারকারীর প্রমাণীকরণ সমর্থন করে।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.spaces
  • https://www.googleapis.com/auth/chat.admin.spaces.readonly
  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.bot

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

GetSpaceEvent

rpc GetSpaceEvent( GetSpaceEventRequest ) returns ( SpaceEvent )

একটি Google চ্যাট স্থান থেকে একটি ইভেন্ট ফেরত দেয়। ইভেন্ট পেলোডে পরিবর্তিত সম্পদের সাম্প্রতিকতম সংস্করণ রয়েছে। উদাহরণস্বরূপ, যদি আপনি একটি নতুন বার্তা সম্পর্কে একটি ইভেন্টের অনুরোধ করেন কিন্তু বার্তাটি পরে আপডেট করা হয়, সার্ভারটি ইভেন্ট পেলোডে আপডেট করা Message সংস্থান ফেরত দেয়।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন। একটি ইভেন্ট পেতে, প্রমাণীকৃত ব্যবহারকারীকে অবশ্যই স্থানের সদস্য হতে হবে।

একটি উদাহরণের জন্য, একটি Google চ্যাট স্পেস থেকে একটি ইভেন্ট সম্পর্কে বিশদ বিবরণ পান দেখুন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

GetSpaceReadState

rpc GetSpaceReadState( GetSpaceReadStateRequest ) returns ( SpaceReadState )

একটি স্পেসের মধ্যে ব্যবহারকারীর পঠিত অবস্থা সম্পর্কে বিশদ বিবরণ প্রদান করে, যা পঠিত এবং অপঠিত বার্তা সনাক্ত করতে ব্যবহৃত হয়। একটি উদাহরণের জন্য, ব্যবহারকারীর স্থান পড়ার অবস্থা সম্পর্কে বিশদ বিবরণ পান দেখুন।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.users.readstate
  • https://www.googleapis.com/auth/chat.users.readstate.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

GetThreadReadState

rpc GetThreadReadState( GetThreadReadStateRequest ) returns ( ThreadReadState )

একটি থ্রেডের মধ্যে ব্যবহারকারীর পঠিত অবস্থা সম্পর্কে বিশদ বিবরণ প্রদান করে, পঠিত এবং অপঠিত বার্তা সনাক্ত করতে ব্যবহৃত হয়। একটি উদাহরণের জন্য, ব্যবহারকারীর থ্রেড পড়ার অবস্থা সম্পর্কে বিশদ বিবরণ পান দেখুন।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.users.readstate
  • https://www.googleapis.com/auth/chat.users.readstate.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

তালিকা সদস্যপদ

rpc ListMemberships( ListMembershipsRequest ) returns ( ListMembershipsResponse )

একটি স্পেসে সদস্যতা তালিকা. উদাহরণের জন্য, একটি স্পেসে ব্যবহারকারী এবং Google চ্যাট অ্যাপের তালিকা দেখুন। অ্যাপ প্রমাণীকরণের মাধ্যমে মেম্বারশিপ তালিকাভুক্ত করা হলে Chat অ্যাপের অ্যাক্সেস আছে এমন জায়গায় মেম্বারশিপ তালিকাভুক্ত করা হয়, কিন্তু Chat অ্যাপ মেম্বারশিপ বাদ দেওয়া হয়, যার মধ্যে নিজস্ব। ব্যবহারকারীর প্রমাণীকরণের সাথে সদস্যতা তালিকাভুক্ত করা স্পেসগুলিতে সদস্যপদগুলিকে তালিকাভুক্ত করে যেখানে প্রমাণীকৃত ব্যবহারকারীর অ্যাক্সেস রয়েছে৷

প্রমাণীকরণ প্রয়োজন. অ্যাপ প্রমাণীকরণ এবং ব্যবহারকারীর প্রমাণীকরণ সমর্থন করে।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.admin.memberships.readonly
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

তালিকা বার্তা

rpc ListMessages( ListMessagesRequest ) returns ( ListMessagesResponse )

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

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

তালিকা প্রতিক্রিয়া

rpc ListReactions( ListReactionsRequest ) returns ( ListReactionsResponse )

একটি বার্তার প্রতিক্রিয়া তালিকা করে। একটি উদাহরণের জন্য, একটি বার্তার জন্য প্রতিক্রিয়া তালিকা দেখুন। ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

লিস্টস্পেস ইভেন্ট

rpc ListSpaceEvents( ListSpaceEventsRequest ) returns ( ListSpaceEventsResponse )

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

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

একটি উদাহরণের জন্য, একটি Google চ্যাট স্পেস থেকে ইভেন্টের তালিকা দেখুন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

লিস্টস্পেস

rpc ListSpaces( ListSpacesRequest ) returns ( ListSpacesResponse )

কলার যে স্থানের সদস্য তা তালিকাভুক্ত করে। প্রথম বার্তা পাঠানো না হওয়া পর্যন্ত গ্রুপ চ্যাট এবং DM তালিকাভুক্ত করা হয় না। একটি উদাহরণের জন্য, তালিকা স্পেস দেখুন।

প্রমাণীকরণ প্রয়োজন. অ্যাপ প্রমাণীকরণ এবং ব্যবহারকারীর প্রমাণীকরণ সমর্থন করে।

কলার বা প্রমাণীকৃত ব্যবহারকারীর কাছে দৃশ্যমান স্থানগুলি তালিকাভুক্ত করে। প্রথম বার্তা পাঠানো না হওয়া পর্যন্ত গ্রুপ চ্যাট এবং DM তালিকাভুক্ত করা হয় না।

Google Workspace অর্গানাইজেশনের সমস্ত নামযুক্ত স্পেস তালিকাভুক্ত করতে, পরিবর্তে Workspace অ্যাডমিনিস্ট্রেটর বিশেষাধিকার ব্যবহার করে spaces.search() পদ্ধতি ব্যবহার করুন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.bot

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

সার্চস্পেস

rpc SearchSpaces( SearchSpacesRequest ) returns ( SearchSpacesResponse )

ব্যবহারকারীর অনুসন্ধানের উপর ভিত্তি করে স্থানগুলির একটি তালিকা প্রদান করে৷ ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন। ব্যবহারকারীকে অবশ্যই Google Workspace সংস্থার প্রশাসক হতে হবে। অনুরোধে, use_admin_access সেট করুন true

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.spaces
  • https://www.googleapis.com/auth/chat.admin.spaces.readonly

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

সেটআপস্পেস

rpc SetUpSpace( SetUpSpaceRequest ) returns ( Space )

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

যোগ করার জন্য মানব সদস্যদের নির্দিষ্ট করতে, উপযুক্ত membership.member.name দিয়ে সদস্যপদ যোগ করুন। একটি মানব ব্যবহারকারী যোগ করতে, users/{user} ব্যবহার করুন, যেখানে {user} ব্যবহারকারীর ইমেল ঠিকানা হতে পারে। একই ওয়ার্কস্পেস সংস্থার ব্যবহারকারীদের জন্য {user} জন এপিআই থেকে ব্যক্তির জন্য id বা ডিরেক্টরি API-এর ব্যবহারকারীর জন্য id হতে পারে। উদাহরণ স্বরূপ, user@example.com এর জন্য People API Person প্রোফাইল ID 123456789 হলে, আপনি users/user@example.com বা users/123456789membership.member.name সেট করে স্পেসে ব্যবহারকারীকে যোগ করতে পারেন।

যোগ করার জন্য Google গ্রুপগুলি নির্দিষ্ট করতে, উপযুক্ত membership.group_member.name এর সাথে সদস্যপদ যোগ করুন। একটি Google গোষ্ঠী যোগ করতে বা আমন্ত্রণ জানাতে, groups/{group} ব্যবহার করুন, যেখানে {group} হল Cloud Identity Groups API থেকে গোষ্ঠীর id ৷ উদাহরণস্বরূপ, আপনি গ্রুপ ইমেল group@example.com এর জন্য আইডি 123456789 পুনরুদ্ধার করতে ক্লাউড আইডেন্টিটি গ্রুপ লুকআপ API ব্যবহার করতে পারেন, তারপর আপনি groups/123456789membership.group_member.name সেট করে স্পেসে গ্রুপ যোগ করতে পারেন। গ্রুপ ইমেল সমর্থিত নয়, এবং Google গ্রুপগুলি শুধুমাত্র নামযুক্ত স্থানগুলিতে সদস্য হিসাবে যোগ করা যেতে পারে।

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

কলিং ব্যবহারকারী এবং অন্য মানব ব্যবহারকারীর মধ্যে একটি সরাসরি বার্তা (DM) তৈরি করতে, মানব ব্যবহারকারীর প্রতিনিধিত্ব করার জন্য ঠিক একটি সদস্যতা নির্দিষ্ট করুন। যদি একজন ব্যবহারকারী অন্যটিকে ব্লক করে, অনুরোধটি ব্যর্থ হয় এবং DM তৈরি হয় না।

কলিং ব্যবহারকারী এবং কলিং অ্যাপের মধ্যে একটি DM তৈরি করতে, Space.singleUserBotDm true সেট করুন এবং কোনো সদস্যতা নির্দিষ্ট করবেন না। আপনি শুধুমাত্র কলিং অ্যাপের সাথে একটি DM সেট আপ করতে এই পদ্ধতিটি ব্যবহার করতে পারেন৷ একটি স্পেসের সদস্য বা দুটি মানব ব্যবহারকারীর মধ্যে বিদ্যমান DM হিসাবে কলিং অ্যাপটিকে যোগ করতে, একটি স্পেসে একটি ব্যবহারকারী বা অ্যাপকে আমন্ত্রণ বা যোগ করুন দেখুন।

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

থ্রেডেড উত্তর সহ স্পেস সমর্থিত নয়। যদি আপনি একটি স্পেস সেট আপ করার সময় ALREADY_EXISTS ত্রুটি বার্তাটি পান তবে একটি ভিন্ন displayName চেষ্টা করুন। Google Workspace সংস্থার মধ্যে আগে থেকেই এই ডিসপ্লে নাম ব্যবহার করা হতে পারে।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.create

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

সদস্যপদ আপডেট করুন

rpc UpdateMembership( UpdateMembershipRequest ) returns ( Membership )

সদস্যপদ আপডেট করে। একটি উদাহরণের জন্য, একটি স্পেসে ব্যবহারকারীর সদস্যতা আপডেট করুন দেখুন।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.memberships

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

UpdateMessage

rpc UpdateMessage( UpdateMessageRequest ) returns ( Message )

একটি বার্তা আপডেট করে। patch এবং update পদ্ধতির মধ্যে পার্থক্য আছে। patch পদ্ধতি একটি patch অনুরোধ ব্যবহার করে যখন update পদ্ধতি একটি put অনুরোধ ব্যবহার করে। আমরা patch পদ্ধতি ব্যবহার করার পরামর্শ দিই। একটি উদাহরণের জন্য, একটি বার্তা আপডেট করুন দেখুন।

প্রমাণীকরণ প্রয়োজন. অ্যাপ প্রমাণীকরণ এবং ব্যবহারকারীর প্রমাণীকরণ সমর্থন করে। অ্যাপ প্রমাণীকরণ ব্যবহার করার সময়, অনুরোধ শুধুমাত্র কলিং চ্যাট অ্যাপ দ্বারা তৈরি বার্তা আপডেট করতে পারে।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

UpdateSpace

rpc UpdateSpace( UpdateSpaceRequest ) returns ( Space )

একটি স্থান আপডেট করে। একটি উদাহরণের জন্য, একটি স্থান আপডেট করুন দেখুন।

আপনি যদি displayName ফিল্ড আপডেট করেন এবং ত্রুটি বার্তাটি পান ALREADY_EXISTS , তাহলে একটি ভিন্ন ডিসপ্লে নাম ব্যবহার করে দেখুন।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.spaces
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.spaces

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

UpdateSpaceReadState

rpc UpdateSpaceReadState( UpdateSpaceReadStateRequest ) returns ( SpaceReadState )

একটি স্পেসের মধ্যে ব্যবহারকারীর পঠিত অবস্থা আপডেট করে, পঠিত এবং অপঠিত বার্তা সনাক্ত করতে ব্যবহৃত হয়। একটি উদাহরণের জন্য, একটি ব্যবহারকারীর স্থান পড়ার অবস্থা আপডেট করুন দেখুন।

ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

অনুমোদনের সুযোগ

নিম্নলিখিত OAuth সুযোগ প্রয়োজন:

  • https://www.googleapis.com/auth/chat.users.readstate

আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।

আনুষঙ্গিক উইজেট

এক বা একাধিক ইন্টারেক্টিভ উইজেট যা একটি বার্তার নীচে প্রদর্শিত হয়। বিশদ বিবরণের জন্য, একটি বার্তার নীচে ইন্টারেক্টিভ উইজেট যুক্ত করুন দেখুন।

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

ButtonList

বোতামগুলির একটি তালিকা।

অ্যাকশন রেসপন্স

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

ক্ষেত্র
type

ResponseType

শুধুমাত্র ইনপুট। চ্যাট অ্যাপের প্রতিক্রিয়ার ধরন।

url

string

শুধুমাত্র ইনপুট। ব্যবহারকারীদের প্রমাণীকরণ বা কনফিগার করার জন্য URL। (শুধুমাত্র REQUEST_CONFIG প্রতিক্রিয়া প্রকারের জন্য।)

dialog_action

DialogAction

শুধুমাত্র ইনপুট। একটি ডায়ালগের সাথে সম্পর্কিত একটি মিথস্ক্রিয়া ইভেন্টের প্রতিক্রিয়া। ResponseType.Dialog এর সাথে অবশ্যই থাকতে হবে।

updated_widget

UpdatedWidget

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

রেসপন্স টাইপ

চ্যাট অ্যাপের প্রতিক্রিয়ার ধরন।

Enums
TYPE_UNSPECIFIED ডিফল্ট প্রকার যা NEW_MESSAGE হিসাবে পরিচালনা করা হয়।
NEW_MESSAGE বিষয়ে একটি নতুন বার্তা হিসাবে পোস্ট করুন.
UPDATE_MESSAGE চ্যাট অ্যাপের মেসেজ আপডেট করুন। এটি শুধুমাত্র একটি CARD_CLICKED ইভেন্টে অনুমোদিত যেখানে বার্তা প্রেরকের ধরন BOT
UPDATE_USER_MESSAGE_CARDS ব্যবহারকারীর বার্তায় কার্ডগুলি আপডেট করুন৷ এটি শুধুমাত্র একটি মিলিত url সহ একটি MESSAGE ইভেন্টের প্রতিক্রিয়া হিসাবে বা একটি CARD_CLICKED ইভেন্টের প্রতিক্রিয়া হিসাবে অনুমোদিত যেখানে বার্তা প্রেরকের ধরনটি হল HUMAN ৷ টেক্সট উপেক্ষা করা হয়.
REQUEST_CONFIG ব্যক্তিগতভাবে ব্যবহারকারীকে অতিরিক্ত প্রমাণীকরণ বা কনফিগারেশনের জন্য জিজ্ঞাসা করুন।
DIALOG একটি ডায়ালগ উপস্থাপন করে।
UPDATE_WIDGET উইজেট পাঠ্য স্বয়ংসম্পূর্ণ বিকল্প ক্যোয়ারী।

নির্বাচন আইটেম

উইজেট স্বয়ংসম্পূর্ণ ফলাফলের তালিকা।

ক্ষেত্র
items[]

SelectionItem

SelectionItem অবজেক্টের একটি অ্যারে।

আপডেট করা উইজেট

আপডেট করা উইজেটের প্রতিক্রিয়া। একটি উইজেটের জন্য স্বয়ংসম্পূর্ণ বিকল্প প্রদান করতে ব্যবহৃত হয়।

ক্ষেত্র
widget

string

আপডেট করা উইজেটের আইডি। আইডিটি অবশ্যই সেই উইজেটের সাথে মিলবে যা আপডেটের অনুরোধটি ট্রিগার করেছে৷

ইউনিয়ন ক্ষেত্র updated_widget । ব্যবহারকারীর কর্মের প্রতিক্রিয়ায় উইজেটটি আপডেট করা হয়েছে। updated_widget নিম্নলিখিতগুলির মধ্যে একটি হতে পারে:
suggestions

SelectionItems

উইজেট স্বয়ংসম্পূর্ণ ফলাফলের তালিকা

অ্যাকশন স্ট্যাটাস

একটি ডায়ালগ আহ্বান বা জমা দেওয়ার অনুরোধের জন্য স্থিতি প্রতিনিধিত্ব করে৷

ক্ষেত্র
status_code

Code

স্ট্যাটাস কোড।

user_facing_message

string

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

টীকা

শুধুমাত্র আউটপুট। বার্তার প্লেইন-টেক্সট বডির সাথে যুক্ত টীকা। একটি পাঠ্য বার্তায় মৌলিক বিন্যাস যোগ করতে, পাঠ্য বার্তা বিন্যাস দেখুন।

উদাহরণ প্লেইন-টেক্সট মেসেজ বডি:

Hello @FooBot how are you!"

সংশ্লিষ্ট টীকা মেটাডেটা:

"annotations":[{
  "type":"USER_MENTION",
  "startIndex":6,
  "length":7,
  "userMention": {
    "user": {
      "name":"users/{user}",
      "displayName":"FooBot",
      "avatarUrl":"https://goo.gl/aeDtrS",
      "type":"BOT"
    },
    "type":"MENTION"
   }
}]
ক্ষেত্র
type

AnnotationType

এই টীকা টাইপ.

length

int32

প্লেইন-টেক্সট মেসেজ বডিতে সাবস্ট্রিং এর দৈর্ঘ্য এই টীকাটির সাথে মিলে যায়।

start_index

int32

এই টীকাটির সাথে সামঞ্জস্যপূর্ণ প্লেইন-টেক্সট মেসেজ বডিতে স্টার্ট ইনডেক্স (0-ভিত্তিক, অন্তর্ভুক্ত)।

ইউনিয়ন ফিল্ড metadata । টীকা সম্পর্কে অতিরিক্ত মেটাডেটা। metadata নিম্নলিখিতগুলির মধ্যে একটি হতে পারে:
user_mention

UserMentionMetadata

ব্যবহারকারীর উল্লেখের মেটাডেটা।

slash_command

SlashCommandMetadata

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

টীকা প্রকার

টীকা প্রকার।

Enums
ANNOTATION_TYPE_UNSPECIFIED enum-এর জন্য ডিফল্ট মান। ব্যবহার করবেন না।
USER_MENTION একজন ব্যবহারকারী উল্লেখ করা হয়েছে।
SLASH_COMMAND একটি স্ল্যাশ কমান্ড আহ্বান করা হয়।

সংযুক্ত জিআইএফ

একটি URL দ্বারা নির্দিষ্ট করা একটি GIF চিত্র৷

ক্ষেত্র
uri

string

শুধুমাত্র আউটপুট। URL যেটি GIF ছবি হোস্ট করে।

সংযুক্তি

Google চ্যাটে একটি সংযুক্তি।

ক্ষেত্র
name

string

সংযুক্তির সম্পদের নাম, spaces/{space}/messages/{message}/attachments/{attachment} ফর্মে।

content_name

string

শুধুমাত্র আউটপুট। বিষয়বস্তুর মূল ফাইলের নাম, সম্পূর্ণ পাথ নয়।

content_type

string

শুধুমাত্র আউটপুট। ফাইলের বিষয়বস্তুর প্রকার (MIME প্রকার)।

thumbnail_uri

string

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

download_uri

string

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

source

Source

শুধুমাত্র আউটপুট। সংযুক্তির উৎস।

ইউনিয়ন ফিল্ড data_ref । সংযুক্তির ডেটা রেফারেন্স। data_ref নিম্নলিখিতগুলির মধ্যে একটি হতে পারে:
attachment_data_ref

AttachmentDataRef

সংযুক্তি ডেটার একটি রেফারেন্স। সংযুক্তি ডেটা ডাউনলোড করতে মিডিয়া API এর সাথে এই ক্ষেত্রটি ব্যবহার করা হয়।

drive_data_ref

DriveDataRef

শুধুমাত্র আউটপুট। Google ড্রাইভ সংযুক্তির একটি রেফারেন্স। এই ক্ষেত্রটি Google Drive API-এর সাথে ব্যবহার করা হয়।

উৎস

সংযুক্তির উৎস।

Enums
SOURCE_UNSPECIFIED সংরক্ষিত
DRIVE_FILE ফাইলটি একটি গুগল ড্রাইভ ফাইল।
UPLOADED_CONTENT ফাইলটি চ্যাটে আপলোড করা হয়েছে।

সংযুক্তিDataRef

সংযুক্তি ডেটার একটি রেফারেন্স।

ক্ষেত্র
resource_name

string

সংযুক্তি ডেটার সংস্থানের নাম৷ সংযুক্তি ডেটা ডাউনলোড করতে মিডিয়া API এর সাথে এই ক্ষেত্রটি ব্যবহার করা হয়।

attachment_upload_token

string

একটি আপলোড করা সংযুক্তির একটি রেফারেন্স ধারণকারী অস্বচ্ছ টোকেন। ক্লায়েন্টদের দ্বারা একটি অস্বচ্ছ স্ট্রিং হিসাবে বিবেচিত হয় এবং সংযুক্তি সহ চ্যাট বার্তাগুলি তৈরি বা আপডেট করতে ব্যবহৃত হয়।

কার্ড উইথআইডি

একটি Google চ্যাট বার্তায় একটি কার্ড

শুধুমাত্র চ্যাট অ্যাপই কার্ড তৈরি করতে পারে। যদি আপনার চ্যাট অ্যাপ ব্যবহারকারী হিসাবে প্রমাণীকরণ করে , তাহলে বার্তাটিতে কার্ড থাকতে পারে না।

কার্ড নির্মাতার সাথে কার্ড ডিজাইন এবং পূর্বরূপ দেখুন।

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

ক্ষেত্র
card_id

string

বার্তাটিতে একাধিক কার্ড থাকলে প্রয়োজনীয়৷ একটি বার্তায় একটি কার্ডের জন্য একটি অনন্য শনাক্তকারী৷

card

Card

একটি কার্ড। সর্বাধিক আকার 32 KB.

ChatSpaceLinkData

চ্যাট স্পেস লিঙ্কের জন্য ডেটা।

ক্ষেত্র
space

string

লিঙ্ক করা চ্যাট স্পেস রিসোর্সের স্থান।

বিন্যাস: spaces/{space}

thread

string

লিঙ্ক করা চ্যাট স্পেস রিসোর্সের থ্রেড।

বিন্যাস: spaces/{space}/threads/{thread}

message

string

লিঙ্ক করা চ্যাট স্পেস রিসোর্সের বার্তা।

বিন্যাস: spaces/{space}/messages/{message}

CompleteImportSpaceRequest

একটি স্থানের জন্য আমদানি প্রক্রিয়া সম্পূর্ণ করার জন্য অনুরোধ বার্তা.

ক্ষেত্র
name

string

প্রয়োজন। ইম্পোর্ট মোড স্পেসের রিসোর্স নাম।

বিন্যাস: spaces/{space}

CompleteImportSpaceResponse

একটি স্থানের জন্য আমদানি প্রক্রিয়া সম্পূর্ণ করার জন্য প্রতিক্রিয়া বার্তা।

ক্ষেত্র
space

Space

আমদানি মোড স্থান.

প্রসঙ্গত অ্যাডঅনমার্কআপ

এই ধরনের কোন ক্ষেত্র আছে.

একটি প্রাসঙ্গিক অ্যাডঅনের বিষয়বস্তু নির্দিষ্ট করার জন্য ডেভেলপারদের জন্য মার্কআপ।

কার্ড

একটি কার্ড হল একটি UI উপাদান যাতে UI উইজেট যেমন পাঠ্য এবং চিত্র থাকতে পারে।

ক্ষেত্র
header

CardHeader

কার্ডের হেডার। একটি হেডারে সাধারণত একটি শিরোনাম এবং একটি চিত্র থাকে।

sections[]

Section

বিভাগ একটি লাইন বিভাজক দ্বারা পৃথক করা হয়.

card_actions[]

CardAction

এই কার্ডের কর্ম.

name

string

কার্ডের নাম।

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

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

Google Chat অ্যাপ সমর্থিত নয়।

ক্ষেত্র
action_label

string

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

on_click

OnClick

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

কার্ডহেডার

ক্ষেত্র
title

string

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

subtitle

string

কার্ড হেডারের সাবটাইটেল।

image_style

ImageStyle

ছবির ধরন (উদাহরণস্বরূপ, বর্গাকার সীমানা বা বৃত্তাকার সীমানা)।

image_url

string

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

ইমেজ স্টাইল

Enums
IMAGE_STYLE_UNSPECIFIED
IMAGE বর্গাকার সীমানা।
AVATAR বৃত্তাকার সীমানা।

ধারা

একটি বিভাগে উইজেটগুলির একটি সংগ্রহ রয়েছে যা তাদের নির্দিষ্ট করা ক্রমে রেন্ডার করা হয় (উল্লম্বভাবে)। সমস্ত প্ল্যাটফর্ম জুড়ে, কার্ডগুলির একটি সংকীর্ণ নির্দিষ্ট প্রস্থ থাকে, তাই বর্তমানে লেআউট বৈশিষ্ট্যগুলির কোন প্রয়োজন নেই (উদাহরণস্বরূপ, ফ্লোট)।

ক্ষেত্র
header

string

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

widgets[]

WidgetMarkup

একটি বিভাগে কমপক্ষে একটি উইজেট থাকতে হবে।

মেম্বারশিপ রিকোয়েস্ট তৈরি করুন

একটি সদস্যপদ তৈরি করার জন্য অনুরোধ বার্তা.

ক্ষেত্র
parent

string

প্রয়োজন। যে জায়গার জন্য সদস্যপদ তৈরি করতে হবে তার সংস্থানের নাম৷

বিন্যাস: স্পেস/{স্পেস}

membership

Membership

প্রয়োজন। সদস্যপদ তৈরির সম্পর্ক। memberType ফিল্ডে অবশ্যই user.name এবং user.type ক্ষেত্রগুলি জনবহুল সহ একজন ব্যবহারকারী থাকতে হবে৷ সার্ভার একটি সম্পদের নাম বরাদ্দ করবে এবং নির্দিষ্ট কিছু ওভাররাইট করবে। যখন একটি চ্যাট অ্যাপ একজন মানব ব্যবহারকারীর জন্য সদস্যতা সম্পর্ক তৈরি করে, তখন এটিকে অবশ্যই chat.memberships স্কোপ ব্যবহার করতে হবে, user.type HUMAN এ সেট করতে হবে এবং user.name ফরম্যাট users/{user} সহ সেট করতে হবে, যেখানে {user} ইমেল হতে পারে। ব্যবহারকারীর জন্য ঠিকানা। একই ওয়ার্কস্পেস সংস্থার ব্যবহারকারীদের জন্য {user} জন এপিআই থেকে ব্যক্তির id বা ডিরেক্টরি API-এর ব্যবহারকারীর id হতে পারে। উদাহরণ স্বরূপ, user@example.com এর জন্য People API Person প্রোফাইল ID 123456789 হলে, আপনি users/user@example.com বা users/123456789membership.member.name সেট করে স্পেসে ব্যবহারকারীকে যোগ করতে পারেন। যখন একটি চ্যাট অ্যাপ নিজের জন্য একটি সদস্যতা সম্পর্ক তৈরি করে, তখন এটি অবশ্যই chat.memberships.app স্কোপ ব্যবহার করতে হবে, user.type কে BOT এ সেট করতে হবে এবং user.name কে users/app সেট করতে হবে।

use_admin_access

bool

true হলে, পদ্ধতিটি ব্যবহারকারীর Google Workspace অ্যাডমিনিস্ট্রেটর বিশেষাধিকার ব্যবহার করে চলে।

কলিং ব্যবহারকারীকে অবশ্যই একজন Google Workspace অ্যাডমিনিস্ট্রেটর হতে হবে যেখানে চ্যাট এবং স্পেস কথোপকথন পরিচালনা করার সুবিধা রয়েছে

chat.admin.memberships OAuth 2.0 সুযোগ প্রয়োজন।

অ্যাডমিন অ্যাক্সেস ব্যবহার করে অ্যাডমিনিস্ট্রেটরের Google Workspace সংস্থার বাইরের ব্যবহারকারীদের জন্য অ্যাপ মেম্বারশিপ তৈরি করা বা মেম্বারশিপ তৈরি করা সমর্থিত নয়।

মেসেজ রিকোয়েস্ট তৈরি করুন

একটি বার্তা তৈরি করে।

ক্ষেত্র
parent

string

প্রয়োজন। একটি বার্তা তৈরি করা স্থানের সম্পদের নাম।

বিন্যাস: spaces/{space}

message

Message

প্রয়োজন। মেসেজ বডি।

thread_key
(deprecated)

string

ঐচ্ছিক। বাতিল করা হয়েছে: পরিবর্তে thread.thread_key ব্যবহার করুন। থ্রেড জন্য আইডি. 4000 অক্ষর পর্যন্ত সমর্থন করে। একটি থ্রেড শুরু করতে বা যোগ করতে, একটি বার্তা তৈরি করুন এবং একটি threadKey বা thread.name নির্দিষ্ট করুন। উদাহরণ ব্যবহারের জন্য, একটি বার্তা থ্রেডের শুরু বা উত্তর দেখুন।

request_id

string

ঐচ্ছিক। এই বার্তাটির জন্য একটি অনন্য অনুরোধ আইডি। একটি বিদ্যমান অনুরোধ আইডি নির্দিষ্ট করা একটি নতুন বার্তা তৈরি করার পরিবর্তে সেই আইডি দিয়ে তৈরি বার্তাটি ফেরত দেয়।

message_reply_option

MessageReplyOption

ঐচ্ছিক। একটি বার্তা একটি থ্রেড শুরু বা একটি উত্তর দেয় কিনা তা নির্দিষ্ট করে৷ শুধুমাত্র নামযুক্ত স্থানগুলিতে সমর্থিত৷

message_id

string

ঐচ্ছিক। একটি বার্তার জন্য একটি কাস্টম আইডি। চ্যাট অ্যাপগুলিকে মেসেজের রিসোর্স নামে (মেসেজ name ক্ষেত্রে উপস্থাপিত) সিস্টেম-অর্পিত আইডি সঞ্চয় করার প্রয়োজন ছাড়াই একটি বার্তা পেতে, আপডেট করতে বা মুছে দিতে দেয়।

এই ক্ষেত্রের মান নিম্নলিখিত প্রয়োজনীয়তা পূরণ করতে হবে:

  • client- দিয়ে শুরু হয়-। উদাহরণস্বরূপ, client-custom-name একটি বৈধ কাস্টম আইডি, কিন্তু custom-name নয়।
  • 63টি পর্যন্ত অক্ষর এবং শুধুমাত্র ছোট হাতের অক্ষর, সংখ্যা এবং হাইফেন রয়েছে৷
  • একটি স্থান মধ্যে অনন্য. একটি চ্যাট অ্যাপ বিভিন্ন বার্তার জন্য একই কাস্টম আইডি ব্যবহার করতে পারে না।

বিস্তারিত জানার জন্য, একটি বার্তার নাম দেখুন।

MessageReplyOption

কিভাবে একটি বার্তার উত্তর দিতে হবে তা নির্দিষ্ট করে। ভবিষ্যতে আরও রাজ্য যুক্ত হতে পারে।

Enums
MESSAGE_REPLY_OPTION_UNSPECIFIED ডিফল্ট একটি নতুন থ্রেড শুরু হয়. এই বিকল্পটি ব্যবহার করলে যেকোন thread ID বা thread_key অন্তর্ভুক্ত করা হয় না।
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD thread ID বা thread_key দ্বারা নির্দিষ্ট থ্রেডের উত্তর হিসাবে বার্তাটি তৈরি করে। এটি ব্যর্থ হলে, বার্তাটি পরিবর্তে একটি নতুন থ্রেড শুরু করে।
REPLY_MESSAGE_OR_FAIL thread ID বা thread_key দ্বারা নির্দিষ্ট থ্রেডের উত্তর হিসাবে বার্তাটি তৈরি করে। যদি একটি নতুন thread_key ব্যবহার করা হয়, একটি নতুন থ্রেড তৈরি করা হয়। বার্তা তৈরি ব্যর্থ হলে, পরিবর্তে একটি NOT_FOUND ত্রুটি ফেরত দেওয়া হয়।

প্রতিক্রিয়ার অনুরোধ তৈরি করুন

একটি বার্তার প্রতিক্রিয়া তৈরি করে।

ক্ষেত্র
parent

string

প্রয়োজন। বার্তা যেখানে প্রতিক্রিয়া তৈরি হয়।

বিন্যাস: spaces/{space}/messages/{message}

reaction

Reaction

প্রয়োজন। তৈরির প্রতিক্রিয়া।

SpaceRequest তৈরি করুন

একটি নামযুক্ত স্থান তৈরি করার জন্য একটি অনুরোধ৷

ক্ষেত্র
space

Space

প্রয়োজন। displayName এবং spaceType ক্ষেত্রগুলি অবশ্যই পপুলেট করা উচিত। শুধুমাত্র SpaceType.SPACE সমর্থিত।

আপনি যদি ALREADY_EXISTS ত্রুটি বার্তাটি পান তবে একটি ভিন্ন displayName চেষ্টা করুন। Google Workspace সংস্থার মধ্যে আগে থেকেই এই ডিসপ্লে নাম ব্যবহার করা হতে পারে।

স্পেস name সার্ভারে বরাদ্দ করা হয়েছে তাই এই ক্ষেত্রে নির্দিষ্ট করা কিছু উপেক্ষা করা হবে।

request_id

string

ঐচ্ছিক। এই অনুরোধের জন্য একটি অনন্য শনাক্তকারী। একটি র্যান্ডম UUID সুপারিশ করা হয়. একটি বিদ্যমান অনুরোধ আইডি নির্দিষ্ট করা একটি নতুন স্থান তৈরি করার পরিবর্তে সেই আইডি দিয়ে তৈরি স্থান ফেরত দেয়। একটি ভিন্ন প্রমাণীকৃত ব্যবহারকারীর সাথে একই চ্যাট অ্যাপ থেকে একটি বিদ্যমান অনুরোধ আইডি নির্দিষ্ট করা একটি ত্রুটি ফেরত দেয়।

কাস্টম ইমোজি

একটি কাস্টম ইমোজি প্রতিনিধিত্ব করে।

ক্ষেত্র
uid

string

শুধুমাত্র আউটপুট। কাস্টম ইমোজি সম্পদের জন্য অনন্য কী।

মেম্বারশিপ রিকোয়েস্ট মুছুন

একটি স্থান একটি সদস্যতা মুছে ফেলার অনুরোধ.

ক্ষেত্র
name

string

প্রয়োজন। সদস্যপদ মুছে ফেলার জন্য সম্পদের নাম. চ্যাট অ্যাপগুলি মানুষের ব্যবহারকারীদের বা তাদের নিজস্ব সদস্যতা মুছে ফেলতে পারে। চ্যাট অ্যাপ অন্য অ্যাপের মেম্বারশিপ মুছে ফেলতে পারে না।

একটি মানব সদস্যপদ মুছে ফেলার সময়, chat.memberships স্কোপ এবং spaces/{space}/members/{member} ফর্ম্যাট প্রয়োজন৷ আপনি {member} এর উপনাম হিসেবে ইমেলটি ব্যবহার করতে পারেন। উদাহরণস্বরূপ, spaces/{space}/members/example@gmail.com যেখানে example@gmail.com হল Google Chat ব্যবহারকারীর ইমেল।

একটি অ্যাপ সদস্যতা মুছে ফেলার সময়, chat.memberships.app স্কোপ এবং spaces/{space}/members/app ফর্ম্যাট প্রয়োজন।

বিন্যাস: spaces/{space}/members/{member} বা spaces/{space}/members/app

use_admin_access

bool

true হলে, পদ্ধতিটি ব্যবহারকারীর Google Workspace অ্যাডমিনিস্ট্রেটর বিশেষাধিকার ব্যবহার করে চলে।

কলিং ব্যবহারকারীকে অবশ্যই একজন Google Workspace অ্যাডমিনিস্ট্রেটর হতে হবে যেখানে চ্যাট এবং স্পেস কথোপকথন পরিচালনা করার সুবিধা রয়েছে

chat.admin.memberships OAuth 2.0 সুযোগ প্রয়োজন।

অ্যাডমিন অ্যাক্সেস ব্যবহার করে একটি স্পেসে অ্যাপ সদস্যতা মুছে ফেলা সমর্থিত নয়।

DeleteMessageRequest

একটি বার্তা মুছে ফেলার জন্য অনুরোধ.

ক্ষেত্র
name

string

প্রয়োজন। বার্তার সম্পদের নাম।

বিন্যাস: spaces/{space}/messages/{message}

আপনি যদি আপনার বার্তার জন্য একটি কাস্টম আইডি সেট করে থাকেন, তাহলে আপনি {message} এর জন্য clientAssignedMessageId ফিল্ড থেকে মানটি ব্যবহার করতে পারেন। বিস্তারিত জানার জন্য, একটি বার্তার নাম দেখুন।

force

bool

true হলে, একটি বার্তা মুছে দিলে তার থ্রেড করা উত্তরগুলিও মুছে যায়। false হলে, যদি কোনো বার্তার থ্রেডেড উত্তর থাকে, মোছা ব্যর্থ হয়।

ব্যবহারকারী হিসাবে প্রমাণীকরণ করার সময় শুধুমাত্র প্রযোজ্য। চ্যাট অ্যাপ হিসেবে প্রমাণীকরণ করার সময় কোনো প্রভাব নেই।

ReactionRequest মুছে দিন

একটি বার্তার প্রতিক্রিয়া মুছে দেয়।

ক্ষেত্র
name

string

প্রয়োজন। মুছে ফেলার প্রতিক্রিয়ার নাম।

বিন্যাস: spaces/{space}/messages/{message}/reactions/{reaction}

DeleteSpaceRequest

একটি স্থান মুছে ফেলার জন্য অনুরোধ.

ক্ষেত্র
name

string

প্রয়োজন। রিসোর্সের নাম মুছে ফেলতে হবে।

বিন্যাস: spaces/{space}

use_admin_access

bool

true হলে, পদ্ধতিটি ব্যবহারকারীর Google Workspace অ্যাডমিনিস্ট্রেটর বিশেষাধিকার ব্যবহার করে চলে।

কলিং ব্যবহারকারীকে অবশ্যই একজন Google Workspace অ্যাডমিনিস্ট্রেটর হতে হবে যেখানে চ্যাট এবং স্পেস কথোপকথন পরিচালনা করার সুবিধা রয়েছে

chat.admin.delete OAuth 2.0 সুযোগ প্রয়োজন।

মেটাডেটা মুছে ফেলা

একটি মুছে ফেলা বার্তা সম্পর্কে তথ্য. delete_time সেট করা হলে একটি বার্তা মুছে ফেলা হয়।

ক্ষেত্র
deletion_type

DeletionType

কে বার্তাটি মুছে দিয়েছে তা নির্দেশ করে।

মুছে ফেলার প্রকার

মেসেজটি কে ডিলিট করেছে এবং কিভাবে ডিলিট করা হয়েছে।

Enums
DELETION_TYPE_UNSPECIFIED এই মান অব্যবহৃত.
CREATOR ব্যবহারকারী তাদের নিজস্ব বার্তা মুছে দিয়েছেন.
SPACE_OWNER স্থানের মালিক বার্তাটি মুছে দিয়েছেন।
ADMIN একটি গুগল ওয়ার্কস্পেস অ্যাডমিন বার্তাটি মুছে ফেলেছে।
APP_MESSAGE_EXPIRY একটি চ্যাট অ্যাপ্লিকেশনটির মেয়াদ শেষ হয়ে গেলে তার নিজস্ব বার্তাটি মুছে ফেলা হয়েছে।
CREATOR_VIA_APP একটি চ্যাট অ্যাপ্লিকেশন ব্যবহারকারীর পক্ষে বার্তাটি মুছে ফেলেছে।
SPACE_OWNER_VIA_APP একটি চ্যাট অ্যাপ স্পেস মালিকের পক্ষে বার্তাটি মুছে ফেলেছে।

ডায়ালগ

ডায়ালগের কার্ড বডিটির চারপাশে মোড়ক।

ক্ষেত্র
body

Card

শুধুমাত্র ইনপুট। ডায়ালগের দেহ, যা একটি মডেল হিসাবে রেন্ডার করা হয়। গুগল চ্যাট অ্যাপ্লিকেশনগুলি নিম্নলিখিত কার্ড সত্তাগুলিকে সমর্থন করে না: DateTimePicker , OnChangeAction

কথোপকথন

একটি ডায়ালগ এবং অনুরোধ স্থিতি কোড রয়েছে।

ক্ষেত্র
action_status

ActionStatus

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

ইউনিয়ন ফিল্ড action । কর্ম সঞ্চালন. action নিম্নলিখিতগুলির মধ্যে একটি হতে পারে:
dialog

Dialog

শুধুমাত্র ইনপুট। অনুরোধের জন্য ডায়ালগ

ড্রাইভেটেটারেফ

একটি ড্রাইভ সংযুক্তির ডেটা একটি রেফারেন্স।

ক্ষেত্র
drive_file_id

string

ড্রাইভ ফাইলের জন্য আইডি। ড্রাইভ এপিআই দিয়ে ব্যবহার করুন।

Drivelinkdata

গুগল ড্রাইভ লিঙ্কগুলির জন্য ডেটা।

ক্ষেত্র
drive_data_ref

DriveDataRef

একটি ড্রাইভেটারেফ যা একটি গুগল ড্রাইভ ফাইলকে উল্লেখ করে।

mime_type

string

লিঙ্কযুক্ত গুগল ড্রাইভ রিসোর্সের মাইম টাইপ।

ইমোজি

একটি ইমোজি যা কোনও বার্তার প্রতিক্রিয়া হিসাবে ব্যবহৃত হয়।

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

string

একটি বেসিক ইমোজি একটি ইউনিকোড স্ট্রিং দ্বারা প্রতিনিধিত্ব করা।

custom_emoji

CustomEmoji

শুধুমাত্র আউটপুট। একটি কাস্টম ইমোজি।

ইমোজিরিঅ্যাকশনসুমারি

একটি নির্দিষ্ট ইমোজি দিয়ে একটি বার্তায় প্রতিক্রিয়া জানানো লোকের সংখ্যা।

ক্ষেত্র
emoji

Emoji

ইমোজি প্রতিক্রিয়াগুলির সাথে যুক্ত।

reaction_count

int32

সম্পর্কিত ইমোজি ব্যবহার করে মোট প্রতিক্রিয়ার সংখ্যা।

FindDirectmessagerequest

ব্যবহারকারী সংস্থার উপর ভিত্তি করে সরাসরি বার্তা স্থান পাওয়ার জন্য একটি অনুরোধ।

ক্ষেত্র
name

string

প্রয়োজন। সাথে সরাসরি বার্তা খুঁজে পেতে ব্যবহারকারীর রিসোর্স নাম।

ফর্ম্যাট: users/{user} , যেখানে {user} হয় পিপল এপিআই থেকে প্রাপ্ত ব্যক্তির id , বা ডিরেক্টরি এপিআইতে ব্যবহারকারীর জন্য id । উদাহরণস্বরূপ, যদি পিপল এপিআই প্রোফাইল আইডি 123456789 হয় তবে আপনি name হিসাবে users/123456789 ব্যবহার করে সেই ব্যক্তির সাথে সরাসরি বার্তা পেতে পারেন। যখন ব্যবহারকারী হিসাবে প্রমাণীকরণ করা হয় , আপনি ইমেলটি {user} এর জন্য একটি ওরফে হিসাবে ব্যবহার করতে পারেন} উদাহরণস্বরূপ, users/example@gmail.com যেখানে example@gmail.com গুগল চ্যাট ব্যবহারকারীর ইমেল।

Getattachmentrequest

একটি সংযুক্তি পেতে অনুরোধ।

ক্ষেত্র
name

string

প্রয়োজন। সংযুক্তির রিসোর্স নাম, ফর্ম spaces/{space}/messages/{message}/attachments/{attachment}

GetMebershiprequest

একটি স্থানের সদস্যপদ পেতে অনুরোধ।

ক্ষেত্র
name

string

প্রয়োজন। পুনরুদ্ধার করতে সদস্যতার রিসোর্স নাম।

ব্যবহারকারী প্রমাণীকরণ ব্যবহার করে অ্যাপ্লিকেশনটির নিজস্ব সদস্যপদ পেতে, আপনি বিকল্পভাবে spaces/{space}/members/app ব্যবহার করতে পারেন।

ফর্ম্যাট: spaces/{space}/members/{member} বা spaces/{space}/members/app

যখন ব্যবহারকারী হিসাবে প্রমাণিত হয় , আপনি ব্যবহারকারীর ইমেলটি {member} এর জন্য একটি ওরফে হিসাবে ব্যবহার করতে পারেন} উদাহরণস্বরূপ, spaces/{space}/members/example@gmail.com /এক্সপ্ল্যামেল@gmail.com যেখানে example@gmail.com গুগল চ্যাট ব্যবহারকারীর ইমেল।

use_admin_access

bool

true যখন, পদ্ধতিটি ব্যবহারকারীর গুগল ওয়ার্কস্পেস প্রশাসকের সুবিধাগুলি ব্যবহার করে চলে।

কলিং ব্যবহারকারীকে অবশ্যই পরিচালনা চ্যাট এবং স্পেস কথোপকথনের বিশেষাধিকার সহ একটি গুগল ওয়ার্কস্পেস প্রশাসক হতে হবে।

chat.admin.memberships chat.admin.memberships.readonly

অ্যাডমিন অ্যাক্সেস ব্যবহার করার সময় কোনও স্পেসে অ্যাপের সদস্যতা পাওয়া সমর্থিত নয়।

GetMessagerequest

একটি বার্তা পেতে অনুরোধ।

ক্ষেত্র
name

string

প্রয়োজন। বার্তার রিসোর্স নাম।

ফর্ম্যাট: spaces/{space}/messages/{message}

আপনি যদি আপনার বার্তার জন্য একটি কাস্টম আইডি সেট করে থাকেন তবে আপনি {message} এর জন্য clientAssignedMessageId ক্ষেত্র থেকে মানটি ব্যবহার করতে পারেন} বিশদ জন্য, একটি বার্তা নাম দেখুন।

Getspaceeventrequest

একটি স্পেস ইভেন্ট পাওয়ার জন্য বার্তা অনুরোধ করুন।

ক্ষেত্র
name

string

প্রয়োজন। স্পেস ইভেন্টের রিসোর্স নাম।

ফর্ম্যাট: spaces/{space}/spaceEvents/{spaceEvent}

Getpacereadstateerequest

Getspacereadstate এপিআই জন্য অনুরোধ বার্তা।

ক্ষেত্র
name

string

প্রয়োজন। স্থানের রিসোর্স নাম পুনরুদ্ধার করতে রাজ্যের পড়ুন।

কেবল কলিং ব্যবহারকারীর জন্য পড়ার অবস্থা পেতে সমর্থন করে।

কলিং ব্যবহারকারীকে উল্লেখ করতে, নিম্নলিখিতগুলির একটি সেট করুন:

  • me ওরফে। উদাহরণস্বরূপ, users/me/spaces/{space}/spaceReadState

  • তাদের কর্মক্ষেত্রের ইমেল ঠিকানা। উদাহরণস্বরূপ, users/user@example.com/spaces/{space}/spaceReadState }/spacereadstate।

  • তাদের ব্যবহারকারী আইডি। উদাহরণস্বরূপ, users/123456789/spaces/{space}/spaceReadState

ফর্ম্যাট: ব্যবহারকারী/{ব্যবহারকারী}/স্পেস/{স্পেস}/স্পেসেরেডস্টেট

Getspacerequest

একটি একক স্থান ফেরত দেওয়ার অনুরোধ।

ক্ষেত্র
name

string

প্রয়োজন। স্পেসের রিসোর্স নাম, ফর্ম spaces/{space}

ফর্ম্যাট: spaces/{space}

use_admin_access

bool

true যখন, পদ্ধতিটি ব্যবহারকারীর গুগল ওয়ার্কস্পেস প্রশাসকের সুবিধাগুলি ব্যবহার করে চলে।

কলিং ব্যবহারকারীকে অবশ্যই পরিচালনা চ্যাট এবং স্পেস কথোপকথনের বিশেষাধিকার সহ একটি গুগল ওয়ার্কস্পেস প্রশাসক হতে হবে।

chat.admin.spaces বা chat.admin.spaces.readonly

Getthreadreadstateerequest

Getthreadreadstaterequest API এর জন্য অনুরোধ বার্তা।

ক্ষেত্র
name

string

প্রয়োজন। থ্রেডের রিসোর্স নাম পুনরুদ্ধার করতে রাজ্যের পড়ুন।

কেবল কলিং ব্যবহারকারীর জন্য পড়ার অবস্থা পেতে সমর্থন করে।

কলিং ব্যবহারকারীকে উল্লেখ করতে, নিম্নলিখিতগুলির একটি সেট করুন:

  • me ওরফে। উদাহরণস্বরূপ, users/me/spaces/{space}/threads/{thread}/threadReadState

  • তাদের কর্মক্ষেত্রের ইমেল ঠিকানা। উদাহরণস্বরূপ, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState @

  • তাদের ব্যবহারকারী আইডি। উদাহরণস্বরূপ, users/123456789/spaces/{space}/threads/{thread}/threadReadState

ফর্ম্যাট: ব্যবহারকারী/{ব্যবহারকারী}/স্পেস/{স্পেস}/থ্রেড/{থ্রেড}/থ্রেডরেডস্টেট

গ্রুপ

গুগল চ্যাটে একটি গুগল গ্রুপ।

ক্ষেত্র
name

string

একটি গুগল গ্রুপের জন্য রিসোর্স নাম।

ক্লাউড আইডেন্টিটি গ্রুপ এপিআই -তে একটি গোষ্ঠীর প্রতিনিধিত্ব করে।

ফর্ম্যাট: গোষ্ঠী/{গ্রুপ}

ইতিহাস

বার্তা এবং স্পেসের জন্য ইতিহাসের অবস্থা। সৃষ্টির পরে কতক্ষণ বার্তা এবং কথোপকথনের থ্রেডগুলি রাখা হয় তা নির্দিষ্ট করে।

Enums
HISTORY_STATE_UNSPECIFIED ডিফল্ট মান। ব্যবহার করবেন না।
HISTORY_OFF ইতিহাস বন্ধ। বার্তা এবং থ্রেড 24 ঘন্টা রাখা হয়
HISTORY_ON ইতিহাস চালু। সংস্থার ভল্ট রিটেনশন বিধিগুলি কত দীর্ঘ বার্তা এবং থ্রেড রাখা হয় তার জন্য নির্দিষ্ট করে।

তালিকাবদ্ধ

সদস্যপদের তালিকাভুক্ত করার জন্য বার্তা অনুরোধ করুন।

ক্ষেত্র
parent

string

প্রয়োজন। সদস্যতার তালিকা আনতে যে জায়গার জন্য সেই জায়গার রিসোর্স নাম।

ফর্ম্যাট: স্পেস/{স্পেস}

page_size

int32

ঐচ্ছিক। প্রত্যাবর্তনের সর্বাধিক সংখ্যক সদস্যপদ। পরিষেবাটি এই মানের চেয়ে কম ফিরে আসতে পারে।

যদি অনির্ধারিত হয় তবে সর্বাধিক 100 সদস্যপদ ফিরে আসে।

সর্বাধিক মান 1000 you আপনি যদি 1000 এরও বেশি মান ব্যবহার করেন তবে এটি স্বয়ংক্রিয়ভাবে 1000 এ পরিবর্তিত হয়েছে।

নেতিবাচক মানগুলি একটি INVALID_ARGUMENT ত্রুটি ফিরিয়ে দেয়।

page_token

string

ঐচ্ছিক। একটি পৃষ্ঠা টোকেন, সদস্যদের তালিকাভুক্ত করার জন্য পূর্ববর্তী কল থেকে প্রাপ্ত। পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে এই প্যারামিটারটি সরবরাহ করুন।

প্যাগিনেট করার সময়, প্রদত্ত অন্যান্য সমস্ত পরামিতিগুলি কলটির সাথে মেলে যা পৃষ্ঠা টোকেন সরবরাহ করে। অন্যান্য পরামিতিগুলিতে বিভিন্ন মান পাস করার ফলে অপ্রত্যাশিত ফলাফল হতে পারে।

filter

string

ঐচ্ছিক। একটি ক্যোয়ারী ফিল্টার।

আপনি কোনও সদস্যের ভূমিকা ( role ) এবং টাইপ ( member.type ) দ্বারা সদস্যতা ফিল্টার করতে পারেন।

ভূমিকা দ্বারা ফিল্টার করার জন্য, ROLE_MEMBER বা ROLE_MANAGER role নির্ধারণ করুন।

প্রকারের মাধ্যমে ফিল্টার করতে, member.type সেট করুন um HUMAN বা BOT টাইপ করুন। বিকাশকারী পূর্বরূপ: আপনি != অপারেটর ব্যবহার করে member.type . টাইপের জন্য ফিল্টারও করতে পারেন।

উভয় ভূমিকা এবং টাইপ দ্বারা ফিল্টার করতে, AND অপারেটর ব্যবহার করুন। ভূমিকা বা টাইপ করে ফিল্টার করতে, OR অপারেটরটি ব্যবহার করুন।

হয় member.type = "HUMAN" বা member.type != "BOT" যখন use_admin_access সত্যে সেট করা থাকে তখন প্রয়োজন হয়। অন্যান্য সদস্য টাইপ ফিল্টারগুলি প্রত্যাখ্যান করা হবে।

উদাহরণস্বরূপ, নিম্নলিখিত প্রশ্নগুলি বৈধ:

role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
member.type = "HUMAN" AND role = "ROLE_MANAGER"

member.type != "BOT"

নিম্নলিখিত প্রশ্নগুলি অবৈধ:

member.type = "HUMAN" AND member.type = "BOT"
role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"

অবৈধ প্রশ্নগুলি একটি INVALID_ARGUMENT ত্রুটি সহ সার্ভার দ্বারা প্রত্যাখ্যান করা হয়।

show_groups

bool

ঐচ্ছিক। true যখন, অন্যান্য ধরণের সদস্যপদ ছাড়াও Google Group সাথে যুক্ত সদস্যপদও প্রদান করে। যদি কোনও filter সেট করা থাকে তবে Google Group সদস্যপদগুলি যা ফিল্টার মানদণ্ডের সাথে মেলে না।

show_invited

bool

ঐচ্ছিক। true যখন, অন্যান্য ধরণের সদস্যপদ ছাড়াও invited সদস্যদের সাথে যুক্ত সদস্যপদও প্রদান করে। যদি কোনও ফিল্টার সেট করা থাকে তবে ফিল্টার মানদণ্ডের সাথে মেলে না invited সদস্যপদগুলি ফেরত দেওয়া হয় না।

বর্তমানে ব্যবহারকারীর প্রমাণীকরণ প্রয়োজন।

use_admin_access

bool

true যখন, পদ্ধতিটি ব্যবহারকারীর গুগল ওয়ার্কস্পেস প্রশাসকের সুবিধাগুলি ব্যবহার করে চলে।

কলিং ব্যবহারকারীকে অবশ্যই পরিচালনা চ্যাট এবং স্পেস কথোপকথনের বিশেষাধিকার সহ একটি গুগল ওয়ার্কস্পেস প্রশাসক হতে হবে।

হয় chat.admin.memberships.readonly chat.admin.memberships

অ্যাডমিন অ্যাক্সেস ব্যবহার করার সময় কোনও স্পেসে অ্যাপ্লিকেশন সদস্যদের তালিকাভুক্ত করা সমর্থিত নয়।

তালিকাভুক্ত

স্থানের সদস্যতার তালিকার প্রতিক্রিয়া।

ক্ষেত্র
memberships[]

Membership

আন্ডার্ডার্ড তালিকা। অনুরোধ করা (বা প্রথম) পৃষ্ঠায় সদস্যতার তালিকা।

next_page_token

string

এমন একটি টোকেন যা আপনি ফলাফলের পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে pageToken হিসাবে প্রেরণ করতে পারেন। যদি খালি হয় তবে পরবর্তী কোনও পৃষ্ঠা নেই।

তালিকামেসেজ রিকোয়েস্ট

নির্দিষ্ট স্থানে বার্তাগুলি তালিকাভুক্ত করে, যে ব্যবহারকারী একজন সদস্য।

ক্ষেত্র
parent

string

প্রয়োজন। থেকে বার্তাগুলি তালিকাভুক্ত করার জন্য স্থানের সংস্থান নাম।

ফর্ম্যাট: spaces/{space}

page_size

int32

সর্বাধিক বার্তা ফিরে এসেছে। পরিষেবাটি এই মানের চেয়ে কম বার্তা ফিরিয়ে দিতে পারে।

যদি অনির্ধারিত হয় তবে সর্বাধিক 25 এ ফিরে আসে।

সর্বাধিক মান 1000 you আপনি যদি 1000 এরও বেশি মান ব্যবহার করেন তবে এটি স্বয়ংক্রিয়ভাবে 1000 এ পরিবর্তিত হয়েছে।

নেতিবাচক মানগুলি একটি INVALID_ARGUMENT ত্রুটি ফিরিয়ে দেয়।

page_token

string

Al চ্ছিক, যদি পূর্ববর্তী ক্যোয়ারী থেকে পুনরায় শুরু হয়।

পূর্ববর্তী তালিকা বার্তা কল থেকে একটি পৃষ্ঠা টোকেন পেয়েছে। পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে এই প্যারামিটারটি সরবরাহ করুন।

প্যাগিনেট করার সময়, প্রদত্ত অন্যান্য সমস্ত পরামিতিগুলি কলটির সাথে মেলে যা পৃষ্ঠা টোকেন সরবরাহ করে। অন্যান্য পরামিতিগুলিতে বিভিন্ন মান পাস করার ফলে অপ্রত্যাশিত ফলাফল হতে পারে।

filter

string

একটি ক্যোয়ারী ফিল্টার।

আপনি তারিখ ( create_time ) এবং থ্রেড ( thread.name ) দ্বারা বার্তাগুলি ফিল্টার করতে পারেন।

বার্তাগুলি তৈরি হওয়ার তারিখে ফিল্টার করার জন্য, আরএফসি -3339 ফর্ম্যাট এবং ডাবল উদ্ধৃতি চিহ্নগুলিতে টাইমস্ট্যাম্প সহ create_time নির্দিষ্ট করুন। উদাহরণস্বরূপ, "2023-04-21T11:30:00-04:00" । টাইমস্ট্যাম্পের পরে তৈরি হওয়া বার্তাগুলি তালিকাভুক্ত করতে আপনি অপারেটর > বা অপারেটরের চেয়ে কম ব্যবহার করতে পারেন < টাইমস্ট্যাম্পের আগে তৈরি হওয়া বার্তাগুলি তালিকাভুক্ত করতে। একটি সময়ের ব্যবধানের মধ্যে বার্তাগুলি ফিল্টার করতে, দুটি টাইমস্ট্যাম্পের মধ্যে AND অপারেটরটি ব্যবহার করুন।

থ্রেড দ্বারা ফিল্টার করতে, thread.name নির্দিষ্ট করুন, spaces/{space}/threads/{thread} আপনি প্রতি ক্যোয়ারিতে কেবল একটি thread.name নির্দিষ্ট করতে পারেন।

থ্রেড এবং তারিখ উভয় দ্বারা ফিল্টার করতে, আপনার ক্যোয়ারিতে AND অপারেটরটি ব্যবহার করুন।

উদাহরণস্বরূপ, নিম্নলিখিত প্রশ্নগুলি বৈধ:

create_time > "2012-04-21T11:30:00-04:00"

create_time > "2012-04-21T11:30:00-04:00" AND
  thread.name = spaces/AAAAAAAAAAA/threads/123

create_time > "2012-04-21T11:30:00+00:00" AND

create_time < "2013-01-01T00:00:00+00:00" AND
  thread.name = spaces/AAAAAAAAAAA/threads/123

thread.name = spaces/AAAAAAAAAAA/threads/123

অবৈধ প্রশ্নগুলি একটি INVALID_ARGUMENT ত্রুটি সহ সার্ভার দ্বারা প্রত্যাখ্যান করা হয়।

order_by

string

Al চ্ছিক, যদি পূর্ববর্তী ক্যোয়ারী থেকে পুনরায় শুরু হয়।

বার্তাগুলির তালিকা কীভাবে অর্ডার করা হয়। অর্ডারিং অপারেশন দ্বারা অর্ডার করার জন্য একটি মান নির্দিষ্ট করুন। বৈধ অর্ডারিং অপারেশন মানগুলি নিম্নরূপ:

  • আরোহণের জন্য ASC

  • অবতরণের জন্য DESC

ডিফল্ট ক্রমটি হ'ল create_time ASC

show_deleted

bool

মুছে ফেলা বার্তাগুলি অন্তর্ভুক্ত করা উচিত কিনা। মুছে ফেলা বার্তাগুলি তাদের মুছে ফেলা সম্পর্কে মুছে ফেলা সময় এবং মেটাডেটা অন্তর্ভুক্ত করে তবে বার্তার সামগ্রী অনুপলব্ধ।

ListMessages রেসপন্স

তালিকা বার্তাগুলির জন্য প্রতিক্রিয়া বার্তা।

ক্ষেত্র
messages[]

Message

বার্তা তালিকা।

next_page_token

string

ফলাফলের পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে আপনি pageToken হিসাবে একটি টোকেন পাঠাতে পারেন। যদি খালি হয় তবে পরবর্তী কোনও পৃষ্ঠা নেই।

ListereactionsRequest

একটি বার্তায় প্রতিক্রিয়া তালিকাভুক্ত করে।

ক্ষেত্র
parent

string

প্রয়োজন। বার্তাটি ব্যবহারকারীরা প্রতিক্রিয়া জানিয়েছেন।

ফর্ম্যাট: spaces/{space}/messages/{message}

page_size

int32

ঐচ্ছিক। সর্বাধিক প্রতিক্রিয়া ফিরে এসেছে। পরিষেবাটি এই মানের চেয়ে কম প্রতিক্রিয়া ফিরিয়ে দিতে পারে। যদি অনির্ধারিত হয় তবে ডিফল্ট মান 25 হয়। সর্বোচ্চ মান 200; 200 এর উপরে মানগুলি 200 এ পরিবর্তন করা হয়েছে।

page_token

string

ঐচ্ছিক। (যদি পূর্ববর্তী প্রশ্ন থেকে আবার শুরু হয়))

পূর্ববর্তী তালিকার প্রতিক্রিয়া কল থেকে প্রাপ্ত একটি পৃষ্ঠা টোকেন। পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে এটি সরবরাহ করুন।

প্যাগিনেট করার সময়, ফিল্টার মানটি কলটির সাথে মেলে যা পৃষ্ঠাটি টোকেন সরবরাহ করে। একটি পৃথক মান পাস করা অপ্রত্যাশিত ফলাফল হতে পারে।

filter

string

ঐচ্ছিক। একটি ক্যোয়ারী ফিল্টার।

আপনি ইমোজি ( emoji.unicode বা emoji.custom_emoji.uid ) এবং ব্যবহারকারী ( user.name ) দ্বারা প্রতিক্রিয়াগুলি ফিল্টার করতে পারেন।

একাধিক ইমোজি বা ব্যবহারকারীদের জন্য প্রতিক্রিয়াগুলি ফিল্টার করার জন্য, OR অপারেটরের সাথে অনুরূপ ক্ষেত্রগুলিতে যোগদান করুন, যেমন emoji.unicode = "🙂" OR emoji.unicode = "👍" এবং user.name = "users/AAAAAA" OR user.name = "users/BBBBBB"

ইমোজি এবং ব্যবহারকারীর দ্বারা প্রতিক্রিয়াগুলি ফিল্টার করতে, emoji.unicode = "🙂" AND user.name = "users/AAAAAA" এর মতো AND অপারেটরটি ব্যবহার করুন।

যদি আপনার ক্যোয়ারী উভয় AND এবং OR উভয়ই ব্যবহার করে তবে তাদের প্রথম বন্ধনীর সাথে গোষ্ঠীভুক্ত করুন।

উদাহরণস্বরূপ, নিম্নলিখিত প্রশ্নগুলি বৈধ:

user.name = "users/{user}"
emoji.unicode = "🙂"
emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR emoji.unicode = "👍"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" AND user.name = "users/{user}"
(emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}")
AND user.name = "users/{user}"

নিম্নলিখিত প্রশ্নগুলি অবৈধ:

emoji.unicode = "🙂" AND emoji.unicode = "👍"
emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR
user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
AND user.name = "users/{user}"

অবৈধ প্রশ্নগুলি একটি INVALID_ARGUMENT ত্রুটি সহ সার্ভার দ্বারা প্রত্যাখ্যান করা হয়।

Listereactionsresponse

একটি তালিকা প্রতিক্রিয়া অনুরোধ প্রতিক্রিয়া।

ক্ষেত্র
reactions[]

Reaction

অনুরোধ করা (বা প্রথম) পৃষ্ঠায় প্রতিক্রিয়াগুলির তালিকা।

next_page_token

string

ফলাফলের পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে ধারাবাহিকতা টোকেন। এটি ফলাফলের শেষ পৃষ্ঠার জন্য খালি।

লিস্টস্পেসিভেন্টস রিকোয়েস্ট

স্পেস ইভেন্টগুলির তালিকা দেওয়ার জন্য বার্তা অনুরোধ করুন।

ক্ষেত্র
parent

string

প্রয়োজন। গুগল চ্যাট স্পেসের রিসোর্স নাম যেখানে ঘটনাগুলি ঘটেছিল।

ফর্ম্যাট: spaces/{space}

page_size

int32

ঐচ্ছিক। সর্বাধিক সংখ্যক স্থান ইভেন্ট ফিরে এসেছে। পরিষেবাটি এই মানের চেয়ে কম ফিরে আসতে পারে।

নেতিবাচক মানগুলি একটি INVALID_ARGUMENT ত্রুটি ফিরিয়ে দেয়।

page_token

string

একটি পৃষ্ঠা টোকেন, পূর্ববর্তী তালিকা স্পেস ইভেন্ট কল থেকে প্রাপ্ত। পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে এটি সরবরাহ করুন।

প্যাগিনেট করার সময়, স্পেস ইভেন্টগুলির তালিকাতে প্রদত্ত অন্যান্য সমস্ত পরামিতি অবশ্যই কলটির সাথে মেলে যা পৃষ্ঠাটি টোকেন সরবরাহ করে। অন্যান্য পরামিতিগুলিতে বিভিন্ন মান পাস করার ফলে অপ্রত্যাশিত ফলাফল হতে পারে।

filter

string

প্রয়োজন। একটি ক্যোয়ারী ফিল্টার।

HAS : অপারেটর ব্যবহার করে আপনাকে কমপক্ষে একটি ইভেন্টের ধরণ ( event_type ) নির্দিষ্ট করতে হবে। একাধিক ইভেন্টের ধরণের দ্বারা ফিল্টার করতে, OR অপারেটরটি ব্যবহার করুন। আপনার ফিল্টারটিতে ব্যাচের ইভেন্টের ধরণগুলি বাদ দিন। অনুরোধটি স্বয়ংক্রিয়ভাবে সম্পর্কিত কোনও ব্যাচের ইভেন্টগুলি ফেরত দেয়। উদাহরণস্বরূপ, আপনি যদি নতুন প্রতিক্রিয়া দ্বারা ফিল্টার করেন ( google.workspace.chat.reaction.v1.created 1.ক্রিটেড), সার্ভারটি ব্যাচকে নতুন প্রতিক্রিয়া ইভেন্টগুলি ( google.workspace.chat.reaction.v1.batchCreated 1.ব্যাচক্রিটেড) প্রদান করে। সমর্থিত ইভেন্টের ধরণের তালিকার জন্য, SpaceEvents রেফারেন্স ডকুমেন্টেশন দেখুন।

Ally চ্ছিকভাবে, আপনি স্টার্ট টাইম ( start_time ) এবং শেষ সময় ( end_time ) দ্বারা ফিল্টার করতে পারেন:

  • start_time : এক্সক্লুসিভ টাইমস্ট্যাম্প যা থেকে স্পেস ইভেন্টগুলি তালিকাভুক্ত করা শুরু করা উচিত। আপনি 28 দিন আগে ঘটে যাওয়া ইভেন্টগুলি তালিকাভুক্ত করতে পারেন। যদি অনির্ধারিত হয় তবে গত 28 দিন থেকে স্পেস ইভেন্টগুলি তালিকাভুক্ত করে।
  • end_time : কোন স্থানের ইভেন্টগুলি তালিকাভুক্ত না হওয়া পর্যন্ত অন্তর্ভুক্ত টাইমস্ট্যাম্প। যদি অনির্ধারিত হয় তবে অনুরোধের সময় পর্যন্ত ইভেন্টগুলি তালিকাভুক্ত করে।

একটি শুরু বা শেষ সময় নির্দিষ্ট করতে, আরএফসি -3339 এ সমান = অপারেটর এবং ফর্ম্যাট ব্যবহার করুন। start_time এবং end_time উভয়ই ফিল্টার করতে, AND অপারেটরটি ব্যবহার করুন।

উদাহরণস্বরূপ, নিম্নলিখিত প্রশ্নগুলি বৈধ:

start_time="2023-08-23T19:20:33+00:00" AND
end_time="2023-08-23T19:21:54+00:00"
start_time="2023-08-23T19:20:33+00:00" AND
(event_types:"google.workspace.chat.space.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created")

নিম্নলিখিত প্রশ্নগুলি অবৈধ:

start_time="2023-08-23T19:20:33+00:00" OR
end_time="2023-08-23T19:21:54+00:00"
event_types:"google.workspace.chat.space.v1.updated" AND
event_types:"google.workspace.chat.message.v1.created"

অবৈধ প্রশ্নগুলি একটি INVALID_ARGUMENT ত্রুটি সহ সার্ভার দ্বারা প্রত্যাখ্যান করা হয়।

লিস্টস্পেসিভেন্টস রিসপন্স

স্পেস ইভেন্টগুলির তালিকা দেওয়ার জন্য প্রতিক্রিয়া বার্তা।

ক্ষেত্র
space_events[]

SpaceEvent

ফলাফলগুলি কালানুক্রমিক ক্রমে ফিরে আসে (প্রথমে প্রাচীনতম ইভেন্ট)।

next_page_token

string

ধারাবাহিকতা টোকেন আরও ইভেন্ট আনত। যদি এই ক্ষেত্রটি বাদ দেওয়া হয় তবে পরবর্তী কোনও পৃষ্ঠা নেই।

লিস্টস্পেসেস রিকোয়েস্ট

কলার স্পেসগুলি তালিকাভুক্ত করার জন্য একটি অনুরোধের সদস্য।

ক্ষেত্র
page_size

int32

ঐচ্ছিক। ফিরে আসার জন্য সর্বাধিক সংখ্যক স্পেস। পরিষেবাটি এই মানের চেয়ে কম ফিরে আসতে পারে।

যদি অনির্ধারিত হয় তবে সর্বাধিক 100 টি স্পেস ফিরে আসে।

সর্বাধিক মান 1000 you আপনি যদি 1000 এরও বেশি মান ব্যবহার করেন তবে এটি স্বয়ংক্রিয়ভাবে 1000 এ পরিবর্তিত হয়েছে।

নেতিবাচক মানগুলি একটি INVALID_ARGUMENT ত্রুটি ফিরিয়ে দেয়।

page_token

string

ঐচ্ছিক। পূর্ববর্তী তালিকার স্পেস কল থেকে প্রাপ্ত একটি পৃষ্ঠা টোকেন। পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে এই প্যারামিটারটি সরবরাহ করুন।

প্যাগিনেট করার সময়, ফিল্টার মানটি কলটির সাথে মেলে যা পৃষ্ঠাটি টোকেন সরবরাহ করে। একটি পৃথক মান পাস করা অপ্রত্যাশিত ফলাফল হতে পারে।

filter

string

ঐচ্ছিক। একটি ক্যোয়ারী ফিল্টার।

আপনি স্পেস টাইপ ( space_type ) দ্বারা স্পেসগুলি ফিল্টার করতে পারেন।

স্পেস টাইপ দ্বারা ফিল্টার করতে, আপনাকে অবশ্যই বৈধ এনাম মান নির্দিষ্ট করতে হবে, যেমন SPACE বা GROUP_CHAT ( space_type SPACE_TYPE_UNSPECIFIED হতে পারে না)। একাধিক স্থানের ধরণের জন্য জিজ্ঞাসা করতে, OR অপারেটরটি ব্যবহার করুন।

উদাহরণস্বরূপ, নিম্নলিখিত প্রশ্নগুলি বৈধ:

space_type = "SPACE"
spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"

অবৈধ প্রশ্নগুলি একটি INVALID_ARGUMENT ত্রুটি সহ সার্ভার দ্বারা প্রত্যাখ্যান করা হয়।

লিস্টস্পেসেস রিসপন্স

একটি তালিকা স্পেস অনুরোধের জন্য প্রতিক্রিয়া।

ক্ষেত্র
spaces[]

Space

অনুরোধ করা (বা প্রথম) পৃষ্ঠায় স্পেসের তালিকা।

next_page_token

string

ফলাফলের পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে আপনি pageToken হিসাবে একটি টোকেন পাঠাতে পারেন। যদি খালি হয় তবে পরবর্তী কোনও পৃষ্ঠা নেই।

ম্যাচডুরল

একটি চ্যাট বার্তায় একটি ম্যাচযুক্ত ইউআরএল। চ্যাট অ্যাপ্লিকেশনগুলি ম্যাচযুক্ত ইউআরএলগুলির পূর্বরূপ দেখতে পারে। আরও তথ্যের জন্য, পূর্বরূপ লিঙ্কগুলি দেখুন।

ক্ষেত্র
url

string

শুধুমাত্র আউটপুট। URL টি যে মেলে।

সদস্যপদ

গুগল চ্যাটে সদস্যতার সম্পর্কের প্রতিনিধিত্ব করে, যেমন কোনও ব্যবহারকারী বা চ্যাট অ্যাপকে কোনও স্থান থেকে বা অনুপস্থিত থাকার জন্য আমন্ত্রণ জানানো হয়।

ক্ষেত্র
name

string

সার্ভার দ্বারা নির্ধারিত সদস্যতার রিসোর্স নাম।

ফর্ম্যাট: spaces/{space}/members/{member}

state

MembershipState

শুধুমাত্র আউটপুট। সদস্যতার অবস্থা।

role

MembershipRole

ঐচ্ছিক। চ্যাট স্পেসের মধ্যে ব্যবহারকারীর ভূমিকা, যা স্থানটিতে তাদের অনুমোদিত ক্রিয়াগুলি নির্ধারণ করে।

এই ক্ষেত্রটি কেবল UpdateMembership ইনপুট হিসাবে ব্যবহার করা যেতে পারে।

create_time

Timestamp

ঐচ্ছিক। অপরিবর্তনীয়। সদস্যতার সৃষ্টির সময়, যেমন কোনও সদস্য যখন যোগদান করেছিলেন বা কোনও জায়গাতে যোগদানের জন্য আমন্ত্রিত হন। এই ক্ষেত্রটি কেবল আউটপুট, যখন আমদানি মোড স্পেসগুলিতে historical তিহাসিক সদস্যপদ আমদানি করতে ব্যবহৃত হয়।

delete_time

Timestamp

ঐচ্ছিক। অপরিবর্তনীয়। সদস্যতার মুছে ফেলার সময়, যেমন কোনও সদস্য যখন ছেড়ে যায় বা কোনও স্থান থেকে সরানো হয়েছিল। এই ক্ষেত্রটি কেবল আউটপুট, যখন আমদানি মোড স্পেসগুলিতে historical তিহাসিক সদস্যপদ আমদানি করতে ব্যবহৃত হয়।

ইউনিয়ন ফিল্ড memberType । এই সদস্যতার সাথে যুক্ত সদস্য। অন্যান্য সদস্যের প্রকারগুলি ভবিষ্যতে সমর্থিত হতে পারে। memberType নিম্নলিখিতগুলির মধ্যে একটি হতে পারে:
member

User

গুগল চ্যাট ব্যবহারকারী বা অ্যাপ্লিকেশনটির সাথে সম্পর্কিত। যদি আপনার চ্যাট অ্যাপ্লিকেশনটি ব্যবহারকারী হিসাবে প্রমাণীকরণ করে তবে আউটপুটটি ব্যবহারকারীর name এবং type পপুলেট করে।

group_member

Group

গুগল গ্রুপ সদস্যতার সাথে মিল রয়েছে।

সদস্যপদ

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

Enums
MEMBERSHIP_ROLE_UNSPECIFIED ডিফল্ট মান। users জন্য: তারা স্থানের সদস্য নয়, তবে আমন্ত্রিত হতে পারে। Google Groups জন্য: এগুলি সর্বদা এই ভূমিকা অর্পণ করা হয় (ভবিষ্যতে অন্যান্য এনাম মানগুলি ব্যবহৃত হতে পারে)।
ROLE_MEMBER মহাকাশ সদস্য। স্থানটিতে বার্তা প্রেরণের মতো ব্যবহারকারীর প্রাথমিক অনুমতি রয়েছে। 1: 1 এবং নামবিহীন গ্রুপ কথোপকথনে, প্রত্যেকেরই এই ভূমিকা রয়েছে।
ROLE_MANAGER একটি স্পেস ম্যানেজার। ব্যবহারকারীর কাছে সমস্ত প্রাথমিক অনুমতি এবং প্রশাসনিক অনুমতি রয়েছে যা তাদের সদস্য যোগ বা অপসারণের মতো স্থান পরিচালনা করতে দেয়। কেবল SpaceType.SPACE সমর্থিত।

সদস্যতা

একটি স্থানের সাথে সদস্যের সম্পর্ক নির্দিষ্ট করে। অন্যান্য সদস্যপদ রাষ্ট্রগুলি ভবিষ্যতে সমর্থিত হতে পারে।

Enums
MEMBERSHIP_STATE_UNSPECIFIED ডিফল্ট মান। ব্যবহার করবেন না।
JOINED ব্যবহারকারী স্থানটিতে যুক্ত করা হয় এবং স্থানটিতে অংশ নিতে পারে।
INVITED ব্যবহারকারীকে স্থানটিতে যোগদানের জন্য আমন্ত্রিত করা হয়, তবে এতে যোগ দেয়নি।
NOT_A_MEMBER ব্যবহারকারী স্থানের অন্তর্ভুক্ত নয় এবং স্থানটিতে যোগদানের জন্য কোনও মুলতুবি আমন্ত্রণ নেই।

সদস্যতা

একাধিক নতুন সদস্যতার জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.membership.v1.batchCreated

ক্ষেত্র
memberships[]

MembershipCreatedEventData

নতুন সদস্যতার একটি তালিকা।

সদস্যতা

একাধিক মুছে ফেলা সদস্যতার জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.membership.v1.batchDeleted

ক্ষেত্র
memberships[]

MembershipDeletedEventData

মুছে ফেলা সদস্যতার একটি তালিকা।

সদস্যপদব্যাচআপডেটেডএডেটাটা

একাধিক আপডেট হওয়া সদস্যতার জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.membership.v1.batchUpdated

ক্ষেত্র
memberships[]

MembershipUpdatedEventData

আপডেট হওয়া সদস্যতার একটি তালিকা।

সদস্যতা

একটি নতুন সদস্যতার জন্য ইভেন্ট পেডলোড।

ইভেন্টের ধরণ: google.workspace.chat.membership.v1.created

ক্ষেত্র
membership

Membership

নতুন সদস্যপদ।

সদস্যতাডিলিটেডএভেন্টাটা

মুছে ফেলা সদস্যতার জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.membership.v1.deleted

ক্ষেত্র
membership

Membership

মুছে ফেলা সদস্যপদ। শুধুমাত্র name এবং state ক্ষেত্রগুলি পপুলেটেড।

সদস্যতা

একটি আপডেট সদস্যতার জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.membership.v1.updated

ক্ষেত্র
membership

Membership

আপডেট হওয়া সদস্যতা।

বার্তা

একটি গুগল চ্যাট স্পেসে একটি বার্তা।

ক্ষেত্র
name

string

বার্তার রিসোর্স নাম।

ফর্ম্যাট: spaces/{space}/messages/{message}

যেখানে {space} হ'ল স্পেসের আইডি যেখানে বার্তাটি পোস্ট করা হয় এবং {message} বার্তার জন্য একটি সিস্টেম-নির্ধারিত আইডি। For example, spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB .

আপনি যখন কোনও বার্তা তৈরি করার সময় কোনও কাস্টম আইডি সেট করেন তবে আপনি এই আইডিটি clientAssignedMessageId ক্ষেত্রের মান সহ {message} প্রতিস্থাপন করে একটি অনুরোধে বার্তাটি নির্দিষ্ট করতে ব্যবহার করতে পারেন। For example, spaces/AAAAAAAAAAA/messages/client-custom-name . বিশদ জন্য, একটি বার্তা নাম দেখুন।

sender

User

শুধুমাত্র আউটপুট। ব্যবহারকারী যিনি বার্তাটি তৈরি করেছেন। যদি আপনার চ্যাট অ্যাপ্লিকেশনটি ব্যবহারকারী হিসাবে প্রমাণীকরণ করে তবে আউটপুটটি ব্যবহারকারীর name এবং type পপুলেট করে।

create_time

Timestamp

ঐচ্ছিক। অপরিবর্তনীয়। চ্যাটে তৈরি করা স্পেসগুলির জন্য, যে সময়টি বার্তাটি তৈরি হয়েছিল। এই ক্ষেত্রটি কেবল আউটপুট, যখন আমদানি মোড স্পেসে ব্যবহৃত হয়।

আমদানি মোড স্পেসগুলির জন্য, এই ক্ষেত্রটি historical তিহাসিক টাইমস্ট্যাম্পে সেট করুন যেখানে মূল সৃষ্টির সময়টি সংরক্ষণের জন্য উত্সটিতে বার্তাটি তৈরি করা হয়েছিল।

last_update_time

Timestamp

শুধুমাত্র আউটপুট। বার্তাটি সর্বশেষ কোনও ব্যবহারকারী দ্বারা সম্পাদিত হয়েছিল। যদি বার্তাটি কখনই সম্পাদনা করা হয় না তবে এই ক্ষেত্রটি খালি।

delete_time

Timestamp

শুধুমাত্র আউটপুট। গুগল চ্যাটে বার্তাটি মুছে ফেলা হয়েছিল এমন সময়ে। যদি বার্তাটি কখনই মুছে ফেলা হয় তবে এই ক্ষেত্রটি খালি।

text

string

বার্তার সরল-পাঠ্য বডি। কোনও চিত্র, ভিডিও বা ওয়েব পৃষ্ঠার প্রথম লিঙ্কটি একটি পূর্বরূপ চিপ তৈরি করে। আপনি কোনও গুগল চ্যাট ব্যবহারকারী বা স্পেসের প্রত্যেককে @মেন্টেশন করতে পারেন।

পাঠ্য বার্তা তৈরি সম্পর্কে জানতে, একটি পাঠ্য বার্তা প্রেরণ দেখুন।

formatted_text

string

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

  • বোল্ড, ইটালিক, স্ট্রাইকথ্রু, মনোস্পেস, মনোস্পেস ব্লক এবং বুলেটেড তালিকার জন্য মার্কআপ সিনট্যাক্স

  • ব্যবহারকারী <users/{user}> ফর্ম্যাটটি ব্যবহার করে উল্লেখ করেছেন।

  • <{url}|{rendered_text}> ফর্ম্যাটটি ব্যবহার করে কাস্টম হাইপারলিঙ্কগুলি যেখানে প্রথম স্ট্রিংটি ইউআরএল এবং দ্বিতীয়টি রেন্ডার করা পাঠ্য - উদাহরণস্বরূপ, <http://example.com|custom text>

  • ফর্ম্যাটটি ব্যবহার করে কাস্টম ইমোজি :{emoji_name}: example উদাহরণস্বরূপ,: :smile: । এটি ইউনিকোড ইমোজির ক্ষেত্রে প্রযোজ্য নয়, যেমন একটি গ্রিনিং ফেস ইমোজির জন্য U+1F600

আরও তথ্যের জন্য, একটি বার্তায় প্রেরিত পাঠ্য বিন্যাস দেখুন দেখুন

cards[]
(deprecated)

Card

অবমূল্যায়িত: পরিবর্তে cards_v2 ব্যবহার করুন।

সমৃদ্ধ, বিন্যাসযুক্ত এবং ইন্টারেক্টিভ কার্ডগুলি যা আপনি ইউআই উপাদানগুলি যেমন: ফর্ম্যাটযুক্ত পাঠ্য, বোতাম এবং ক্লিকযোগ্য চিত্রগুলি প্রদর্শন করতে ব্যবহার করতে পারেন। কার্ডগুলি সাধারণত বার্তার প্লেইন-টেক্সট বডিটির নীচে প্রদর্শিত হয়। cards এবং cards_v2 এর সর্বাধিক আকার 32 কেবি থাকতে পারে।

cards_v2[]

CardWithId

কার্ডের একটি অ্যারে।

কেবল চ্যাট অ্যাপ্লিকেশনগুলি কার্ড তৈরি করতে পারে। যদি আপনার চ্যাট অ্যাপ্লিকেশনটি ব্যবহারকারী হিসাবে প্রমাণীকরণ করে তবে বার্তাগুলিতে কার্ড থাকতে পারে না।

কার্ডগুলি সম্পর্কে এবং সেগুলি কীভাবে তৈরি করবেন সে সম্পর্কে জানতে, কার্ড বার্তাগুলি প্রেরণ করুন।

কার্ড নির্মাতার সাথে ডিজাইন এবং পূর্বরূপ কার্ড।

কার্ড নির্মাতা খুলুন

annotations[]

Annotation

শুধুমাত্র আউটপুট। এই বার্তায় text সাথে যুক্ত টীকাগুলি।

thread

Thread

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

space

Space

যদি আপনার চ্যাট অ্যাপ্লিকেশনটি ব্যবহারকারী হিসাবে প্রমাণীকরণ করে তবে আউটপুটটি স্থানের name পপুলেট করে।

fallback_text

string

যখন প্রকৃত কার্ডগুলি প্রদর্শিত হতে পারে না তখন ব্যবহৃত বার্তার কার্ডগুলির একটি সরল-পাঠ্য বিবরণ-উদাহরণস্বরূপ, মোবাইল বিজ্ঞপ্তি।

action_response

ActionResponse

শুধুমাত্র ইনপুট। প্যারামিটারগুলি যে কোনও চ্যাট অ্যাপ্লিকেশন তার প্রতিক্রিয়াটি কীভাবে পোস্ট করা হয় তা কনফিগার করতে ব্যবহার করতে পারে।

argument_text

string

শুধুমাত্র আউটপুট। সমস্ত চ্যাট অ্যাপের সাথে বার্তার প্লেইন-টেক্সট বডিটি ছড়িয়ে দেওয়া উল্লেখ করেছে।

slash_command

SlashCommand

শুধুমাত্র আউটপুট। স্ল্যাশ কমান্ড তথ্য, যদি প্রযোজ্য হয়।

attachment[]

Attachment

ব্যবহারকারী-আপলোড সংযুক্তি।

matched_url

MatchedUrl

শুধুমাত্র আউটপুট। spaces.messages.text একটি url.messages.text যা একটি লিঙ্ক পূর্বরূপ প্যাটার্নের সাথে মেলে। আরও তথ্যের জন্য, পূর্বরূপ লিঙ্কগুলি দেখুন।

thread_reply

bool

শুধুমাত্র আউটপুট। true যখন, বার্তাটি একটি উত্তর থ্রেডে একটি প্রতিক্রিয়া। যখন false , বার্তাটি কোনও থ্রেডের প্রথম বার্তা বা কোনও থ্রেডযুক্ত জবাব ছাড়াই একটি বার্তা হিসাবে স্পেসের শীর্ষ-স্তরের কথোপকথনে দৃশ্যমান।

যদি স্থানটি থ্রেডগুলিতে উত্তর সমর্থন না করে তবে এই ক্ষেত্রটি সর্বদা false

client_assigned_message_id

string

ঐচ্ছিক। বার্তার জন্য একটি কাস্টম আইডি। আপনি কোনও বার্তা সনাক্ত করতে ক্ষেত্র ব্যবহার করতে পারেন, বা কোনও বার্তা পেতে, মুছতে বা আপডেট করতে পারেন। একটি কাস্টম আইডি সেট করতে, আপনি যখন বার্তাটি তৈরি করবেন তখন messageId ক্ষেত্রটি নির্দিষ্ট করুন। বিশদ জন্য, একটি বার্তা নাম দেখুন।

emoji_reaction_summaries[]

EmojiReactionSummary

শুধুমাত্র আউটপুট। বার্তায় ইমোজি প্রতিক্রিয়া সংক্ষিপ্তসারগুলির তালিকা।

private_message_viewer

User

অপরিবর্তনীয়। একটি বার্তা তৈরির জন্য ইনপুট, অন্যথায় কেবল আউটপুট। ব্যবহারকারী যা বার্তাটি দেখতে পারে। সেট করার সময়, বার্তাটি ব্যক্তিগত এবং কেবলমাত্র নির্দিষ্ট ব্যবহারকারী এবং চ্যাট অ্যাপের কাছে দৃশ্যমান। লিঙ্ক পূর্বরূপ এবং সংযুক্তিগুলি ব্যক্তিগত বার্তাগুলির জন্য সমর্থিত নয়।

কেবল চ্যাট অ্যাপ্লিকেশনগুলি ব্যক্তিগত বার্তা প্রেরণ করতে পারে। যদি আপনার চ্যাট অ্যাপ্লিকেশনটি কোনও বার্তা প্রেরণের জন্য ব্যবহারকারী হিসাবে প্রমাণীকরণ করে তবে বার্তাটি ব্যক্তিগত হতে পারে না এবং অবশ্যই এই ক্ষেত্রটি বাদ দিতে হবে।

বিশদের জন্য, গুগল চ্যাট ব্যবহারকারীদের ব্যক্তিগত বার্তা প্রেরণ দেখুন।

deletion_metadata

DeletionMetadata

শুধুমাত্র আউটপুট। একটি মুছে ফেলা বার্তা সম্পর্কে তথ্য। delete_time সেট হয়ে গেলে একটি বার্তা মুছে ফেলা হয়।

quoted_message_metadata

QuotedMessageMetadata

শুধুমাত্র আউটপুট। কোনও স্পেসে গুগল চ্যাট ব্যবহারকারী দ্বারা উদ্ধৃত একটি বার্তা সম্পর্কিত তথ্য। গুগল চ্যাট ব্যবহারকারীরা এর জবাব দেওয়ার জন্য একটি বার্তা উদ্ধৃত করতে পারেন।

attached_gifs[]

AttachedGif

শুধুমাত্র আউটপুট। জিআইএফ চিত্রগুলি যা বার্তার সাথে সংযুক্ত থাকে।

accessory_widgets[]

AccessoryWidget

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

অ্যাকসেসরিজ উইজেটগুলির সাথে একটি বার্তা তৈরি করার জন্য অ্যাপ্লিকেশন প্রমাণীকরণ প্রয়োজন।

বার্তা

একাধিক নতুন বার্তাগুলির জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.message.v1.batchCreated

ক্ষেত্র
messages[]

MessageCreatedEventData

নতুন বার্তাগুলির একটি তালিকা।

বার্তা

একাধিক মুছে ফেলা বার্তাগুলির জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.message.v1.batchDeleted

ক্ষেত্র
messages[]

MessageDeletedEventData

মুছে ফেলা বার্তাগুলির একটি তালিকা।

মেসেজব্যাচআপডেটেডএডাটা

একাধিক আপডেট হওয়া বার্তাগুলির জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.message.v1.batchUpdated

ক্ষেত্র
messages[]

MessageUpdatedEventData

আপডেট হওয়া বার্তাগুলির একটি তালিকা।

মেসেজক্রিয়েটেডএডাটা

একটি নতুন বার্তার জন্য ইভেন্ট পেডলোড।

ইভেন্টের ধরণ: google.workspace.chat.message.v1.created

ক্ষেত্র
message

Message

নতুন বার্তা।

মেসেজডেলিটেডএভেন্টাটা

মুছে ফেলা বার্তার জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.message.v1.deleted

ক্ষেত্র
message

Message

মুছে ফেলা বার্তা। কেবল name , createTime , deleteTime এবং deletionMetadata ক্ষেত্রগুলি পপুলেটেড।

মেসেজআপডেটেডএডাটাটা

একটি আপডেট হওয়া বার্তার জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.message.v1.updated

ক্ষেত্র
message

Message

আপডেট হওয়া বার্তা।

কুইটেডমেসেজমেটাটাটা

একটি উদ্ধৃত বার্তা সম্পর্কে তথ্য।

ক্ষেত্র
name

string

শুধুমাত্র আউটপুট। উদ্ধৃত বার্তার রিসোর্স নাম।

ফর্ম্যাট: spaces/{space}/messages/{message}

last_update_time

Timestamp

শুধুমাত্র আউটপুট। টাইমস্ট্যাম্প যখন উদ্ধৃত বার্তাটি তৈরি করা হয়েছিল বা যখন উদ্ধৃত বার্তাটি সর্বশেষ আপডেট হয়েছিল।

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

একটি বার্তায় একটি প্রতিক্রিয়া।

ক্ষেত্র
name

string

প্রতিক্রিয়াটির রিসোর্স নাম।

ফর্ম্যাট: spaces/{space}/messages/{message}/reactions/{reaction}

user

User

শুধুমাত্র আউটপুট। ব্যবহারকারী যিনি প্রতিক্রিয়া তৈরি করেছেন।

emoji

Emoji

ইমোজি প্রতিক্রিয়াতে ব্যবহৃত হয়েছিল।

রিঅ্যাকশনব্যাচক্রিটেডএভেন্টাটা

একাধিক নতুন প্রতিক্রিয়া জন্য ইভেন্ট পেলোড।

ইভেন্টের ধরণ: google.workspace.chat.reaction.v1.batchCreated

ক্ষেত্র
reactions[]

ReactionCreatedEventData

নতুন প্রতিক্রিয়াগুলির একটি তালিকা।

রিঅ্যাকশনব্যাচডেলিটেডএভেন্টাটা

একাধিক মুছে ফেলা প্রতিক্রিয়াগুলির জন্য ইভেন্ট পে -লোড।

ইভেন্টের ধরণ: google.workspace.chat.reaction.v1.batchDeleted

ক্ষেত্র
reactions[]

ReactionDeletedEventData

মুছে ফেলা প্রতিক্রিয়াগুলির একটি তালিকা।

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

একটি নতুন প্রতিক্রিয়া জন্য ইভেন্ট পেলোড।

ইভেন্টের ধরণ: google.workspace.chat.reaction.v1.created

ক্ষেত্র
reaction

Reaction

নতুন প্রতিক্রিয়া।

RecentDeledeventdata

মুছে ফেলা প্রতিক্রিয়া জন্য ইভেন্ট পে -লোড।

প্রকার: google.workspace.chat.reaction.v1.deleted

ক্ষেত্র
reaction

Reaction

মুছে ফেলা প্রতিক্রিয়া।

রিচলিঙ্কমেটাটাটা

একটি সংস্থান একটি সমৃদ্ধ লিঙ্ক।

ক্ষেত্র
uri

string

এই লিঙ্কের ইউআরআই।

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

রিচলিঙ্কটিপ

সমৃদ্ধ লিঙ্ক প্রকার। ভবিষ্যতে আরও প্রকার যুক্ত করা যেতে পারে।

Enums
DRIVE_FILE একটি গুগল ড্রাইভ সমৃদ্ধ লিঙ্ক প্রকার।
CHAT_SPACE একটি চ্যাট স্পেস সমৃদ্ধ লিঙ্ক প্রকার। উদাহরণস্বরূপ, একটি স্পেস স্মার্ট চিপ।

সার্চস্পেসস রিকোয়েস্ট

একটি ক্যোয়ারির উপর ভিত্তি করে স্পেসগুলির একটি তালিকা অনুসন্ধান করার অনুরোধ।

ক্ষেত্র
use_admin_access

bool

true যখন, পদ্ধতিটি ব্যবহারকারীর গুগল ওয়ার্কস্পেস প্রশাসকের সুবিধাগুলি ব্যবহার করে চলে।

কলিং ব্যবহারকারীকে অবশ্যই পরিচালনা চ্যাট এবং স্পেস কথোপকথনের বিশেষাধিকার সহ একটি গুগল ওয়ার্কস্পেস প্রশাসক হতে হবে।

chat.admin.spaces.readonly বা chat.admin.spaces OAUTH 2.0 স্কোপ প্রয়োজন।

এই পদ্ধতিটি বর্তমানে কেবল অ্যাডমিন অ্যাক্সেসকে সমর্থন করে, সুতরাং এই ক্ষেত্রের জন্য কেবল true গৃহীত হয়।

page_size

int32

ফিরে আসার জন্য সর্বাধিক সংখ্যক স্পেস। পরিষেবাটি এই মানের চেয়ে কম ফিরে আসতে পারে।

যদি অনির্ধারিত হয় তবে সর্বাধিক 100 টি স্পেস ফিরে আসে।

সর্বাধিক মান 1000 you আপনি যদি 1000 এরও বেশি মান ব্যবহার করেন তবে এটি স্বয়ংক্রিয়ভাবে 1000 এ পরিবর্তিত হয়েছে।

page_token

string

একটি টোকেন, পূর্ববর্তী অনুসন্ধান স্পেস কল থেকে প্রাপ্ত। পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে এই প্যারামিটারটি সরবরাহ করুন।

প্যাগিনেট করার সময়, প্রদত্ত অন্যান্য সমস্ত পরামিতিগুলি কলটির সাথে মেলে যা পৃষ্ঠা টোকেন সরবরাহ করে। অন্যান্য পরামিতিগুলিতে বিভিন্ন মান পাস করার ফলে অপ্রত্যাশিত ফলাফল হতে পারে।

query

string

প্রয়োজন। একটি অনুসন্ধান অনুসন্ধান।

আপনি নিম্নলিখিত পরামিতিগুলি ব্যবহার করে অনুসন্ধান করতে পারেন:

  • create_time
  • customer
  • display_name
  • external_user_allowed
  • last_active_time
  • space_history_state
  • space_type

create_time এবং last_active_time আরএফসি -3339 ফর্ম্যাটে একটি টাইমস্ট্যাম্প গ্রহণ করে এবং সমর্থিত তুলনা অপারেটরগুলি হ'ল: = , < , > , <= , >=

customer প্রয়োজন এবং কোন গ্রাহক থেকে স্পেস আনতে হবে তা নির্দেশ করতে ব্যবহৃত হয়। customers/my_customer একমাত্র সমর্থিত মান।

display_name কেবলমাত্র ( : HAS গ্রহণ করে। ম্যাচের পাঠ্যটি প্রথমে টোকেনগুলিতে টোকেনাইজ করা হয় এবং প্রতিটি টোকেনটি স্পেসের display_name যে কোনও জায়গায় সাবস্ট্রিং হিসাবে উপসর্গযুক্ত এবং স্বতন্ত্রভাবে উপসর্গযুক্ত। উদাহরণস্বরূপ, Fun Eve প্রাক্কালে Fun event বা The evening was fun , তবে notFun event বা even নয়।

external_user_allowed true বা false গ্রহণ করে।

space_history_state কেবলমাত্র একটি space সম্পদের historyState ক্ষেত্র থেকে মান গ্রহণ করে।

space_type প্রয়োজন এবং একমাত্র বৈধ মান হ'ল SPACE

বিভিন্ন ক্ষেত্র জুড়ে, কেবল AND অপারেটরগুলি সমর্থিত। একটি বৈধ উদাহরণ হ'ল space_type = "SPACE" AND display_name:"Hello" এবং একটি অবৈধ উদাহরণ হ'ল space_type = "SPACE" OR display_name:"Hello"

একই ক্ষেত্রের মধ্যে, space_type সমর্থন করে না AND বা OR অপারেটরগুলি। display_name , 'স্পেস_হিস্টরি_স্টেট', এবং 'বাহ্যিক_উসার_লয়েড' কেবল সমর্থন OR অপারেটর। last_active_time এবং create_time উভয় AND OR অপারেটর সমর্থন করে। AND কেবলমাত্র একটি অন্তরকে উপস্থাপন করতে ব্যবহার করা যেতে পারে, যেমন last_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00"

নিম্নলিখিত উদাহরণ অনুসন্ধানগুলি বৈধ:

customer = "customers/my_customer" AND space_type = "SPACE"

customer = "customers/my_customer" AND space_type = "SPACE" AND
display_name:"Hello World"

customer = "customers/my_customer" AND space_type = "SPACE" AND
(last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time >
"2022-01-01T00:00:00+00:00")

customer = "customers/my_customer" AND space_type = "SPACE" AND
(display_name:"Hello World" OR display_name:"Fun event") AND
(last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time <
"2022-01-01T00:00:00+00:00")

customer = "customers/my_customer" AND space_type = "SPACE" AND
(create_time > "2019-01-01T00:00:00+00:00" AND create_time <
"2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND
(space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
order_by

string

ঐচ্ছিক। স্পেসের তালিকা কীভাবে অর্ডার করা হয়।

দ্বারা অর্ডার করার জন্য সমর্থিত বৈশিষ্ট্যগুলি হ'ল:

  • membership_count.joined_direct_human_user_count - সরাসরি কোনও জায়গায় যোগদানকারী মানব ব্যবহারকারীদের গণনা চিহ্নিত করে।
  • last_active_time - এই স্থানের যে কোনও বিষয়ে শেষ যোগ্য আইটেম যুক্ত করা হয় এমন সময়কে বোঝায়।
  • create_time - মহাকাশ তৈরির সময়কে বোঝায়।

বৈধ অর্ডারিং অপারেশন মানগুলি হ'ল:

  • আরোহণের জন্য ASC ডিফল্ট মান।

  • অবতরণের জন্য DESC

সমর্থিত সিনট্যাক্সটি হ'ল:

  • membership_count.joined_direct_human_user_count DESC
  • membership_count.joined_direct_human_user_count ASC
  • last_active_time DESC
  • last_active_time ASC
  • create_time DESC
  • create_time ASC

সার্চস্পেসস রিস্পোনস

অনুসন্ধান স্পেসের অনুরোধের সাথে সম্পর্কিত স্পেসগুলির একটি তালিকা সহ প্রতিক্রিয়া।

ক্ষেত্র
spaces[]

Space

অনুরোধ করা স্পেসগুলির একটি পৃষ্ঠা।

next_page_token

string

একটি টোকেন যা পরবর্তী পৃষ্ঠাটি পুনরুদ্ধার করতে ব্যবহার করা যেতে পারে। যদি এই ক্ষেত্রটি খালি থাকে তবে পরবর্তী কোনও পৃষ্ঠা নেই।

total_size

int32

সমস্ত পৃষ্ঠা জুড়ে কোয়েরির সাথে মেলে মোট স্পেসের সংখ্যা। ফলাফলটি যদি 10,000 টিরও বেশি হয় তবে এই মানটি একটি অনুমান।

সেটআপস্পেসেরেকোয়েস্ট

একটি স্থান তৈরি এবং এটিতে নির্দিষ্ট ব্যবহারকারীদের যুক্ত করার জন্য অনুরোধ করুন।

ক্ষেত্র
space

Space

প্রয়োজন। Space.spaceType ক্ষেত্র প্রয়োজন।

একটি স্থান তৈরি করতে, Space.spaceType SPACE সেট করুন এবং Space.displayName সেট করুন Dis ডিসপ্লে নেম। কোনও স্থান সেট আপ করার সময় আপনি যদি ত্রুটি বার্তা ALREADY_EXISTS পেয়ে থাকেন তবে একটি আলাদা displayName চেষ্টা করুন। গুগল ওয়ার্কস্পেস সংস্থার মধ্যে একটি বিদ্যমান স্থান ইতিমধ্যে এই প্রদর্শনের নামটি ব্যবহার করতে পারে।

একটি গোষ্ঠী চ্যাট তৈরি করতে, GROUP_CHAT Space.spaceType সেট করুন। Space.displayName সেট করবেন না।

মানুষের মধ্যে 1: 1 কথোপকথন তৈরি করতে, Space.spaceType সেট করুন DIRECT_MESSAGE স্পেসটাইপ এবং Space.singleUserBotDm সেট করুন false Space.displayName বা Space.spaceDetails সেট করবেন না।

কোনও মানব এবং কলিং চ্যাট অ্যাপের মধ্যে 1: 1 কথোপকথন তৈরি করতে, Space.spaceType সেট করুন Direct স্পেসটাইপ DIRECT_MESSAGE এবং Space.singleUserBotDm true সেট করুন। Space.displayName বা Space.spaceDetails সেট করবেন না।

যদি কোনও DIRECT_MESSAGE স্পেস ইতিমধ্যে বিদ্যমান থাকে তবে সেই স্থানটি নতুন স্থান তৈরির পরিবর্তে ফিরে আসে।

request_id

string

ঐচ্ছিক। এই অনুরোধের জন্য একটি অনন্য শনাক্তকারী। একটি এলোমেলো ইউআইডি সুপারিশ করা হয়। একটি বিদ্যমান অনুরোধ আইডি নির্দিষ্ট করে একটি নতুন স্থান তৈরির পরিবর্তে সেই আইডি দিয়ে তৈরি স্থানটি ফেরত দেয়। ভিন্ন প্রমাণীকরণকারী ব্যবহারকারীর সাথে একই চ্যাট অ্যাপ্লিকেশন থেকে একটি বিদ্যমান অনুরোধ আইডি নির্দিষ্ট করে একটি ত্রুটি ফেরত দেয়।

memberships[]

Membership

ঐচ্ছিক। গুগল চ্যাট ব্যবহারকারী বা গোষ্ঠীগুলি স্থানটিতে যোগদানের জন্য আমন্ত্রণ জানাতে। Omit the calling user, as they are added automatically.

The set currently allows up to 20 memberships (in addition to the caller).

For human membership, the Membership.member field must contain a user with name populated (format: users/{user} ) and type set to User.Type.HUMAN . You can only add human users when setting up a space (adding Chat apps is only supported for direct message setup with the calling app). You can also add members using the user's email as an alias for {user}. For example, the user.name can be users/example@gmail.com . To invite Gmail users or users from external Google Workspace domains, user's email must be used for {user} .

For Google group membership, the Membership.group_member field must contain a group with name populated (format groups/{group} ). You can only add Google groups when setting Space.spaceType to SPACE .

Optional when setting Space.spaceType to SPACE .

Required when setting Space.spaceType to GROUP_CHAT , along with at least two memberships.

Required when setting Space.spaceType to DIRECT_MESSAGE with a human user, along with exactly one membership.

Must be empty when creating a 1:1 conversation between a human and the calling Chat app (when setting Space.spaceType to DIRECT_MESSAGE and Space.singleUserBotDm to true ).

স্ল্যাশকমান্ড

A slash command in Google Chat.

ক্ষেত্র
command_id

int64

The ID of the slash command invoked.

SlashCommandMetadata

Annotation metadata for slash commands (/).

ক্ষেত্র
bot

User

The Chat app whose command was invoked.

type

Type

The type of slash command.

command_name

string

The name of the invoked slash command.

command_id

int64

The command ID of the invoked slash command.

triggers_dialog

bool

Indicates whether the slash command is for a dialog.

টাইপ

Enums
TYPE_UNSPECIFIED Default value for the enum. ব্যবহার করবেন না।
ADD Add Chat app to space.
INVOKE Invoke slash command in space.

স্থান

A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.

ক্ষেত্র
name

string

Resource name of the space.

Format: spaces/{space}

type
(deprecated)

Type

Output only. Deprecated: Use space_type instead. The type of a space.

space_type

SpaceType

The type of space. Required when creating a space or updating the space type of a space. Output only for other usage.

single_user_bot_dm

bool

ঐচ্ছিক। Whether the space is a DM between a Chat app and a single human.

threaded
(deprecated)

bool

Output only. Deprecated: Use spaceThreadingState instead. Whether messages are threaded in this space.

display_name

string

The space's display name. Required when creating a space . If you receive the error message ALREADY_EXISTS when creating a space or updating the displayName , try a different displayName . An existing space within the Google Workspace organization might already use this display name.

For direct messages, this field might be empty.

Supports up to 128 characters.

external_user_allowed

bool

অপরিবর্তনীয়। Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions:

  • The authenticated user uses a consumer account (unmanaged user account). By default, a space created by a consumer account permits any Google Chat user.

For existing spaces, this field is output only.

space_threading_state

SpaceThreadingState

Output only. The threading state in the Chat space.

space_details

SpaceDetails

Details about the space including description and rules.

space_history_state

HistoryState

The message history state for messages and threads in this space.

import_mode

bool

ঐচ্ছিক। Whether this space is created in Import Mode as part of a data migration into Google Workspace. While spaces are being imported, they aren't visible to users until the import is complete.

create_time

Timestamp

ঐচ্ছিক। অপরিবর্তনীয়। For spaces created in Chat, the time the space was created. This field is output only, except when used in import mode spaces.

For import mode spaces, set this field to the historical timestamp at which the space was created in the source in order to preserve the original creation time.

Only populated in the output when spaceType is GROUP_CHAT or SPACE .

last_active_time

Timestamp

Output only. Timestamp of the last message in the space.

admin_installed

bool

Output only. For direct message (DM) spaces with a Chat app, whether the space was created by a Google Workspace administrator. Administrators can install and set up a direct message with a Chat app on behalf of users in their organization.

To support admin install, your Chat app must feature direct messaging.

membership_count

MembershipCount

Output only. The count of joined memberships grouped by member type. Populated when the space_type is SPACE , DIRECT_MESSAGE or GROUP_CHAT .

access_settings

AccessSettings

ঐচ্ছিক। Specifies the access setting of the space. Only populated when the space_type is SPACE .

space_uri

string

Output only. The URI for a user to access the space.

Union field space_permission_settings . Represents the permission settings of a space. Only populated when the space_type is SPACE . space_permission_settings can be only one of the following:
predefined_permission_settings

PredefinedPermissionSettings

ঐচ্ছিক। শুধুমাত্র ইনপুট। Space permission settings. Input for creating a space, a collaboration space is created if this field is not set. After you create the space, settings are populated in the PermissionSettings field.

permission_settings

PermissionSettings

ঐচ্ছিক। Exact permission settings which can be set to update the space. Input for updating a space. Otherwise, output only. For space creation, use predefined_permission_settings instead.

AccessSettings

Represents the access setting of the space.

ক্ষেত্র
access_state

AccessState

Output only. Indicates the access state of the space.

audience

string

ঐচ্ছিক। The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience .

Format: audiences/{audience}

To use the default target audience for the Google Workspace organization, set to audiences/default .

AccessState

Represents the access state of the space.

Enums
ACCESS_STATE_UNSPECIFIED Access state is unknown or not supported in this API.
PRIVATE Only users or Google Groups that have been individually added or invited by other users or Google Workspace administrators can discover and access the space.
DISCOVERABLE A space manager has granted a target audience access to the space. Users or Google Groups that have been individually added or invited to the space can also discover and access the space. To learn more, see Make a space discoverable to specific users .

MembershipCount

Represents the count of memberships of a space, grouped into categories.

ক্ষেত্র
joined_direct_human_user_count

int32

Count of human users that have directly joined the space, not counting users joined by having membership in a joined group.

joined_group_count

int32

Count of all groups that have directly joined the space.

PermissionSetting

Represents a space permission setting.

ক্ষেত্র
managers_allowed

bool

Whether spaces managers have this permission.

members_allowed

bool

Whether non-manager members have this permission.

PermissionSettings

Permission settings for a named space. To set permission settings when creating a space, specify the PredefinedPermissionSettings field in your request.

ক্ষেত্র
manage_members_and_groups

PermissionSetting

Setting for managing members and groups in a space.

modify_space_details

PermissionSetting

Setting for updating space name, avatar, description and guidelines.

toggle_history

PermissionSetting

Setting for toggling space history on and off.

use_at_mention_all

PermissionSetting

Setting for using @all in a space.

manage_apps

PermissionSetting

Setting for managing apps in a space.

manage_webhooks

PermissionSetting

Setting for managing webhooks in a space.

post_messages

PermissionSetting

Output only. Setting for posting messages in a space.

reply_messages

PermissionSetting

Setting for replying to messages in a space.

PredefinedPermissionSettings

The space permission settings that you can specify when creating a named space. More settings might be added in the future. For details about permission settings for named spaces, see Learn about spaces .

Enums
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED অনির্দিষ্ট। ব্যবহার করবেন না।
COLLABORATION_SPACE Setting to make the space a collaboration space where all members can post messages.
ANNOUNCEMENT_SPACE Setting to make the space an announcement space where only space managers can post messages.

SpaceDetails

Details about the space including description and rules.

ক্ষেত্র
description

string

ঐচ্ছিক। A description of the space. For example, describe the space's discussion topic, functional purpose, or participants.

Supports up to 150 characters.

guidelines

string

ঐচ্ছিক। The space's rules, expectations, and etiquette.

Supports up to 5,000 characters.

SpaceThreadingState

Specifies the type of threading state in the Chat space.

Enums
SPACE_THREADING_STATE_UNSPECIFIED সংরক্ষিত
THREADED_MESSAGES Named spaces that support message threads. When users respond to a message, they can reply in-thread, which keeps their response in the context of the original message.
GROUPED_MESSAGES Named spaces where the conversation is organized by topic. Topics and their replies are grouped together.
UNTHREADED_MESSAGES Direct messages (DMs) between two people and group conversations between 3 or more people.

SpaceType

The type of space. Required when creating or updating a space. Output only for other usage.

Enums
SPACE_TYPE_UNSPECIFIED সংরক্ষিত
SPACE A place where people send messages, share files, and collaborate. A SPACE can include Chat apps.
GROUP_CHAT Group conversations between 3 or more people. A GROUP_CHAT can include Chat apps.
DIRECT_MESSAGE 1:1 messages between two humans or a human and a Chat app.

টাইপ

Deprecated: Use SpaceType instead.

Enums
TYPE_UNSPECIFIED সংরক্ষিত
ROOM Conversations between two or more humans.
DM 1:1 Direct Message between a human and a Chat app, where all messages are flat. Note that this doesn't include direct messages between two humans.

SpaceBatchUpdatedEventData

Event payload for multiple updates to a space.

Event type: google.workspace.chat.space.v1.batchUpdated

ক্ষেত্র
spaces[]

SpaceUpdatedEventData

A list of updated spaces.

SpaceEvent

An event that represents a change or activity in a Google Chat space. To learn more, see Work with events from Google Chat .

ক্ষেত্র
name

string

Resource name of the space event.

Format: spaces/{space}/spaceEvents/{spaceEvent}

event_time

Timestamp

Time when the event occurred.

event_type

string

Type of space event. Each event type has a batch version, which represents multiple instances of the event type that occur in a short period of time. For spaceEvents.list() requests, omit batch event types in your query filter. By default, the server returns both event type and its batch version.

Supported event types for messages :

  • New message: google.workspace.chat.message.v1.created
  • Updated message: google.workspace.chat.message.v1.updated
  • Deleted message: google.workspace.chat.message.v1.deleted
  • Multiple new messages: google.workspace.chat.message.v1.batchCreated
  • Multiple updated messages: google.workspace.chat.message.v1.batchUpdated
  • Multiple deleted messages: google.workspace.chat.message.v1.batchDeleted

Supported event types for memberships :

  • New membership: google.workspace.chat.membership.v1.created
  • Updated membership: google.workspace.chat.membership.v1.updated
  • Deleted membership: google.workspace.chat.membership.v1.deleted
  • Multiple new memberships: google.workspace.chat.membership.v1.batchCreated
  • Multiple updated memberships: google.workspace.chat.membership.v1.batchUpdated
  • Multiple deleted memberships: google.workspace.chat.membership.v1.batchDeleted

Supported event types for reactions :

  • New reaction: google.workspace.chat.reaction.v1.created
  • Deleted reaction: google.workspace.chat.reaction.v1.deleted
  • Multiple new reactions: google.workspace.chat.reaction.v1.batchCreated
  • Multiple deleted reactions: google.workspace.chat.reaction.v1.batchDeleted

Supported event types about the space :

  • Updated space: google.workspace.chat.space.v1.updated
  • Multiple space updates: google.workspace.chat.space.v1.batchUpdated

Union field payload .

payload can be only one of the following:

message_created_event_data

MessageCreatedEventData

Event payload for a new message.

Event type: google.workspace.chat.message.v1.created

message_updated_event_data

MessageUpdatedEventData

Event payload for an updated message.

Event type: google.workspace.chat.message.v1.updated

message_deleted_event_data

MessageDeletedEventData

Event payload for a deleted message.

Event type: google.workspace.chat.message.v1.deleted

message_batch_created_event_data

MessageBatchCreatedEventData

Event payload for multiple new messages.

Event type: google.workspace.chat.message.v1.batchCreated

message_batch_updated_event_data

MessageBatchUpdatedEventData

Event payload for multiple updated messages.

Event type: google.workspace.chat.message.v1.batchUpdated

message_batch_deleted_event_data

MessageBatchDeletedEventData

Event payload for multiple deleted messages.

Event type: google.workspace.chat.message.v1.batchDeleted

space_updated_event_data

SpaceUpdatedEventData

Event payload for a space update.

Event type: google.workspace.chat.space.v1.updated

space_batch_updated_event_data

SpaceBatchUpdatedEventData

Event payload for multiple updates to a space.

Event type: google.workspace.chat.space.v1.batchUpdated

membership_created_event_data

MembershipCreatedEventData

Event payload for a new membership.

Event type: google.workspace.chat.membership.v1.created

membership_updated_event_data

MembershipUpdatedEventData

Event payload for an updated membership.

Event type: google.workspace.chat.membership.v1.updated

membership_deleted_event_data

MembershipDeletedEventData

Event payload for a deleted membership.

Event type: google.workspace.chat.membership.v1.deleted

membership_batch_created_event_data

MembershipBatchCreatedEventData

Event payload for multiple new memberships.

Event type: google.workspace.chat.membership.v1.batchCreated

membership_batch_updated_event_data

MembershipBatchUpdatedEventData

Event payload for multiple updated memberships.

Event type: google.workspace.chat.membership.v1.batchUpdated

membership_batch_deleted_event_data

MembershipBatchDeletedEventData

Event payload for multiple deleted memberships.

Event type: google.workspace.chat.membership.v1.batchDeleted

reaction_created_event_data

ReactionCreatedEventData

Event payload for a new reaction.

Event type: google.workspace.chat.reaction.v1.created

reaction_deleted_event_data

ReactionDeletedEventData

Event payload for a deleted reaction.

Event type: google.workspace.chat.reaction.v1.deleted

reaction_batch_created_event_data

ReactionBatchCreatedEventData

Event payload for multiple new reactions.

Event type: google.workspace.chat.reaction.v1.batchCreated

reaction_batch_deleted_event_data

ReactionBatchDeletedEventData

Event payload for multiple deleted reactions.

Event type: google.workspace.chat.reaction.v1.batchDeleted

SpaceReadState

A user's read state within a space, used to identify read and unread messages.

ক্ষেত্র
name

string

Resource name of the space read state.

Format: users/{user}/spaces/{space}/spaceReadState

last_read_time

Timestamp

ঐচ্ছিক। The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

SpaceUpdatedEventData

Event payload for an updated space.

Event type: google.workspace.chat.space.v1.updated

ক্ষেত্র
space

Space

The updated space.

থ্রেড

A thread in a Google Chat space. For example usage, see Start or reply to a message thread .

If you specify a thread when creating a message, you can set the messageReplyOption field to determine what happens if no matching thread is found.

ক্ষেত্র
name

string

Resource name of the thread.

Example: spaces/{space}/threads/{thread}

thread_key

string

ঐচ্ছিক। Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.

This ID is unique to the Chat app that sets it. For example, if multiple Chat apps create a message using the same thread key, the messages are posted in different threads. To reply in a thread created by a person or another Chat app, specify the thread name field instead.

ThreadReadState

A user's read state within a thread, used to identify read and unread messages.

ক্ষেত্র
name

string

Resource name of the thread read state.

Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

last_read_time

Timestamp

The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread.

UpdateMembershipRequest

Request message for updating a membership.

ক্ষেত্র
membership

Membership

প্রয়োজন। The membership to update. Only fields specified by update_mask are updated.

update_mask

FieldMask

প্রয়োজন। The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role
use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.memberships OAuth 2.0 scope .

UpdateMessageRequest

Request to update a message.

ক্ষেত্র
message

Message

প্রয়োজন। Message with fields updated.

update_mask

FieldMask

প্রয়োজন। The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

allow_missing

bool

ঐচ্ছিক। If true and the message isn't found, a new message is created and updateMask is ignored. The specified message ID must be client-assigned or the request fails.

UpdateSpaceReadStateRequest

Request message for UpdateSpaceReadState API.

ক্ষেত্র
space_read_state

SpaceReadState

প্রয়োজন। The space read state and fields to update.

Only supports updating read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState .

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState .

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState .

Format: users/{user}/spaces/{space}/spaceReadState

update_mask

FieldMask

প্রয়োজন। The field paths to update. Currently supported field paths:

  • last_read_time

When the last_read_time is before the latest message create time, the space appears as unread in the UI.

To mark the space as read, set last_read_time to any value later (larger) than the latest message create time. The last_read_time is coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.

UpdateSpaceRequest

A request to update a single space.

ক্ষেত্র
space

Space

প্রয়োজন। Space with fields to be updated. Space.name must be populated in the form of spaces/{space} . Only fields specified by update_mask are updated.

update_mask

FieldMask

প্রয়োজন। The updated field paths, comma separated if there are multiple.

You can update the following fields for a space:

  • space_details

  • display_name : Only supports updating the display name for spaces where spaceType field is SPACE . If you receive the error message ALREADY_EXISTS , try a different value. An existing space within the Google Workspace organization might already use this display name.

  • space_type : Only supports changing a GROUP_CHAT space type to SPACE . Include display_name together with space_type in the update mask and ensure that the specified space has a non-empty display name and the SPACE space type. Including the space_type mask and the SPACE type in the specified space when updating the display name is optional if the existing space already has the SPACE type. Trying to update the space type in other ways results in an invalid argument error. space_type is not supported with admin access.

  • space_history_state : Updates space history settings by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. space_history_state is not supported with admin access.

  • access_settings.audience : Updates the access setting of who can discover the space, join the space, and preview the messages in named space where spaceType field is SPACE . If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in import mode . To learn more, see Make a space discoverable to specific users . access_settings.audience is not supported with admin access.

  • Developer Preview: Supports changing the permission settings of a space, supported field paths include: permission_settings.manage_members_and_groups , permission_settings.modify_space_details , permission_settings.toggle_history , permission_settings.use_at_mention_all , permission_settings.manage_apps , permission_settings.manage_webhooks , permission_settings.reply_messages (Warning: mutually exclusive with all other non-permission settings field paths). permission_settings is not supported with admin access.

use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.spaces OAuth 2.0 scope .

Some FieldMask values are not supported using admin access. For details, see the description of update_mask .

ব্যবহারকারী

Google চ্যাটে একজন ব্যবহারকারী। When returned as an output from a request, if your Chat app authenticates as a user , the output for a User resource only populates the user's name and type .

ক্ষেত্র
name

string

Resource name for a Google Chat user .

Format: users/{user} . users/app can be used as an alias for the calling app bot user.

For human users , {user} is the same user identifier as:

  • the id for the Person in the People API. উদাহরণ স্বরূপ, Chat API-এ users/123456789 একই ব্যক্তিকে প্রতিনিধিত্ব করে যেটি People API-তে 123456789 ব্যক্তি প্রোফাইল আইডি।

  • the id for a user in the Admin SDK Directory API.

  • the user's email address can be used as an alias for {user} in API requests. For example, if the People API Person profile ID for user@example.com is 123456789 , you can use users/user@example.com as an alias to reference users/123456789 . Only the canonical resource name (for example users/123456789 ) will be returned from the API.

display_name

string

Output only. ব্যবহারকারীর প্রদর্শনের নাম।

domain_id

string

ব্যবহারকারীর Google Workspace ডোমেনের অনন্য শনাক্তকারী।

type

Type

ব্যবহারকারীর ধরন।

is_anonymous

bool

Output only. When true , the user is deleted or their profile is not visible.

টাইপ

Enums
TYPE_UNSPECIFIED Default value for the enum. ব্যবহার করবেন না।
HUMAN মানব ব্যবহারকারী।
BOT চ্যাট অ্যাপ ব্যবহারকারী।

UserMentionMetadata

Annotation metadata for user mentions (@).

ক্ষেত্র
user

User

The user mentioned.

type

Type

The type of user mention.

টাইপ

Enums
TYPE_UNSPECIFIED Default value for the enum. ব্যবহার করবেন না।
ADD Add user to space.
MENTION Mention user in space.

WidgetMarkup

A widget is a UI element that presents text and images.

ক্ষেত্র
buttons[]

Button

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

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

TextParagraph

Display a text paragraph in this widget.

image

Image

Display an image in this widget.

key_value

KeyValue

Display a key value item in this widget.

বোতাম

একটি বোতাম। Can be a text button or an image button.

ক্ষেত্র

Union field type .

type can be only one of the following:

text_button

TextButton

A button with text and onclick action.

image_button

ImageButton

A button with image and onclick action.

FormAction

A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.

ক্ষেত্র
action_method_name

string

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.

parameters[]

ActionParameter

List of action parameters.

ActionParameter

List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use action method = snooze() , passing the snooze type and snooze time in the list of string parameters.

ক্ষেত্র
key

string

The name of the parameter for the action script.

value

string

The value of the parameter.

আইকন

The set of supported icons.

Enums
ICON_UNSPECIFIED
AIRPLANE
BOOKMARK
BUS
CAR
CLOCK
CONFIRMATION_NUMBER_ICON
DOLLAR
DESCRIPTION
EMAIL
EVENT_PERFORMER
EVENT_SEAT
FLIGHT_ARRIVAL
FLIGHT_DEPARTURE
HOTEL
HOTEL_ROOM_TYPE
INVITE
MAP_PIN
MEMBERSHIP
MULTIPLE_PEOPLE
OFFER
PERSON
PHONE
RESTAURANT_ICON
SHOPPING_CART
STAR
STORE
TICKET
TRAIN
VIDEO_CAMERA
VIDEO_PLAY

ছবি

An image that's specified by a URL and can have an onclick action.

ক্ষেত্র
image_url

string

ছবির URL.

on_click

OnClick

The onclick action.

aspect_ratio

double

The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.

ইমেজ বোতাম

An image button with an onclick action.

ক্ষেত্র
on_click

OnClick

The onclick action.

name

string

The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

Union field icons . The icon can be specified by an Icon enum or a URL. icons can be only one of the following:
icon

Icon

The icon specified by an enum that indices to an icon provided by Chat API.

icon_url

string

The icon specified by a URL.

মূলমূল্য

A UI element contains a key (label) and a value (content). This element can also contain some actions such as onclick button.

ক্ষেত্র
top_label

string

The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

content

string

The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

content_multiline

bool

If the content should be multiline.

bottom_label

string

The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

on_click

OnClick

The onclick action. Only the top label, bottom label, and content region are clickable.

Union field icons . At least one of icons, top_label and bottom_label must be defined. icons can be only one of the following:
icon

Icon

An enum value that's replaced by the Chat API with the corresponding icon image.

icon_url

string

The icon specified by a URL.

Union field control . A control widget. You can set either button or switch_widget , but not both. control can be only one of the following:
button

Button

A button that can be clicked to trigger an action.

অনক্লিক

An onclick action (for example, open a link).

ক্ষেত্র

Union field data .

data can be only one of the following:

action

FormAction

A form action is triggered by this onclick action if specified.

টেক্সট বোতাম

A button with text and onclick action.

ক্ষেত্র
text

string

The text of the button.

on_click

OnClick

The onclick action of the button.

পাঠ্য অনুচ্ছেদ

পাঠ্যের একটি অনুচ্ছেদ। Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

ক্ষেত্র
text

string

,

সূচক

ChatService

Enables developers to build Chat apps and integrations on Google Chat Platform.

CompleteImportSpace

rpc CompleteImportSpace( CompleteImportSpaceRequest ) returns ( CompleteImportSpaceResponse )

Completes the import process for the specified space and makes it visible to users. Requires app authentication and domain-wide delegation. For more information, see Authorize Google Chat apps to import data .

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chat.import

For more information, see the Authorization guide .

CreateMembership

rpc CreateMembership( CreateMembershipRequest ) returns ( Membership )

Creates a human membership or app membership for the calling app. Creating memberships for other apps isn't supported. For an example, see Invite or add a user or a Google Chat app to a space . When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. Requires user authentication .

To specify the member to add, set the membership.member.name for the human or app member, or set the membership.group_member.name for the group member.

  • To add the calling app to a space or a direct message between two human users, use users/app . Unable to add other apps to the space.

  • To add a human user, use users/{user} , where {user} can be the email address for the user. For users in the same Workspace organization {user} can also be the id for the person from the People API, or the id for the user in the Directory API. For example, if the People API Person profile ID for user@example.com is 123456789 , you can add the user to the space by setting the membership.member.name to users/user@example.com or users/123456789 .

  • To add or invite a Google group in a named space, use groups/{group} , where {group} is the id for the group from the Cloud Identity Groups API. For example, you can use Cloud Identity Groups lookup API to retrieve the ID 123456789 for group email group@example.com , then you can add or invite the group to a named space by setting the membership.group_member.name to groups/123456789 . Group email is not supported, and Google groups can only be added as members in named spaces.

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.app

For more information, see the Authorization guide .

CreateMessage

rpc CreateMessage( CreateMessageRequest ) returns ( Message )

Creates a message in a Google Chat space. The maximum message size, including text and cards, is 32,000 bytes. For an example, see Send a message .

Calling this method requires authentication and supports the following authentication types:

  • For text messages, user authentication or app authentication are supported.
  • For card messages, only app authentication is supported. (Only Chat apps can create card messages.)
Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.create

For more information, see the Authorization guide .

CreateReaction

rpc CreateReaction( CreateReactionRequest ) returns ( Reaction )

Creates a reaction and adds it to a message. Only unicode emojis are supported. For an example, see Add a reaction to a message . Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.create

For more information, see the Authorization guide .

স্পেস তৈরি করুন

rpc CreateSpace( CreateSpaceRequest ) returns ( Space )

Creates a named space. Spaces grouped by topics aren't supported. For an example, see Create a space .

If you receive the error message ALREADY_EXISTS when creating a space, try a different displayName . An existing space within the Google Workspace organization might already use this display name.

Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.create

For more information, see the Authorization guide .

DeleteMembership

rpc DeleteMembership( DeleteMembershipRequest ) returns ( Membership )

Deletes a membership. For an example, see Remove a user or a Google Chat app from a space .

Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.app

For more information, see the Authorization guide .

বার্তা মুছুন

rpc DeleteMessage( DeleteMessageRequest ) returns ( Empty )

একটি বার্তা মুছে দেয়। For an example, see Delete a message .

Requires authentication . Supports app authentication and user authentication . When using app authentication, requests can only delete messages created by the calling Chat app.

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages

For more information, see the Authorization guide .

DeleteReaction

rpc DeleteReaction( DeleteReactionRequest ) returns ( Empty )

Deletes a reaction to a message. Only unicode emojis are supported. For an example, see Delete a reaction . Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.reactions

For more information, see the Authorization guide .

DeleteSpace

rpc DeleteSpace( DeleteSpaceRequest ) returns ( Empty )

Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see Delete a space . Requires user authentication from a user who has permission to delete the space.

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.delete
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.delete

For more information, see the Authorization guide .

FindDirectMessage

rpc FindDirectMessage( FindDirectMessageRequest ) returns ( Space )

Returns the existing direct message with the specified user. If no direct message space is found, returns a 404 NOT_FOUND error. For an example, see Find a direct message .

With user authentication , returns the direct message space between the specified user and the authenticated user.

With app authentication , returns the direct message space between the specified user and the calling Chat app.

Requires user authentication or app authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.bot

For more information, see the Authorization guide .

সংযুক্তি পান

rpc GetAttachment( GetAttachmentRequest ) returns ( Attachment )

Gets the metadata of a message attachment. The attachment data is fetched using the media API . For an example, see Get metadata about a message attachment . Requires app authentication .

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chat.bot

For more information, see the Authorization guide .

GetMembership

rpc GetMembership( GetMembershipRequest ) returns ( Membership )

Returns details about a membership. For an example, see Get details about a user's or Google Chat app's membership .

Requires authentication . Supports app authentication and user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.admin.memberships.readonly
  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly

For more information, see the Authorization guide .

GetMessage

rpc GetMessage( GetMessageRequest ) returns ( Message )

Returns details about a message. For an example, see Get details about a message .

Requires authentication . Supports app authentication and user authentication .

Note: Might return a message from a blocked member or space.

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly

For more information, see the Authorization guide .

GetSpace

rpc GetSpace( GetSpaceRequest ) returns ( Space )

Returns details about a space. For an example, see Get details about a space .

Requires authentication . Supports app authentication and user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.spaces
  • https://www.googleapis.com/auth/chat.admin.spaces.readonly
  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.bot

For more information, see the Authorization guide .

GetSpaceEvent

rpc GetSpaceEvent( GetSpaceEventRequest ) returns ( SpaceEvent )

Returns an event from a Google Chat space. The event payload contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated Message resource in the event payload.

Requires user authentication . To get an event, the authenticated user must be a member of the space.

For an example, see Get details about an event from a Google Chat space .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly

For more information, see the Authorization guide .

GetSpaceReadState

rpc GetSpaceReadState( GetSpaceReadStateRequest ) returns ( SpaceReadState )

Returns details about a user's read state within a space, used to identify read and unread messages. For an example, see Get details about a user's space read state .

Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.users.readstate
  • https://www.googleapis.com/auth/chat.users.readstate.readonly

For more information, see the Authorization guide .

GetThreadReadState

rpc GetThreadReadState( GetThreadReadStateRequest ) returns ( ThreadReadState )

Returns details about a user's read state within a thread, used to identify read and unread messages. For an example, see Get details about a user's thread read state .

Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.users.readstate
  • https://www.googleapis.com/auth/chat.users.readstate.readonly

For more information, see the Authorization guide .

ListMemberships

rpc ListMemberships( ListMembershipsRequest ) returns ( ListMembershipsResponse )

Lists memberships in a space. For an example, see List users and Google Chat apps in a space . Listing memberships with app authentication lists memberships in spaces that the Chat app has access to, but excludes Chat app memberships, including its own. Listing memberships with User authentication lists memberships in spaces that the authenticated user has access to.

Requires authentication . Supports app authentication and user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.admin.memberships.readonly
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly

For more information, see the Authorization guide .

ListMessages

rpc ListMessages( ListMessagesRequest ) returns ( ListMessagesResponse )

Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see List messages . Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly

For more information, see the Authorization guide .

ListReactions

rpc ListReactions( ListReactionsRequest ) returns ( ListReactionsResponse )

Lists reactions to a message. For an example, see List reactions for a message . Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly

For more information, see the Authorization guide .

ListSpaceEvents

rpc ListSpaceEvents( ListSpaceEventsRequest ) returns ( ListSpaceEventsResponse )

Lists events from a Google Chat space. For each event, the payload contains the most recent version of the Chat resource. For example, if you list events about new space members, the server returns Membership resources that contain the latest membership details. If new members were removed during the requested period, the event payload contains an empty Membership resource.

Requires user authentication . To list events, the authenticated user must be a member of the space.

For an example, see List events from a Google Chat space .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.messages
  • https://www.googleapis.com/auth/chat.messages.readonly
  • https://www.googleapis.com/auth/chat.memberships
  • https://www.googleapis.com/auth/chat.memberships.readonly
  • https://www.googleapis.com/auth/chat.messages.reactions
  • https://www.googleapis.com/auth/chat.messages.reactions.readonly

For more information, see the Authorization guide .

ListSpaces

rpc ListSpaces( ListSpacesRequest ) returns ( ListSpacesResponse )

Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see List spaces .

Requires authentication . Supports app authentication and user authentication .

Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.

To list all named spaces by Google Workspace organization, use the spaces.search() method using Workspace administrator privileges instead.

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.readonly
  • https://www.googleapis.com/auth/chat.bot

For more information, see the Authorization guide .

SearchSpaces

rpc SearchSpaces( SearchSpacesRequest ) returns ( SearchSpacesResponse )

Returns a list of spaces based on a user's search. Requires user authentication . The user must be an administrator for the Google Workspace organization. In the request, set use_admin_access to true .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.spaces
  • https://www.googleapis.com/auth/chat.admin.spaces.readonly

For more information, see the Authorization guide .

SetUpSpace

rpc SetUpSpace( SetUpSpaceRequest ) returns ( Space )

Creates a space and adds specified users to it. The calling user is automatically added to the space, and shouldn't be specified as a membership in the request. For an example, see Set up a space with initial members .

To specify the human members to add, add memberships with the appropriate membership.member.name . To add a human user, use users/{user} , where {user} can be the email address for the user. For users in the same Workspace organization {user} can also be the id for the person from the People API, or the id for the user in the Directory API. For example, if the People API Person profile ID for user@example.com is 123456789 , you can add the user to the space by setting the membership.member.name to users/user@example.com or users/123456789 .

To specify the Google groups to add, add memberships with the appropriate membership.group_member.name . To add or invite a Google group, use groups/{group} , where {group} is the id for the group from the Cloud Identity Groups API. For example, you can use Cloud Identity Groups lookup API to retrieve the ID 123456789 for group email group@example.com , then you can add the group to the space by setting the membership.group_member.name to groups/123456789 . Group email is not supported, and Google groups can only be added as members in named spaces.

For a named space or group chat, if the caller blocks, or is blocked by some members, or doesn't have permission to add some members, then those members aren't added to the created space.

To create a direct message (DM) between the calling user and another human user, specify exactly one membership to represent the human user. If one user blocks the other, the request fails and the DM isn't created.

To create a DM between the calling user and the calling app, set Space.singleUserBotDm to true and don't specify any memberships. You can only use this method to set up a DM with the calling app. To add the calling app as a member of a space or an existing DM between two human users, see Invite or add a user or app to a space .

If a DM already exists between two users, even when one user blocks the other at the time a request is made, then the existing DM is returned.

Spaces with threaded replies aren't supported. If you receive the error message ALREADY_EXISTS when setting up a space, try a different displayName . An existing space within the Google Workspace organization might already use this display name.

Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.spaces
  • https://www.googleapis.com/auth/chat.spaces.create

For more information, see the Authorization guide .

UpdateMembership

rpc UpdateMembership( UpdateMembershipRequest ) returns ( Membership )

Updates a membership. For an example, see Update a user's membership in a space .

Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.memberships
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.memberships

For more information, see the Authorization guide .

UpdateMessage

rpc UpdateMessage( UpdateMessageRequest ) returns ( Message )

Updates a message. There's a difference between the patch and update methods. The patch method uses a patch request while the update method uses a put request. We recommend using the patch method. For an example, see Update a message .

Requires authentication . Supports app authentication and user authentication . When using app authentication, requests can only update messages created by the calling Chat app.

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.bot
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.messages

For more information, see the Authorization guide .

UpdateSpace

rpc UpdateSpace( UpdateSpaceRequest ) returns ( Space )

Updates a space. For an example, see Update a space .

If you're updating the displayName field and receive the error message ALREADY_EXISTS , try a different display name.. An existing space within the Google Workspace organization might already use this display name.

Requires user authentication .

Authorization scopes

নিম্নলিখিত OAuth সুযোগগুলির মধ্যে একটি প্রয়োজন:

  • https://www.googleapis.com/auth/chat.admin.spaces
  • https://www.googleapis.com/auth/chat.import
  • https://www.googleapis.com/auth/chat.spaces

For more information, see the Authorization guide .

UpdateSpaceReadState

rpc UpdateSpaceReadState( UpdateSpaceReadStateRequest ) returns ( SpaceReadState )

Updates a user's read state within a space, used to identify read and unread messages. For an example, see Update a user's space read state .

Requires user authentication .

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/chat.users.readstate

For more information, see the Authorization guide .

AccessoryWidget

One or more interactive widgets that appear at the bottom of a message. For details, see Add interactive widgets at the bottom of a message .

ক্ষেত্র
Union field action . The type of action. action can be only one of the following:
button_list

ButtonList

A list of buttons.

ActionResponse

Parameters that a Chat app can use to configure how its response is posted.

ক্ষেত্র
type

ResponseType

শুধুমাত্র ইনপুট। The type of Chat app response.

url

string

শুধুমাত্র ইনপুট। URL for users to authenticate or configure. (Only for REQUEST_CONFIG response types.)

dialog_action

DialogAction

শুধুমাত্র ইনপুট। A response to an interaction event related to a dialog . Must be accompanied by ResponseType.Dialog .

updated_widget

UpdatedWidget

শুধুমাত্র ইনপুট। The response of the updated widget.

রেসপন্স টাইপ

The type of Chat app response.

Enums
TYPE_UNSPECIFIED Default type that's handled as NEW_MESSAGE .
NEW_MESSAGE Post as a new message in the topic.
UPDATE_MESSAGE Update the Chat app's message. This is only permitted on a CARD_CLICKED event where the message sender type is BOT .
UPDATE_USER_MESSAGE_CARDS Update the cards on a user's message. This is only permitted as a response to a MESSAGE event with a matched url, or a CARD_CLICKED event where the message sender type is HUMAN . Text is ignored.
REQUEST_CONFIG Privately ask the user for additional authentication or configuration.
DIALOG Presents a dialog .
UPDATE_WIDGET Widget text autocomplete options query.

SelectionItems

List of widget autocomplete results.

ক্ষেত্র
items[]

SelectionItem

An array of the SelectionItem objects.

UpdatedWidget

The response of the updated widget. Used to provide autocomplete options for a widget.

ক্ষেত্র
widget

string

The ID of the updated widget. The ID must match the one for the widget that triggered the update request.

Union field updated_widget . The widget updated in response to a user action. updated_widget can be only one of the following:
suggestions

SelectionItems

List of widget autocomplete results

ActionStatus

Represents the status for a request to either invoke or submit a dialog .

ক্ষেত্র
status_code

Code

স্ট্যাটাস কোড।

user_facing_message

string

The message to send users about the status of their request. If unset, a generic message based on the status_code is sent.

টীকা

Output only. Annotations associated with the plain-text body of the message. To add basic formatting to a text message, see Format text messages .

Example plain-text message body:

Hello @FooBot how are you!"

The corresponding annotations metadata:

"annotations":[{
  "type":"USER_MENTION",
  "startIndex":6,
  "length":7,
  "userMention": {
    "user": {
      "name":"users/{user}",
      "displayName":"FooBot",
      "avatarUrl":"https://goo.gl/aeDtrS",
      "type":"BOT"
    },
    "type":"MENTION"
   }
}]
ক্ষেত্র
type

AnnotationType

The type of this annotation.

length

int32

Length of the substring in the plain-text message body this annotation corresponds to.

start_index

int32

Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.

Union field metadata . Additional metadata about the annotation. metadata can be only one of the following:
user_mention

UserMentionMetadata

The metadata of user mention.

slash_command

SlashCommandMetadata

The metadata for a slash command.

টীকা প্রকার

Type of the annotation.

Enums
ANNOTATION_TYPE_UNSPECIFIED Default value for the enum. ব্যবহার করবেন না।
USER_MENTION A user is mentioned.
SLASH_COMMAND A slash command is invoked.

AttachedGif

A GIF image that's specified by a URL.

ক্ষেত্র
uri

string

Output only. The URL that hosts the GIF image.

সংযুক্তি

An attachment in Google Chat.

ক্ষেত্র
name

string

Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment} .

content_name

string

Output only. The original file name for the content, not the full path.

content_type

string

Output only. The content type (MIME type) of the file.

thumbnail_uri

string

Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps shouldn't use this URL to download attachment content.

download_uri

string

Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps shouldn't use this URL to download attachment content.

source

Source

Output only. The source of the attachment.

Union field data_ref . The data reference to the attachment. data_ref can be only one of the following:
attachment_data_ref

AttachmentDataRef

A reference to the attachment data. This field is used with the media API to download the attachment data.

drive_data_ref

DriveDataRef

Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.

উৎস

The source of the attachment.

Enums
SOURCE_UNSPECIFIED সংরক্ষিত
DRIVE_FILE The file is a Google Drive file.
UPLOADED_CONTENT The file is uploaded to Chat.

AttachmentDataRef

A reference to the attachment data.

ক্ষেত্র
resource_name

string

The resource name of the attachment data. This field is used with the media API to download the attachment data.

attachment_upload_token

string

Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.

CardWithId

A card in a Google Chat message.

Only Chat apps can create cards. If your Chat app authenticates as a user , the message can't contain cards.

Design and preview cards with the Card Builder.

Open the Card Builder

ক্ষেত্র
card_id

string

Required if the message contains multiple cards. A unique identifier for a card in a message.

card

Card

একটি কার্ড। Maximum size is 32 KB.

ChatSpaceLinkData

Data for Chat space links.

ক্ষেত্র
space

string

The space of the linked Chat space resource.

Format: spaces/{space}

thread

string

The thread of the linked Chat space resource.

Format: spaces/{space}/threads/{thread}

message

string

The message of the linked Chat space resource.

Format: spaces/{space}/messages/{message}

CompleteImportSpaceRequest

Request message for completing the import process for a space.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the import mode space.

Format: spaces/{space}

CompleteImportSpaceResponse

Response message for completing the import process for a space.

ক্ষেত্র
space

Space

The import mode space.

ContextualAddOnMarkup

This type has no fields.

The markup for developers to specify the contents of a contextual AddOn.

কার্ড

A card is a UI element that can contain UI widgets such as text and images.

ক্ষেত্র
header

CardHeader

The header of the card. A header usually contains a title and an image.

sections[]

Section

Sections are separated by a line divider.

card_actions[]

CardAction

The actions of this card.

name

string

Name of the card.

CardAction

A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.

Not supported by Google Chat apps.

ক্ষেত্র
action_label

string

The label used to be displayed in the action menu item.

on_click

OnClick

The onclick action for this action item.

কার্ডহেডার

ক্ষেত্র
title

string

The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.

subtitle

string

The subtitle of the card header.

image_style

ImageStyle

The image's type (for example, square border or circular border).

image_url

string

The URL of the image in the card header.

ইমেজ স্টাইল

Enums
IMAGE_STYLE_UNSPECIFIED
IMAGE Square border.
AVATAR Circular border.

ধারা

A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there's currently no need for layout properties (for example, float).

ক্ষেত্র
header

string

The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

widgets[]

WidgetMarkup

A section must contain at least one widget.

CreateMembershipRequest

Request message for creating a membership.

ক্ষেত্র
parent

string

প্রয়োজন। The resource name of the space for which to create the membership.

Format: spaces/{space}

membership

Membership

প্রয়োজন। The membership relation to create. The memberType field must contain a user with the user.name and user.type fields populated. The server will assign a resource name and overwrite anything specified. When a Chat app creates a membership relation for a human user, it must use the chat.memberships scope, set user.type to HUMAN , and set user.name with format users/{user} , where {user} can be the email address for the user. For users in the same Workspace organization {user} can also be the id of the person from the People API, or the id for the user in the Directory API. For example, if the People API Person profile ID for user@example.com is 123456789 , you can add the user to the space by setting the membership.member.name to users/user@example.com or users/123456789 . When a Chat app creates a membership relation for itself, it must use the chat.memberships.app scope, set user.type to BOT , and set user.name to users/app .

use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.memberships OAuth 2.0 scope .

Creating app memberships or creating memberships for users outside the administrator's Google Workspace organization isn't supported using admin access.

মেসেজ রিকোয়েস্ট তৈরি করুন

Creates a message.

ক্ষেত্র
parent

string

প্রয়োজন। The resource name of the space in which to create a message.

Format: spaces/{space}

message

Message

প্রয়োজন। Message body.

thread_key
(deprecated)

string

ঐচ্ছিক। Deprecated: Use thread.thread_key instead. ID for the thread. Supports up to 4000 characters. To start or add to a thread, create a message and specify a threadKey or the thread.name . For example usage, see Start or reply to a message thread .

request_id

string

ঐচ্ছিক। A unique request ID for this message. Specifying an existing request ID returns the message created with that ID instead of creating a new message.

message_reply_option

MessageReplyOption

ঐচ্ছিক। Specifies whether a message starts a thread or replies to one. Only supported in named spaces.

message_id

string

ঐচ্ছিক। A custom ID for a message. Lets Chat apps get, update, or delete a message without needing to store the system-assigned ID in the message's resource name (represented in the message name field).

The value for this field must meet the following requirements:

  • Begins with client- . For example, client-custom-name is a valid custom ID, but custom-name is not.
  • Contains up to 63 characters and only lowercase letters, numbers, and hyphens.
  • Is unique within a space. A Chat app can't use the same custom ID for different messages.

For details, see Name a message .

MessageReplyOption

Specifies how to reply to a message. More states might be added in the future.

Enums
MESSAGE_REPLY_OPTION_UNSPECIFIED ডিফল্ট Starts a new thread. Using this option ignores any thread ID or thread_key that's included.
REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD Creates the message as a reply to the thread specified by thread ID or thread_key . If it fails, the message starts a new thread instead.
REPLY_MESSAGE_OR_FAIL Creates the message as a reply to the thread specified by thread ID or thread_key . If a new thread_key is used, a new thread is created. If the message creation fails, a NOT_FOUND error is returned instead.

CreateReactionRequest

Creates a reaction to a message.

ক্ষেত্র
parent

string

প্রয়োজন। The message where the reaction is created.

Format: spaces/{space}/messages/{message}

reaction

Reaction

প্রয়োজন। The reaction to create.

CreateSpaceRequest

A request to create a named space.

ক্ষেত্র
space

Space

প্রয়োজন। The displayName and spaceType fields must be populated. Only SpaceType.SPACE is supported.

If you receive the error message ALREADY_EXISTS , try a different displayName . An existing space within the Google Workspace organization might already use this display name.

The space name is assigned on the server so anything specified in this field will be ignored.

request_id

string

ঐচ্ছিক। A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.

CustomEmoji

Represents a custom emoji.

ক্ষেত্র
uid

string

Output only. Unique key for the custom emoji resource.

DeleteMembershipRequest

Request to delete a membership in a space.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships.

When deleting a human membership, requires the chat.memberships scope and spaces/{space}/members/{member} format. You can use the email as an alias for {member} . For example, spaces/{space}/members/example@gmail.com where example@gmail.com is the email of the Google Chat user.

When deleting an app membership, requires the chat.memberships.app scope and spaces/{space}/members/app format.

Format: spaces/{space}/members/{member} or spaces/{space}/members/app .

use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.memberships OAuth 2.0 scope .

Deleting app memberships in a space isn't supported using admin access.

DeleteMessageRequest

Request to delete a message.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message} . For details, see Name a message .

force

bool

When true , deleting a message also deletes its threaded replies. When false , if a message has threaded replies, deletion fails.

Only applies when authenticating as a user . Has no effect when authenticating as a Chat app .

DeleteReactionRequest

Deletes a reaction to a message.

ক্ষেত্র
name

string

প্রয়োজন। Name of the reaction to delete.

Format: spaces/{space}/messages/{message}/reactions/{reaction}

DeleteSpaceRequest

Request for deleting a space.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the space to delete.

Format: spaces/{space}

use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.delete OAuth 2.0 scope .

DeletionMetadata

Information about a deleted message. A message is deleted when delete_time is set.

ক্ষেত্র
deletion_type

DeletionType

Indicates who deleted the message.

DeletionType

Who deleted the message and how it was deleted.

Enums
DELETION_TYPE_UNSPECIFIED This value is unused.
CREATOR User deleted their own message.
SPACE_OWNER The space owner deleted the message.
ADMIN A Google Workspace admin deleted the message.
APP_MESSAGE_EXPIRY A Chat app deleted its own message when it expired.
CREATOR_VIA_APP A Chat app deleted the message on behalf of the user.
SPACE_OWNER_VIA_APP A Chat app deleted the message on behalf of the space owner.

ডায়ালগ

Wrapper around the card body of the dialog.

ক্ষেত্র
body

Card

শুধুমাত্র ইনপুট। Body of the dialog, which is rendered in a modal. Google Chat apps don't support the following card entities: DateTimePicker , OnChangeAction .

DialogAction

Contains a dialog and request status code.

ক্ষেত্র
action_status

ActionStatus

শুধুমাত্র ইনপুট। Status for a request to either invoke or submit a dialog . Displays a status and message to users, if necessary. For example, in case of an error or success.

Union field action . কর্ম সঞ্চালন. action can be only one of the following:
dialog

Dialog

শুধুমাত্র ইনপুট। Dialog for the request.

DriveDataRef

A reference to the data of a drive attachment.

ক্ষেত্র
drive_file_id

string

The ID for the drive file. Use with the Drive API.

DriveLinkData

Data for Google Drive links.

ক্ষেত্র
drive_data_ref

DriveDataRef

A DriveDataRef which references a Google Drive file.

mime_type

string

The mime type of the linked Google Drive resource.

ইমোজি

An emoji that is used as a reaction to a message.

ক্ষেত্র
Union field content . The content of the emoji. content can be only one of the following:
unicode

string

A basic emoji represented by a unicode string.

custom_emoji

CustomEmoji

Output only. A custom emoji.

EmojiReactionSummary

The number of people who reacted to a message with a specific emoji.

ক্ষেত্র
emoji

Emoji

Emoji associated with the reactions.

reaction_count

int32

The total number of reactions using the associated emoji.

FindDirectMessageRequest

A request to get direct message space based on the user resource.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the user to find direct message with.

Format: users/{user} , where {user} is either the id for the person from the People API, or the id for the user in the Directory API. For example, if the People API profile ID is 123456789 , you can find a direct message with that person by using users/123456789 as the name . When authenticated as a user , you can use the email as an alias for {user} . For example, users/example@gmail.com where example@gmail.com is the email of the Google Chat user.

GetAttachmentRequest

Request to get an attachment.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment} .

GetMembershipRequest

Request to get a membership of a space.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the membership to retrieve.

To get the app's own membership by using user authentication , you can optionally use spaces/{space}/members/app .

Format: spaces/{space}/members/{member} or spaces/{space}/members/app

When authenticated as a user , you can use the user's email as an alias for {member} . For example, spaces/{space}/members/example@gmail.com where example@gmail.com is the email of the Google Chat user.

use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.memberships or chat.admin.memberships.readonly OAuth 2.0 scopes .

Getting app memberships in a space isn't supported when using admin access.

GetMessageRequest

Request to get a message.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the message.

Format: spaces/{space}/messages/{message}

If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message} . For details, see Name a message .

GetSpaceEventRequest

Request message for getting a space event.

ক্ষেত্র
name

string

প্রয়োজন। The resource name of the space event.

Format: spaces/{space}/spaceEvents/{spaceEvent}

GetSpaceReadStateRequest

Request message for GetSpaceReadState API.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the space read state to retrieve.

Only supports getting read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState .

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState .

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState .

Format: users/{user}/spaces/{space}/spaceReadState

GetSpaceRequest

A request to return a single space.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the space, in the form spaces/{space} .

Format: spaces/{space}

use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.spaces or chat.admin.spaces.readonly OAuth 2.0 scopes .

GetThreadReadStateRequest

Request message for GetThreadReadStateRequest API.

ক্ষেত্র
name

string

প্রয়োজন। Resource name of the thread read state to retrieve.

Only supports getting read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/threads/{thread}/threadReadState .

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/threads/{thread}/threadReadState .

  • Their user id. For example, users/123456789/spaces/{space}/threads/{thread}/threadReadState .

Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

গ্রুপ

A Google Group in Google Chat.

ক্ষেত্র
name

string

Resource name for a Google Group.

Represents a group in Cloud Identity Groups API.

Format: groups/{group}

HistoryState

The history state for messages and spaces. Specifies how long messages and conversation threads are kept after creation.

Enums
HISTORY_STATE_UNSPECIFIED ডিফল্ট মান। ব্যবহার করবেন না।
HISTORY_OFF History off. Messages and threads are kept for 24 hours .
HISTORY_ON History on. The organization's Vault retention rules specify for how long messages and threads are kept.

ListMembershipsRequest

Request message for listing memberships.

ক্ষেত্র
parent

string

প্রয়োজন। The resource name of the space for which to fetch a membership list.

Format: spaces/{space}

page_size

int32

ঐচ্ছিক। The maximum number of memberships to return. The service might return fewer than this value.

If unspecified, at most 100 memberships are returned.

The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000.

Negative values return an INVALID_ARGUMENT error.

page_token

string

ঐচ্ছিক। A page token, received from a previous call to list memberships. Provide this parameter to retrieve the subsequent page.

When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

filter

string

ঐচ্ছিক। A query filter.

You can filter memberships by a member's role ( role ) and type ( member.type ).

To filter by role, set role to ROLE_MEMBER or ROLE_MANAGER .

To filter by type, set member.type to HUMAN or BOT . Developer Preview: You can also filter for member.type using the != operator.

To filter by both role and type, use the AND operator. To filter by either role or type, use the OR operator.

Either member.type = "HUMAN" or member.type != "BOT" is required when use_admin_access is set to true. Other member type filters will be rejected.

For example, the following queries are valid:

role = "ROLE_MANAGER" OR role = "ROLE_MEMBER"
member.type = "HUMAN" AND role = "ROLE_MANAGER"

member.type != "BOT"

The following queries are invalid:

member.type = "HUMAN" AND member.type = "BOT"
role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"

Invalid queries are rejected by the server with an INVALID_ARGUMENT error.

show_groups

bool

ঐচ্ছিক। When true , also returns memberships associated with a Google Group , in addition to other types of memberships. If a filter is set, Google Group memberships that don't match the filter criteria aren't returned.

show_invited

bool

ঐচ্ছিক। When true , also returns memberships associated with invited members, in addition to other types of memberships. If a filter is set, invited memberships that don't match the filter criteria aren't returned.

Currently requires user authentication .

use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires either the chat.admin.memberships.readonly or chat.admin.memberships OAuth 2.0 scope .

Listing app memberships in a space isn't supported when using admin access.

ListMembershipsResponse

Response to list memberships of the space.

ক্ষেত্র
memberships[]

Membership

Unordered list. List of memberships in the requested (or first) page.

next_page_token

string

A token that you can send as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

ListMessagesRequest

Lists messages in the specified space, that the user is a member of.

ক্ষেত্র
parent

string

প্রয়োজন। The resource name of the space to list messages from.

Format: spaces/{space}

page_size

int32

The maximum number of messages returned. The service might return fewer messages than this value.

If unspecified, at most 25 are returned.

The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000.

Negative values return an INVALID_ARGUMENT error.

page_token

string

Optional, if resuming from a previous query.

A page token received from a previous list messages call. Provide this parameter to retrieve the subsequent page.

When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

filter

string

A query filter.

You can filter messages by date ( create_time ) and thread ( thread.name ).

To filter messages by the date they were created, specify the create_time with a timestamp in RFC-3339 format and double quotation marks. For example, "2023-04-21T11:30:00-04:00" . You can use the greater than operator > to list messages that were created after a timestamp, or the less than operator < to list messages that were created before a timestamp. To filter messages within a time interval, use the AND operator between two timestamps.

To filter by thread, specify the thread.name , formatted as spaces/{space}/threads/{thread} . You can only specify one thread.name per query.

To filter by both thread and date, use the AND operator in your query.

For example, the following queries are valid:

create_time > "2012-04-21T11:30:00-04:00"

create_time > "2012-04-21T11:30:00-04:00" AND
  thread.name = spaces/AAAAAAAAAAA/threads/123

create_time > "2012-04-21T11:30:00+00:00" AND

create_time < "2013-01-01T00:00:00+00:00" AND
  thread.name = spaces/AAAAAAAAAAA/threads/123

thread.name = spaces/AAAAAAAAAAA/threads/123

Invalid queries are rejected by the server with an INVALID_ARGUMENT error.

order_by

string

Optional, if resuming from a previous query.

How the list of messages is ordered. Specify a value to order by an ordering operation. Valid ordering operation values are as follows:

  • ASC for ascending.

  • DESC for descending.

The default ordering is create_time ASC .

show_deleted

bool

Whether to include deleted messages. Deleted messages include deleted time and metadata about their deletion, but message content is unavailable.

ListMessages রেসপন্স

Response message for listing messages.

ক্ষেত্র
messages[]

Message

List of messages.

next_page_token

string

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

ListReactionsRequest

Lists reactions to a message.

ক্ষেত্র
parent

string

প্রয়োজন। The message users reacted to.

Format: spaces/{space}/messages/{message}

page_size

int32

ঐচ্ছিক। The maximum number of reactions returned. The service can return fewer reactions than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are changed to 200.

page_token

string

ঐচ্ছিক। (If resuming from a previous query.)

A page token received from a previous list reactions call. Provide this to retrieve the subsequent page.

When paginating, the filter value should match the call that provided the page token. Passing a different value might lead to unexpected results.

filter

string

ঐচ্ছিক। A query filter.

You can filter reactions by emoji (either emoji.unicode or emoji.custom_emoji.uid ) and user ( user.name ).

To filter reactions for multiple emojis or users, join similar fields with the OR operator, such as emoji.unicode = "🙂" OR emoji.unicode = "👍" and user.name = "users/AAAAAA" OR user.name = "users/BBBBBB" .

To filter reactions by emoji and user, use the AND operator, such as emoji.unicode = "🙂" AND user.name = "users/AAAAAA" .

If your query uses both AND and OR , group them with parentheses.

For example, the following queries are valid:

user.name = "users/{user}"
emoji.unicode = "🙂"
emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR emoji.unicode = "👍"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" AND user.name = "users/{user}"
(emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}")
AND user.name = "users/{user}"

The following queries are invalid:

emoji.unicode = "🙂" AND emoji.unicode = "👍"
emoji.unicode = "🙂" AND emoji.custom_emoji.uid = "{uid}"
emoji.unicode = "🙂" OR user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}" OR
user.name = "users/{user}"
emoji.unicode = "🙂" OR emoji.custom_emoji.uid = "{uid}"
AND user.name = "users/{user}"

Invalid queries are rejected by the server with an INVALID_ARGUMENT error.

ListReactionsResponse

Response to a list reactions request.

ক্ষেত্র
reactions[]

Reaction

List of reactions in the requested (or first) page.

next_page_token

string

Continuation token to retrieve the next page of results. It's empty for the last page of results.

ListSpaceEventsRequest

Request message for listing space events.

ক্ষেত্র
parent

string

প্রয়োজন। Resource name of the Google Chat space where the events occurred.

Format: spaces/{space} .

page_size

int32

ঐচ্ছিক। The maximum number of space events returned. The service might return fewer than this value.

Negative values return an INVALID_ARGUMENT error.

page_token

string

A page token, received from a previous list space events call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to list space events must match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

filter

string

প্রয়োজন। A query filter.

You must specify at least one event type ( event_type ) using the has : operator. To filter by multiple event types, use the OR operator. Omit batch event types in your filter. The request automatically returns any related batch events. For example, if you filter by new reactions ( google.workspace.chat.reaction.v1.created ), the server also returns batch new reactions events ( google.workspace.chat.reaction.v1.batchCreated ). For a list of supported event types, see the SpaceEvents reference documentation .

Optionally, you can also filter by start time ( start_time ) and end time ( end_time ):

  • start_time : Exclusive timestamp from which to start listing space events. You can list events that occurred up to 28 days ago. If unspecified, lists space events from the past 28 days.
  • end_time : Inclusive timestamp until which space events are listed. If unspecified, lists events up to the time of the request.

To specify a start or end time, use the equals = operator and format in RFC-3339 . To filter by both start_time and end_time , use the AND operator.

For example, the following queries are valid:

start_time="2023-08-23T19:20:33+00:00" AND
end_time="2023-08-23T19:21:54+00:00"
start_time="2023-08-23T19:20:33+00:00" AND
(event_types:"google.workspace.chat.space.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created")

The following queries are invalid:

start_time="2023-08-23T19:20:33+00:00" OR
end_time="2023-08-23T19:21:54+00:00"
event_types:"google.workspace.chat.space.v1.updated" AND
event_types:"google.workspace.chat.message.v1.created"

Invalid queries are rejected by the server with an INVALID_ARGUMENT error.

ListSpaceEventsResponse

Response message for listing space events.

ক্ষেত্র
space_events[]

SpaceEvent

Results are returned in chronological order (oldest event first).

next_page_token

string

Continuation token used to fetch more events. If this field is omitted, there are no subsequent pages.

ListSpacesRequest

A request to list the spaces the caller is a member of.

ক্ষেত্র
page_size

int32

ঐচ্ছিক। The maximum number of spaces to return. The service might return fewer than this value.

If unspecified, at most 100 spaces are returned.

The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000.

Negative values return an INVALID_ARGUMENT error.

page_token

string

ঐচ্ছিক। A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page.

When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.

filter

string

ঐচ্ছিক। A query filter.

You can filter spaces by the space type ( space_type ).

To filter by space type, you must specify valid enum value, such as SPACE or GROUP_CHAT (the space_type can't be SPACE_TYPE_UNSPECIFIED ). To query for multiple space types, use the OR operator.

For example, the following queries are valid:

space_type = "SPACE"
spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"

Invalid queries are rejected by the server with an INVALID_ARGUMENT error.

ListSpacesResponse

The response for a list spaces request.

ক্ষেত্র
spaces[]

Space

List of spaces in the requested (or first) page.

next_page_token

string

You can send a token as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

MatchedUrl

A matched URL in a Chat message. Chat apps can preview matched URLs. For more information, see Preview links .

ক্ষেত্র
url

string

Output only. The URL that was matched.

সদস্যপদ

Represents a membership relation in Google Chat, such as whether a user or Chat app is invited to, part of, or absent from a space.

ক্ষেত্র
name

string

Resource name of the membership, assigned by the server.

Format: spaces/{space}/members/{member}

state

MembershipState

Output only. State of the membership.

role

MembershipRole

ঐচ্ছিক। User's role within a Chat space, which determines their permitted actions in the space.

This field can only be used as input in UpdateMembership .

create_time

Timestamp

ঐচ্ছিক। অপরিবর্তনীয়। The creation time of the membership, such as when a member joined or was invited to join a space. This field is output only, except when used to import historical memberships in import mode spaces.

delete_time

Timestamp

ঐচ্ছিক। অপরিবর্তনীয়। The deletion time of the membership, such as when a member left or was removed from a space. This field is output only, except when used to import historical memberships in import mode spaces.

Union field memberType . Member associated with this membership. Other member types might be supported in the future. memberType can be only one of the following:
member

User

The Google Chat user or app the membership corresponds to. If your Chat app authenticates as a user , the output populates the user name and type .

group_member

Group

The Google Group the membership corresponds to.

MembershipRole

Represents a user's permitted actions in a Chat space. More enum values might be added in the future.

Enums
MEMBERSHIP_ROLE_UNSPECIFIED ডিফল্ট মান। For users : they aren't a member of the space, but can be invited. For Google Groups : they're always assigned this role (other enum values might be used in the future).
ROLE_MEMBER A member of the space. The user has basic permissions, like sending messages to the space. In 1:1 and unnamed group conversations, everyone has this role.
ROLE_MANAGER A space manager. The user has all basic permissions plus administrative permissions that let them manage the space, like adding or removing members. Only supported in SpaceType.SPACE .

MembershipState

Specifies the member's relationship with a space. Other membership states might be supported in the future.

Enums
MEMBERSHIP_STATE_UNSPECIFIED ডিফল্ট মান। ব্যবহার করবেন না।
JOINED The user is added to the space, and can participate in the space.
INVITED The user is invited to join the space, but hasn't joined it.
NOT_A_MEMBER The user doesn't belong to the space and doesn't have a pending invitation to join the space.

MembershipBatchCreatedEventData

Event payload for multiple new memberships.

Event type: google.workspace.chat.membership.v1.batchCreated

ক্ষেত্র
memberships[]

MembershipCreatedEventData

A list of new memberships.

MembershipBatchDeletedEventData

Event payload for multiple deleted memberships.

Event type: google.workspace.chat.membership.v1.batchDeleted

ক্ষেত্র
memberships[]

MembershipDeletedEventData

A list of deleted memberships.

MembershipBatchUpdatedEventData

Event payload for multiple updated memberships.

Event type: google.workspace.chat.membership.v1.batchUpdated

ক্ষেত্র
memberships[]

MembershipUpdatedEventData

A list of updated memberships.

MembershipCreatedEventData

Event payload for a new membership.

Event type: google.workspace.chat.membership.v1.created .

ক্ষেত্র
membership

Membership

The new membership.

MembershipDeletedEventData

Event payload for a deleted membership.

Event type: google.workspace.chat.membership.v1.deleted

ক্ষেত্র
membership

Membership

The deleted membership. Only the name and state fields are populated.

MembershipUpdatedEventData

Event payload for an updated membership.

Event type: google.workspace.chat.membership.v1.updated

ক্ষেত্র
membership

Membership

The updated membership.

বার্তা

A message in a Google Chat space.

ক্ষেত্র
name

string

Resource name of the message.

Format: spaces/{space}/messages/{message}

Where {space} is the ID of the space where the message is posted and {message} is a system-assigned ID for the message. For example, spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB .

If you set a custom ID when you create a message, you can use this ID to specify the message in a request by replacing {message} with the value from the clientAssignedMessageId field. For example, spaces/AAAAAAAAAAA/messages/client-custom-name . For details, see Name a message .

sender

User

Output only. The user who created the message. If your Chat app authenticates as a user , the output populates the user name and type .

create_time

Timestamp

ঐচ্ছিক। অপরিবর্তনীয়। For spaces created in Chat, the time at which the message was created. This field is output only, except when used in import mode spaces.

For import mode spaces, set this field to the historical timestamp at which the message was created in the source in order to preserve the original creation time.

last_update_time

Timestamp

Output only. The time at which the message was last edited by a user. If the message has never been edited, this field is empty.

delete_time

Timestamp

Output only. The time at which the message was deleted in Google Chat. If the message is never deleted, this field is empty.

text

string

Plain-text body of the message. The first link to an image, video, or web page generates a preview chip . You can also @mention a Google Chat user , or everyone in the space.

To learn about creating text messages, see Send a text message .

formatted_text

string

Output only. Contains the message text with markups added to communicate formatting. This field might not capture all formatting visible in the UI, but includes the following:

  • Markup syntax for bold, italic, strikethrough, monospace, monospace block, and bulleted list.

  • User mentions using the format <users/{user}> .

  • Custom hyperlinks using the format <{url}|{rendered_text}> where the first string is the URL and the second is the rendered text—for example, <http://example.com|custom text> .

  • Custom emoji using the format :{emoji_name}: —for example, :smile: . This doesn't apply to Unicode emoji, such as U+1F600 for a grinning face emoji.

For more information, see View text formatting sent in a message

cards[]
(deprecated)

Card

Deprecated: Use cards_v2 instead.

Rich, formatted, and interactive cards that you can use to display UI elements such as: formatted texts, buttons, and clickable images. Cards are normally displayed below the plain-text body of the message. cards and cards_v2 can have a maximum size of 32 KB.

cards_v2[]

CardWithId

An array of cards .

Only Chat apps can create cards. If your Chat app authenticates as a user , the messages can't contain cards.

To learn about cards and how to create them, see Send card messages .

Design and preview cards with the Card Builder.

Open the Card Builder

annotations[]

Annotation

Output only. Annotations associated with the text in this message.

thread

Thread

The thread the message belongs to. For example usage, see Start or reply to a message thread .

space

Space

If your Chat app authenticates as a user , the output populates the space name .

fallback_text

string

A plain-text description of the message's cards, used when the actual cards can't be displayed—for example, mobile notifications.

action_response

ActionResponse

শুধুমাত্র ইনপুট। Parameters that a Chat app can use to configure how its response is posted.

argument_text

string

Output only. Plain-text body of the message with all Chat app mentions stripped out.

slash_command

SlashCommand

Output only. Slash command information, if applicable.

attachment[]

Attachment

User-uploaded attachment.

matched_url

MatchedUrl

Output only. A URL in spaces.messages.text that matches a link preview pattern. For more information, see Preview links .

thread_reply

bool

Output only. When true , the message is a response in a reply thread. When false , the message is visible in the space's top-level conversation as either the first message of a thread or a message with no threaded replies.

If the space doesn't support reply in threads, this field is always false .

client_assigned_message_id

string

ঐচ্ছিক। A custom ID for the message. You can use field to identify a message, or to get, delete, or update a message. To set a custom ID, specify the messageId field when you create the message. For details, see Name a message .

emoji_reaction_summaries[]

EmojiReactionSummary

Output only. The list of emoji reaction summaries on the message.

private_message_viewer

User

অপরিবর্তনীয়। Input for creating a message, otherwise output only. The user that can view the message. When set, the message is private and only visible to the specified user and the Chat app. Link previews and attachments aren't supported for private messages.

Only Chat apps can send private messages. If your Chat app authenticates as a user to send a message, the message can't be private and must omit this field.

For details, see Send private messages to Google Chat users .

deletion_metadata

DeletionMetadata

Output only. Information about a deleted message. A message is deleted when delete_time is set.

quoted_message_metadata

QuotedMessageMetadata

Output only. Information about a message that's quoted by a Google Chat user in a space. Google Chat users can quote a message to reply to it.

attached_gifs[]

AttachedGif

Output only. GIF images that are attached to the message.

accessory_widgets[]

AccessoryWidget

One or more interactive widgets that appear at the bottom of a message. You can add accessory widgets to messages that contain text, cards, or both text and cards. Not supported for messages that contain dialogs. For details, see Add interactive widgets at the bottom of a message .

Creating a message with accessory widgets requires app authentication .

MessageBatchCreatedEventData

Event payload for multiple new messages.

Event type: google.workspace.chat.message.v1.batchCreated

ক্ষেত্র
messages[]

MessageCreatedEventData

A list of new messages.

MessageBatchDeletedEventData

Event payload for multiple deleted messages.

Event type: google.workspace.chat.message.v1.batchDeleted

ক্ষেত্র
messages[]

MessageDeletedEventData

A list of deleted messages.

MessageBatchUpdatedEventData

Event payload for multiple updated messages.

Event type: google.workspace.chat.message.v1.batchUpdated

ক্ষেত্র
messages[]

MessageUpdatedEventData

A list of updated messages.

MessageCreatedEventData

Event payload for a new message.

Event type: google.workspace.chat.message.v1.created

ক্ষেত্র
message

Message

The new message.

MessageDeletedEventData

Event payload for a deleted message.

Event type: google.workspace.chat.message.v1.deleted

ক্ষেত্র
message

Message

The deleted message. Only the name , createTime , deleteTime , and deletionMetadata fields are populated.

MessageUpdatedEventData

Event payload for an updated message.

Event type: google.workspace.chat.message.v1.updated

ক্ষেত্র
message

Message

The updated message.

QuotedMessageMetadata

Information about a quoted message.

ক্ষেত্র
name

string

Output only. Resource name of the quoted message.

Format: spaces/{space}/messages/{message}

last_update_time

Timestamp

Output only. The timestamp when the quoted message was created or when the quoted message was last updated.

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

A reaction to a message.

ক্ষেত্র
name

string

The resource name of the reaction.

Format: spaces/{space}/messages/{message}/reactions/{reaction}

user

User

Output only. The user who created the reaction.

emoji

Emoji

The emoji used in the reaction.

ReactionBatchCreatedEventData

Event payload for multiple new reactions.

Event type: google.workspace.chat.reaction.v1.batchCreated

ক্ষেত্র
reactions[]

ReactionCreatedEventData

A list of new reactions.

ReactionBatchDeletedEventData

Event payload for multiple deleted reactions.

Event type: google.workspace.chat.reaction.v1.batchDeleted

ক্ষেত্র
reactions[]

ReactionDeletedEventData

A list of deleted reactions.

ReactionCreatedEventData

Event payload for a new reaction.

Event type: google.workspace.chat.reaction.v1.created

ক্ষেত্র
reaction

Reaction

The new reaction.

ReactionDeletedEventData

Event payload for a deleted reaction.

Type: google.workspace.chat.reaction.v1.deleted

ক্ষেত্র
reaction

Reaction

The deleted reaction.

RichLinkMetadata

A rich link to a resource.

ক্ষেত্র
uri

string

The URI of this link.

Union field data . Data for the linked resource. data can be only one of the following:

RichLinkType

The rich link type. More types might be added in the future.

Enums
DRIVE_FILE A Google Drive rich link type.
CHAT_SPACE A Chat space rich link type. For example, a space smart chip.

SearchSpacesRequest

Request to search for a list of spaces based on a query.

ক্ষেত্র
use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires either the chat.admin.spaces.readonly or chat.admin.spaces OAuth 2.0 scope .

This method currently only supports admin access, thus only true is accepted for this field.

page_size

int32

The maximum number of spaces to return. The service may return fewer than this value.

If unspecified, at most 100 spaces are returned.

The maximum value is 1000. If you use a value more than 1000, it's automatically changed to 1000.

page_token

string

A token, received from the previous search spaces call. Provide this parameter to retrieve the subsequent page.

When paginating, all other parameters provided should match the call that provided the page token. Passing different values to the other parameters might lead to unexpected results.

query

string

প্রয়োজন। A search query.

You can search by using the following parameters:

  • create_time
  • customer
  • display_name
  • external_user_allowed
  • last_active_time
  • space_history_state
  • space_type

create_time and last_active_time accept a timestamp in RFC-3339 format and the supported comparison operators are: = , < , > , <= , >= .

customer is required and is used to indicate which customer to fetch spaces from. customers/my_customer is the only supported value.

display_name only accepts the HAS ( : ) operator. The text to match is first tokenized into tokens and each token is prefix-matched case-insensitively and independently as a substring anywhere in the space's display_name . For example, Fun Eve matches Fun event or The evening was fun , but not notFun event or even .

external_user_allowed accepts either true or false .

space_history_state only accepts values from the historyState field of a space resource.

space_type is required and the only valid value is SPACE .

Across different fields, only AND operators are supported. A valid example is space_type = "SPACE" AND display_name:"Hello" and an invalid example is space_type = "SPACE" OR display_name:"Hello" .

Among the same field, space_type doesn't support AND or OR operators. display_name , 'space_history_state', and 'external_user_allowed' only support OR operators. last_active_time and create_time support both AND and OR operators. AND can only be used to represent an interval, such as last_active_time < "2022-01-01T00:00:00+00:00" AND last_active_time > "2023-01-01T00:00:00+00:00" .

The following example queries are valid:

customer = "customers/my_customer" AND space_type = "SPACE"

customer = "customers/my_customer" AND space_type = "SPACE" AND
display_name:"Hello World"

customer = "customers/my_customer" AND space_type = "SPACE" AND
(last_active_time < "2020-01-01T00:00:00+00:00" OR last_active_time >
"2022-01-01T00:00:00+00:00")

customer = "customers/my_customer" AND space_type = "SPACE" AND
(display_name:"Hello World" OR display_name:"Fun event") AND
(last_active_time > "2020-01-01T00:00:00+00:00" AND last_active_time <
"2022-01-01T00:00:00+00:00")

customer = "customers/my_customer" AND space_type = "SPACE" AND
(create_time > "2019-01-01T00:00:00+00:00" AND create_time <
"2020-01-01T00:00:00+00:00") AND (external_user_allowed = "true") AND
(space_history_state = "HISTORY_ON" OR space_history_state = "HISTORY_OFF")
order_by

string

ঐচ্ছিক। How the list of spaces is ordered.

Supported attributes to order by are:

  • membership_count.joined_direct_human_user_count — Denotes the count of human users that have directly joined a space.
  • last_active_time — Denotes the time when last eligible item is added to any topic of this space.
  • create_time — Denotes the time of the space creation.

Valid ordering operation values are:

  • ASC for ascending. ডিফল্ট মান।

  • DESC for descending.

The supported syntax are:

  • membership_count.joined_direct_human_user_count DESC
  • membership_count.joined_direct_human_user_count ASC
  • last_active_time DESC
  • last_active_time ASC
  • create_time DESC
  • create_time ASC

SearchSpacesResponse

Response with a list of spaces corresponding to the search spaces request.

ক্ষেত্র
spaces[]

Space

A page of the requested spaces.

next_page_token

string

A token that can be used to retrieve the next page. If this field is empty, there are no subsequent pages.

total_size

int32

The total number of spaces that match the query, across all pages. If the result is over 10,000 spaces, this value is an estimate.

SetUpSpaceRequest

Request to create a space and add specified users to it.

ক্ষেত্র
space

Space

প্রয়োজন। The Space.spaceType field is required.

To create a space, set Space.spaceType to SPACE and set Space.displayName . If you receive the error message ALREADY_EXISTS when setting up a space, try a different displayName . An existing space within the Google Workspace organization might already use this display name.

To create a group chat, set Space.spaceType to GROUP_CHAT . Don't set Space.displayName .

To create a 1:1 conversation between humans, set Space.spaceType to DIRECT_MESSAGE and set Space.singleUserBotDm to false . Don't set Space.displayName or Space.spaceDetails .

To create an 1:1 conversation between a human and the calling Chat app, set Space.spaceType to DIRECT_MESSAGE and Space.singleUserBotDm to true . Don't set Space.displayName or Space.spaceDetails .

If a DIRECT_MESSAGE space already exists, that space is returned instead of creating a new space.

request_id

string

ঐচ্ছিক। A unique identifier for this request. A random UUID is recommended. Specifying an existing request ID returns the space created with that ID instead of creating a new space. Specifying an existing request ID from the same Chat app with a different authenticated user returns an error.

memberships[]

Membership

ঐচ্ছিক। The Google Chat users or groups to invite to join the space. Omit the calling user, as they are added automatically.

The set currently allows up to 20 memberships (in addition to the caller).

For human membership, the Membership.member field must contain a user with name populated (format: users/{user} ) and type set to User.Type.HUMAN . You can only add human users when setting up a space (adding Chat apps is only supported for direct message setup with the calling app). You can also add members using the user's email as an alias for {user}. For example, the user.name can be users/example@gmail.com . To invite Gmail users or users from external Google Workspace domains, user's email must be used for {user} .

For Google group membership, the Membership.group_member field must contain a group with name populated (format groups/{group} ). You can only add Google groups when setting Space.spaceType to SPACE .

Optional when setting Space.spaceType to SPACE .

Required when setting Space.spaceType to GROUP_CHAT , along with at least two memberships.

Required when setting Space.spaceType to DIRECT_MESSAGE with a human user, along with exactly one membership.

Must be empty when creating a 1:1 conversation between a human and the calling Chat app (when setting Space.spaceType to DIRECT_MESSAGE and Space.singleUserBotDm to true ).

স্ল্যাশকমান্ড

A slash command in Google Chat.

ক্ষেত্র
command_id

int64

The ID of the slash command invoked.

SlashCommandMetadata

Annotation metadata for slash commands (/).

ক্ষেত্র
bot

User

The Chat app whose command was invoked.

type

Type

The type of slash command.

command_name

string

The name of the invoked slash command.

command_id

int64

The command ID of the invoked slash command.

triggers_dialog

bool

Indicates whether the slash command is for a dialog.

টাইপ

Enums
TYPE_UNSPECIFIED Default value for the enum. ব্যবহার করবেন না।
ADD Add Chat app to space.
INVOKE Invoke slash command in space.

স্থান

A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.

ক্ষেত্র
name

string

Resource name of the space.

Format: spaces/{space}

type
(deprecated)

Type

Output only. Deprecated: Use space_type instead. The type of a space.

space_type

SpaceType

The type of space. Required when creating a space or updating the space type of a space. Output only for other usage.

single_user_bot_dm

bool

ঐচ্ছিক। Whether the space is a DM between a Chat app and a single human.

threaded
(deprecated)

bool

Output only. Deprecated: Use spaceThreadingState instead. Whether messages are threaded in this space.

display_name

string

The space's display name. Required when creating a space . If you receive the error message ALREADY_EXISTS when creating a space or updating the displayName , try a different displayName . An existing space within the Google Workspace organization might already use this display name.

For direct messages, this field might be empty.

Supports up to 128 characters.

external_user_allowed

bool

অপরিবর্তনীয়। Whether this space permits any Google Chat user as a member. Input when creating a space in a Google Workspace organization. Omit this field when creating spaces in the following conditions:

  • The authenticated user uses a consumer account (unmanaged user account). By default, a space created by a consumer account permits any Google Chat user.

For existing spaces, this field is output only.

space_threading_state

SpaceThreadingState

Output only. The threading state in the Chat space.

space_details

SpaceDetails

Details about the space including description and rules.

space_history_state

HistoryState

The message history state for messages and threads in this space.

import_mode

bool

ঐচ্ছিক। Whether this space is created in Import Mode as part of a data migration into Google Workspace. While spaces are being imported, they aren't visible to users until the import is complete.

create_time

Timestamp

ঐচ্ছিক। অপরিবর্তনীয়। For spaces created in Chat, the time the space was created. This field is output only, except when used in import mode spaces.

For import mode spaces, set this field to the historical timestamp at which the space was created in the source in order to preserve the original creation time.

Only populated in the output when spaceType is GROUP_CHAT or SPACE .

last_active_time

Timestamp

Output only. Timestamp of the last message in the space.

admin_installed

bool

Output only. For direct message (DM) spaces with a Chat app, whether the space was created by a Google Workspace administrator. Administrators can install and set up a direct message with a Chat app on behalf of users in their organization.

To support admin install, your Chat app must feature direct messaging.

membership_count

MembershipCount

Output only. The count of joined memberships grouped by member type. Populated when the space_type is SPACE , DIRECT_MESSAGE or GROUP_CHAT .

access_settings

AccessSettings

ঐচ্ছিক। Specifies the access setting of the space. Only populated when the space_type is SPACE .

space_uri

string

Output only. The URI for a user to access the space.

Union field space_permission_settings . Represents the permission settings of a space. Only populated when the space_type is SPACE . space_permission_settings can be only one of the following:
predefined_permission_settings

PredefinedPermissionSettings

ঐচ্ছিক। শুধুমাত্র ইনপুট। Space permission settings. Input for creating a space, a collaboration space is created if this field is not set. After you create the space, settings are populated in the PermissionSettings field.

permission_settings

PermissionSettings

ঐচ্ছিক। Exact permission settings which can be set to update the space. Input for updating a space. Otherwise, output only. For space creation, use predefined_permission_settings instead.

AccessSettings

Represents the access setting of the space.

ক্ষেত্র
access_state

AccessState

Output only. Indicates the access state of the space.

audience

string

ঐচ্ছিক। The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience .

Format: audiences/{audience}

To use the default target audience for the Google Workspace organization, set to audiences/default .

AccessState

Represents the access state of the space.

Enums
ACCESS_STATE_UNSPECIFIED Access state is unknown or not supported in this API.
PRIVATE Only users or Google Groups that have been individually added or invited by other users or Google Workspace administrators can discover and access the space.
DISCOVERABLE A space manager has granted a target audience access to the space. Users or Google Groups that have been individually added or invited to the space can also discover and access the space. To learn more, see Make a space discoverable to specific users .

MembershipCount

Represents the count of memberships of a space, grouped into categories.

ক্ষেত্র
joined_direct_human_user_count

int32

Count of human users that have directly joined the space, not counting users joined by having membership in a joined group.

joined_group_count

int32

Count of all groups that have directly joined the space.

PermissionSetting

Represents a space permission setting.

ক্ষেত্র
managers_allowed

bool

Whether spaces managers have this permission.

members_allowed

bool

Whether non-manager members have this permission.

PermissionSettings

Permission settings for a named space. To set permission settings when creating a space, specify the PredefinedPermissionSettings field in your request.

ক্ষেত্র
manage_members_and_groups

PermissionSetting

Setting for managing members and groups in a space.

modify_space_details

PermissionSetting

Setting for updating space name, avatar, description and guidelines.

toggle_history

PermissionSetting

Setting for toggling space history on and off.

use_at_mention_all

PermissionSetting

Setting for using @all in a space.

manage_apps

PermissionSetting

Setting for managing apps in a space.

manage_webhooks

PermissionSetting

Setting for managing webhooks in a space.

post_messages

PermissionSetting

Output only. Setting for posting messages in a space.

reply_messages

PermissionSetting

Setting for replying to messages in a space.

PredefinedPermissionSettings

The space permission settings that you can specify when creating a named space. More settings might be added in the future. For details about permission settings for named spaces, see Learn about spaces .

Enums
PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED অনির্দিষ্ট। ব্যবহার করবেন না।
COLLABORATION_SPACE Setting to make the space a collaboration space where all members can post messages.
ANNOUNCEMENT_SPACE Setting to make the space an announcement space where only space managers can post messages.

SpaceDetails

Details about the space including description and rules.

ক্ষেত্র
description

string

ঐচ্ছিক। A description of the space. For example, describe the space's discussion topic, functional purpose, or participants.

Supports up to 150 characters.

guidelines

string

ঐচ্ছিক। The space's rules, expectations, and etiquette.

Supports up to 5,000 characters.

SpaceThreadingState

Specifies the type of threading state in the Chat space.

Enums
SPACE_THREADING_STATE_UNSPECIFIED সংরক্ষিত
THREADED_MESSAGES Named spaces that support message threads. When users respond to a message, they can reply in-thread, which keeps their response in the context of the original message.
GROUPED_MESSAGES Named spaces where the conversation is organized by topic. Topics and their replies are grouped together.
UNTHREADED_MESSAGES Direct messages (DMs) between two people and group conversations between 3 or more people.

SpaceType

The type of space. Required when creating or updating a space. Output only for other usage.

Enums
SPACE_TYPE_UNSPECIFIED সংরক্ষিত
SPACE A place where people send messages, share files, and collaborate. A SPACE can include Chat apps.
GROUP_CHAT Group conversations between 3 or more people. A GROUP_CHAT can include Chat apps.
DIRECT_MESSAGE 1:1 messages between two humans or a human and a Chat app.

টাইপ

Deprecated: Use SpaceType instead.

Enums
TYPE_UNSPECIFIED সংরক্ষিত
ROOM Conversations between two or more humans.
DM 1:1 Direct Message between a human and a Chat app, where all messages are flat. Note that this doesn't include direct messages between two humans.

SpaceBatchUpdatedEventData

Event payload for multiple updates to a space.

Event type: google.workspace.chat.space.v1.batchUpdated

ক্ষেত্র
spaces[]

SpaceUpdatedEventData

A list of updated spaces.

SpaceEvent

An event that represents a change or activity in a Google Chat space. To learn more, see Work with events from Google Chat .

ক্ষেত্র
name

string

Resource name of the space event.

Format: spaces/{space}/spaceEvents/{spaceEvent}

event_time

Timestamp

Time when the event occurred.

event_type

string

Type of space event. Each event type has a batch version, which represents multiple instances of the event type that occur in a short period of time. For spaceEvents.list() requests, omit batch event types in your query filter. By default, the server returns both event type and its batch version.

Supported event types for messages :

  • New message: google.workspace.chat.message.v1.created
  • Updated message: google.workspace.chat.message.v1.updated
  • Deleted message: google.workspace.chat.message.v1.deleted
  • Multiple new messages: google.workspace.chat.message.v1.batchCreated
  • Multiple updated messages: google.workspace.chat.message.v1.batchUpdated
  • Multiple deleted messages: google.workspace.chat.message.v1.batchDeleted

Supported event types for memberships :

  • New membership: google.workspace.chat.membership.v1.created
  • Updated membership: google.workspace.chat.membership.v1.updated
  • Deleted membership: google.workspace.chat.membership.v1.deleted
  • Multiple new memberships: google.workspace.chat.membership.v1.batchCreated
  • Multiple updated memberships: google.workspace.chat.membership.v1.batchUpdated
  • Multiple deleted memberships: google.workspace.chat.membership.v1.batchDeleted

Supported event types for reactions :

  • New reaction: google.workspace.chat.reaction.v1.created
  • Deleted reaction: google.workspace.chat.reaction.v1.deleted
  • Multiple new reactions: google.workspace.chat.reaction.v1.batchCreated
  • Multiple deleted reactions: google.workspace.chat.reaction.v1.batchDeleted

Supported event types about the space :

  • Updated space: google.workspace.chat.space.v1.updated
  • Multiple space updates: google.workspace.chat.space.v1.batchUpdated

Union field payload .

payload can be only one of the following:

message_created_event_data

MessageCreatedEventData

Event payload for a new message.

Event type: google.workspace.chat.message.v1.created

message_updated_event_data

MessageUpdatedEventData

Event payload for an updated message.

Event type: google.workspace.chat.message.v1.updated

message_deleted_event_data

MessageDeletedEventData

Event payload for a deleted message.

Event type: google.workspace.chat.message.v1.deleted

message_batch_created_event_data

MessageBatchCreatedEventData

Event payload for multiple new messages.

Event type: google.workspace.chat.message.v1.batchCreated

message_batch_updated_event_data

MessageBatchUpdatedEventData

Event payload for multiple updated messages.

Event type: google.workspace.chat.message.v1.batchUpdated

message_batch_deleted_event_data

MessageBatchDeletedEventData

Event payload for multiple deleted messages.

Event type: google.workspace.chat.message.v1.batchDeleted

space_updated_event_data

SpaceUpdatedEventData

Event payload for a space update.

Event type: google.workspace.chat.space.v1.updated

space_batch_updated_event_data

SpaceBatchUpdatedEventData

Event payload for multiple updates to a space.

Event type: google.workspace.chat.space.v1.batchUpdated

membership_created_event_data

MembershipCreatedEventData

Event payload for a new membership.

Event type: google.workspace.chat.membership.v1.created

membership_updated_event_data

MembershipUpdatedEventData

Event payload for an updated membership.

Event type: google.workspace.chat.membership.v1.updated

membership_deleted_event_data

MembershipDeletedEventData

Event payload for a deleted membership.

Event type: google.workspace.chat.membership.v1.deleted

membership_batch_created_event_data

MembershipBatchCreatedEventData

Event payload for multiple new memberships.

Event type: google.workspace.chat.membership.v1.batchCreated

membership_batch_updated_event_data

MembershipBatchUpdatedEventData

Event payload for multiple updated memberships.

Event type: google.workspace.chat.membership.v1.batchUpdated

membership_batch_deleted_event_data

MembershipBatchDeletedEventData

Event payload for multiple deleted memberships.

Event type: google.workspace.chat.membership.v1.batchDeleted

reaction_created_event_data

ReactionCreatedEventData

Event payload for a new reaction.

Event type: google.workspace.chat.reaction.v1.created

reaction_deleted_event_data

ReactionDeletedEventData

Event payload for a deleted reaction.

Event type: google.workspace.chat.reaction.v1.deleted

reaction_batch_created_event_data

ReactionBatchCreatedEventData

Event payload for multiple new reactions.

Event type: google.workspace.chat.reaction.v1.batchCreated

reaction_batch_deleted_event_data

ReactionBatchDeletedEventData

Event payload for multiple deleted reactions.

Event type: google.workspace.chat.reaction.v1.batchDeleted

SpaceReadState

A user's read state within a space, used to identify read and unread messages.

ক্ষেত্র
name

string

Resource name of the space read state.

Format: users/{user}/spaces/{space}/spaceReadState

last_read_time

Timestamp

ঐচ্ছিক। The time when the user's space read state was updated. Usually this corresponds with either the timestamp of the last read message, or a timestamp specified by the user to mark the last read position in a space.

SpaceUpdatedEventData

Event payload for an updated space.

Event type: google.workspace.chat.space.v1.updated

ক্ষেত্র
space

Space

The updated space.

থ্রেড

A thread in a Google Chat space. For example usage, see Start or reply to a message thread .

If you specify a thread when creating a message, you can set the messageReplyOption field to determine what happens if no matching thread is found.

ক্ষেত্র
name

string

Resource name of the thread.

Example: spaces/{space}/threads/{thread}

thread_key

string

ঐচ্ছিক। Input for creating or updating a thread. Otherwise, output only. ID for the thread. Supports up to 4000 characters.

This ID is unique to the Chat app that sets it. For example, if multiple Chat apps create a message using the same thread key, the messages are posted in different threads. To reply in a thread created by a person or another Chat app, specify the thread name field instead.

ThreadReadState

A user's read state within a thread, used to identify read and unread messages.

ক্ষেত্র
name

string

Resource name of the thread read state.

Format: users/{user}/spaces/{space}/threads/{thread}/threadReadState

last_read_time

Timestamp

The time when the user's thread read state was updated. Usually this corresponds with the timestamp of the last read message in a thread.

UpdateMembershipRequest

Request message for updating a membership.

ক্ষেত্র
membership

Membership

প্রয়োজন। The membership to update. Only fields specified by update_mask are updated.

update_mask

FieldMask

প্রয়োজন। The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role
use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.memberships OAuth 2.0 scope .

UpdateMessageRequest

Request to update a message.

ক্ষেত্র
message

Message

প্রয়োজন। Message with fields updated.

update_mask

FieldMask

প্রয়োজন। The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

allow_missing

bool

ঐচ্ছিক। If true and the message isn't found, a new message is created and updateMask is ignored. The specified message ID must be client-assigned or the request fails.

UpdateSpaceReadStateRequest

Request message for UpdateSpaceReadState API.

ক্ষেত্র
space_read_state

SpaceReadState

প্রয়োজন। The space read state and fields to update.

Only supports updating read state for the calling user.

To refer to the calling user, set one of the following:

  • The me alias. For example, users/me/spaces/{space}/spaceReadState .

  • Their Workspace email address. For example, users/user@example.com/spaces/{space}/spaceReadState .

  • Their user id. For example, users/123456789/spaces/{space}/spaceReadState .

Format: users/{user}/spaces/{space}/spaceReadState

update_mask

FieldMask

প্রয়োজন। The field paths to update. Currently supported field paths:

  • last_read_time

When the last_read_time is before the latest message create time, the space appears as unread in the UI.

To mark the space as read, set last_read_time to any value later (larger) than the latest message create time. The last_read_time is coerced to match the latest message create time. Note that the space read state only affects the read state of messages that are visible in the space's top-level conversation. Replies in threads are unaffected by this timestamp, and instead rely on the thread read state.

UpdateSpaceRequest

A request to update a single space.

ক্ষেত্র
space

Space

প্রয়োজন। Space with fields to be updated. Space.name must be populated in the form of spaces/{space} . Only fields specified by update_mask are updated.

update_mask

FieldMask

প্রয়োজন। The updated field paths, comma separated if there are multiple.

You can update the following fields for a space:

  • space_details

  • display_name : Only supports updating the display name for spaces where spaceType field is SPACE . If you receive the error message ALREADY_EXISTS , try a different value. An existing space within the Google Workspace organization might already use this display name.

  • space_type : Only supports changing a GROUP_CHAT space type to SPACE . Include display_name together with space_type in the update mask and ensure that the specified space has a non-empty display name and the SPACE space type. Including the space_type mask and the SPACE type in the specified space when updating the display name is optional if the existing space already has the SPACE type. Trying to update the space type in other ways results in an invalid argument error. space_type is not supported with admin access.

  • space_history_state : Updates space history settings by turning history on or off for the space. Only supported if history settings are enabled for the Google Workspace organization. To update the space history state, you must omit all other field masks in your request. space_history_state is not supported with admin access.

  • access_settings.audience : Updates the access setting of who can discover the space, join the space, and preview the messages in named space where spaceType field is SPACE . If the existing space has a target audience, you can remove the audience and restrict space access by omitting a value for this field mask. To update access settings for a space, the authenticating user must be a space manager and omit all other field masks in your request. You can't update this field if the space is in import mode . To learn more, see Make a space discoverable to specific users . access_settings.audience is not supported with admin access.

  • Developer Preview: Supports changing the permission settings of a space, supported field paths include: permission_settings.manage_members_and_groups , permission_settings.modify_space_details , permission_settings.toggle_history , permission_settings.use_at_mention_all , permission_settings.manage_apps , permission_settings.manage_webhooks , permission_settings.reply_messages (Warning: mutually exclusive with all other non-permission settings field paths). permission_settings is not supported with admin access.

use_admin_access

bool

When true , the method runs using the user's Google Workspace administrator privileges.

The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege .

Requires the chat.admin.spaces OAuth 2.0 scope .

Some FieldMask values are not supported using admin access. For details, see the description of update_mask .

ব্যবহারকারী

Google চ্যাটে একজন ব্যবহারকারী। When returned as an output from a request, if your Chat app authenticates as a user , the output for a User resource only populates the user's name and type .

ক্ষেত্র
name

string

Resource name for a Google Chat user .

Format: users/{user} . users/app can be used as an alias for the calling app bot user.

For human users , {user} is the same user identifier as:

  • the id for the Person in the People API. উদাহরণ স্বরূপ, Chat API-এ users/123456789 একই ব্যক্তিকে প্রতিনিধিত্ব করে যেটি People API-তে 123456789 ব্যক্তি প্রোফাইল আইডি।

  • the id for a user in the Admin SDK Directory API.

  • the user's email address can be used as an alias for {user} in API requests. For example, if the People API Person profile ID for user@example.com is 123456789 , you can use users/user@example.com as an alias to reference users/123456789 . Only the canonical resource name (for example users/123456789 ) will be returned from the API.

display_name

string

Output only. ব্যবহারকারীর প্রদর্শনের নাম।

domain_id

string

ব্যবহারকারীর Google Workspace ডোমেনের অনন্য শনাক্তকারী।

type

Type

ব্যবহারকারীর ধরন।

is_anonymous

bool

Output only. When true , the user is deleted or their profile is not visible.

টাইপ

Enums
TYPE_UNSPECIFIED Default value for the enum. ব্যবহার করবেন না।
HUMAN মানব ব্যবহারকারী।
BOT চ্যাট অ্যাপ ব্যবহারকারী।

UserMentionMetadata

Annotation metadata for user mentions (@).

ক্ষেত্র
user

User

The user mentioned.

type

Type

The type of user mention.

টাইপ

Enums
TYPE_UNSPECIFIED Default value for the enum. ব্যবহার করবেন না।
ADD Add user to space.
MENTION Mention user in space.

WidgetMarkup

A widget is a UI element that presents text and images.

ক্ষেত্র
buttons[]

Button

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

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

TextParagraph

Display a text paragraph in this widget.

image

Image

Display an image in this widget.

key_value

KeyValue

Display a key value item in this widget.

বোতাম

একটি বোতাম। Can be a text button or an image button.

ক্ষেত্র

Union field type .

type can be only one of the following:

text_button

TextButton

A button with text and onclick action.

image_button

ImageButton

A button with image and onclick action.

FormAction

A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.

ক্ষেত্র
action_method_name

string

The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.

parameters[]

ActionParameter

List of action parameters.

ActionParameter

List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use action method = snooze() , passing the snooze type and snooze time in the list of string parameters.

ক্ষেত্র
key

string

The name of the parameter for the action script.

value

string

The value of the parameter.

আইকন

The set of supported icons.

Enums
ICON_UNSPECIFIED
AIRPLANE
BOOKMARK
BUS
CAR
CLOCK
CONFIRMATION_NUMBER_ICON
DOLLAR
DESCRIPTION
EMAIL
EVENT_PERFORMER
EVENT_SEAT
FLIGHT_ARRIVAL
FLIGHT_DEPARTURE
HOTEL
HOTEL_ROOM_TYPE
INVITE
MAP_PIN
MEMBERSHIP
MULTIPLE_PEOPLE
OFFER
PERSON
PHONE
RESTAURANT_ICON
SHOPPING_CART
STAR
STORE
TICKET
TRAIN
VIDEO_CAMERA
VIDEO_PLAY

ছবি

An image that's specified by a URL and can have an onclick action.

ক্ষেত্র
image_url

string

ছবির URL.

on_click

OnClick

The onclick action.

aspect_ratio

double

The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.

ইমেজ বোতাম

An image button with an onclick action.

ক্ষেত্র
on_click

OnClick

The onclick action.

name

string

The name of this image_button that's used for accessibility. Default value is provided if this name isn't specified.

Union field icons . The icon can be specified by an Icon enum or a URL. icons can be only one of the following:
icon

Icon

The icon specified by an enum that indices to an icon provided by Chat API.

icon_url

string

The icon specified by a URL.

মূলমূল্য

A UI element contains a key (label) and a value (content). This element can also contain some actions such as onclick button.

ক্ষেত্র
top_label

string

The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

content

string

The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

content_multiline

bool

If the content should be multiline.

bottom_label

string

The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

on_click

OnClick

The onclick action. Only the top label, bottom label, and content region are clickable.

Union field icons . At least one of icons, top_label and bottom_label must be defined. icons can be only one of the following:
icon

Icon

An enum value that's replaced by the Chat API with the corresponding icon image.

icon_url

string

The icon specified by a URL.

Union field control . A control widget. You can set either button or switch_widget , but not both. control can be only one of the following:
button

Button

A button that can be clicked to trigger an action.

অনক্লিক

An onclick action (for example, open a link).

ক্ষেত্র

Union field data .

data can be only one of the following:

action

FormAction

A form action is triggered by this onclick action if specified.

টেক্সট বোতাম

A button with text and onclick action.

ক্ষেত্র
text

string

The text of the button.

on_click

OnClick

The onclick action of the button.

পাঠ্য অনুচ্ছেদ

পাঠ্যের একটি অনুচ্ছেদ। Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons .

ক্ষেত্র
text

string