Enum ContentType
कॉन्टेंट का टाइप
एक ऐसी वैल्यू जो UpdateDraftActionResponse
से जनरेट किए गए कॉन्टेंट के टाइप की जानकारी देती है.
किसी एनम को कॉल करने के लिए, उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल किया जाता है. उदाहरण के लिए,
CardService.ContentType.TEXT
.
प्रॉपर्टी
प्रॉपर्टी | टाइप | ब्यौरा |
TEXT | Enum | इससे पता चलता है कि जनरेट किया गया कॉन्टेंट सादा टेक्स्ट है. डिफ़ॉल्ट. |
MUTABLE_HTML | Enum | इससे पता चलता है कि जनरेट किया गया कॉन्टेंट, एचटीएमएल के तौर पर फ़ॉर्मैट किया गया है. कॉन्टेंट जनरेट होने के बाद, उसमें बदलाव किया जा सकता है. |
IMMUTABLE_HTML | Enum | इससे पता चलता है कि जनरेट किया गया कॉन्टेंट, एचटीएमएल के तौर पर फ़ॉर्मैट किया गया है. हालांकि, जनरेट होने के बाद इस कॉन्टेंट में बदलाव नहीं किया जा सकता. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-12-02 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-12-02 (UTC) को अपडेट किया गया."],[[["`ContentType` is an enum used to define the type of content generated by `UpdateDraftActionResponse`."],["Content types include `TEXT` (default plain text), `MUTABLE_HTML` (editable HTML), and `IMMUTABLE_HTML` (non-editable HTML)."],["To specify a content type, use the syntax: `CardService.ContentType.PROPERTY`, replacing `PROPERTY` with the desired type."]]],["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"]]