Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedCustomEmoji
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteSharedCustomEmoji
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Proto representation of a custom emoji. May be used in both APIs and in Spanner, but certain fields should be restricted to one or the other. See the per-field documentation for details. NEXT_TAG: 14
Instance Attribute Summary collapse
-
#blob_id ⇒ String
ID for the underlying image data in Blobstore.
-
#content_type ⇒ String
Content type of the file used to upload the emoji.
-
#create_time_micros ⇒ Fixnum
Time when the Emoji was created, in microseconds.
-
#creator_user_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#delete_time_micros ⇒ Fixnum
Time when the emoji was deleted, in microseconds.
-
#ephemeral_url ⇒ String
Output only.
-
#owner_customer_id ⇒ Google::Apis::CloudsearchV1::CustomerId
Represents a GSuite customer ID.
-
#read_token ⇒ String
Opaque token that clients use to construct the URL for accessing the custom emoji’s image data.
-
#shortcode ⇒ String
User-provided, human-readable ID for the custom emoji.
-
#state ⇒ String
Snapshot of the current state of the emoji, which may differ from the source- of-truth in the CustomEmojis table.
-
#update_time_micros ⇒ Fixnum
Corresponds to the JSON property
updateTimeMicros. -
#uuid ⇒ String
Unique key for a custom emoji resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteSharedCustomEmoji
constructor
A new instance of AppsDynamiteSharedCustomEmoji.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteSharedCustomEmoji
Returns a new instance of AppsDynamiteSharedCustomEmoji.
1444 1445 1446 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1444 def initialize(**args) update!(**args) end |
Instance Attribute Details
#blob_id ⇒ String
ID for the underlying image data in Blobstore. This field should only be
present in Spanner or within the server, but should not be exposed in public
APIs.
Corresponds to the JSON property blobId
1373 1374 1375 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1373 def blob_id @blob_id end |
#content_type ⇒ String
Content type of the file used to upload the emoji. Used for takeout. Written
to Spanner when the emoji is created.
Corresponds to the JSON property contentType
1379 1380 1381 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1379 def content_type @content_type end |
#create_time_micros ⇒ Fixnum
Time when the Emoji was created, in microseconds. This field may be present in
Spanner, within the server, or in public APIs.
Corresponds to the JSON property createTimeMicros
1385 1386 1387 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1385 def create_time_micros @create_time_micros end |
#creator_user_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property creatorUserId
1390 1391 1392 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1390 def creator_user_id @creator_user_id end |
#delete_time_micros ⇒ Fixnum
Time when the emoji was deleted, in microseconds. This field may be present in
Spanner, within the server, or in public APIs. Only present if the emoji has
been deleted.
Corresponds to the JSON property deleteTimeMicros
1397 1398 1399 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1397 def delete_time_micros @delete_time_micros end |
#ephemeral_url ⇒ String
Output only. A short-lived URL clients can use for directly accessing a custom
emoji image. This field is intended for API consumption, and should never be
persisted to Spanner.
Corresponds to the JSON property ephemeralUrl
1404 1405 1406 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1404 def ephemeral_url @ephemeral_url end |
#owner_customer_id ⇒ Google::Apis::CloudsearchV1::CustomerId
Represents a GSuite customer ID. Obfuscated with CustomerIdObfuscator.
Corresponds to the JSON property ownerCustomerId
1409 1410 1411 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1409 def owner_customer_id @owner_customer_id end |
#read_token ⇒ String
Opaque token that clients use to construct the URL for accessing the custom
emoji’s image data. This field is intended for API consumption, and should *
never* be persisted to Spanner.
Corresponds to the JSON property readToken
1416 1417 1418 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1416 def read_token @read_token end |
#shortcode ⇒ String
User-provided, human-readable ID for the custom emoji. Users are expected to
observe this field in the UI instead of the UUID. This shortcode should be
unique within an organization, but has no global uniqueness guarantees, unlike
the UUID. This field should never be persisted to Spanner.
Corresponds to the JSON property shortcode
1424 1425 1426 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1424 def shortcode @shortcode end |
#state ⇒ String
Snapshot of the current state of the emoji, which may differ from the source-
of-truth in the CustomEmojis table. This field should never be persisted to
Spanner.
Corresponds to the JSON property state
1431 1432 1433 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1431 def state @state end |
#update_time_micros ⇒ Fixnum
Corresponds to the JSON property updateTimeMicros
1436 1437 1438 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1436 def update_time_micros @update_time_micros end |
#uuid ⇒ String
Unique key for a custom emoji resource. Required. This field is always
populated.
Corresponds to the JSON property uuid
1442 1443 1444 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1442 def uuid @uuid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1449 def update!(**args) @blob_id = args[:blob_id] if args.key?(:blob_id) @content_type = args[:content_type] if args.key?(:content_type) @create_time_micros = args[:create_time_micros] if args.key?(:create_time_micros) @creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id) @delete_time_micros = args[:delete_time_micros] if args.key?(:delete_time_micros) @ephemeral_url = args[:ephemeral_url] if args.key?(:ephemeral_url) @owner_customer_id = args[:owner_customer_id] if args.key?(:owner_customer_id) @read_token = args[:read_token] if args.key?(:read_token) @shortcode = args[:shortcode] if args.key?(:shortcode) @state = args[:state] if args.key?(:state) @update_time_micros = args[:update_time_micros] if args.key?(:update_time_micros) @uuid = args[:uuid] if args.key?(:uuid) end |