Enum ContentType
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
ContentType
Nilai enum yang menentukan jenis konten yang dihasilkan oleh UpdateDraftActionResponse
.
Untuk memanggil enum, Anda memanggil class induk, nama, dan propertinya. Misalnya,
CardService.ContentType.TEXT
.
Properti
Properti | Jenis | Deskripsi |
TEXT | Enum | Menunjukkan bahwa konten yang dihasilkan adalah teks biasa. Default. |
MUTABLE_HTML | Enum | Menunjukkan bahwa konten yang dihasilkan diformat sebagai HTML. Konten dapat diedit setelah
dibuat. |
IMMUTABLE_HTML | Enum | Menunjukkan bahwa konten yang dihasilkan diformat sebagai HTML, tetapi konten ini tidak dapat diedit
setelah dihasilkan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[],["The `ContentType` enum specifies the type of content generated by an `UpdateDraftActionResponse`. It has three properties: `TEXT`, `MUTABLE_HTML`, and `IMMUTABLE_HTML`. `TEXT` indicates plain text, which is the default. `MUTABLE_HTML` represents editable HTML content, while `IMMUTABLE_HTML` represents HTML content that cannot be edited after generation. These properties are accessed via `CardService.ContentType` followed by the chosen type, such as `TEXT`.\n"],null,[]]