Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedCustomEmoji

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedCustomEmoji

Returns a new instance of AppsDynamiteSharedCustomEmoji.



1604
1605
1606
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1604

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#blob_idString

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

Returns:

  • (String)


1533
1534
1535
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1533

def blob_id
  @blob_id
end

#content_typeString

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

Returns:

  • (String)


1539
1540
1541
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1539

def content_type
  @content_type
end

#create_time_microsFixnum

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

Returns:

  • (Fixnum)


1545
1546
1547
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1545

def create_time_micros
  @create_time_micros
end

#creator_user_idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property creatorUserId



1550
1551
1552
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1550

def creator_user_id
  @creator_user_id
end

#delete_time_microsFixnum

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

Returns:

  • (Fixnum)


1557
1558
1559
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1557

def delete_time_micros
  @delete_time_micros
end

#ephemeral_urlString

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

Returns:

  • (String)


1564
1565
1566
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1564

def ephemeral_url
  @ephemeral_url
end

#owner_customer_idGoogle::Apis::CloudsearchV1::CustomerId

Represents a GSuite customer ID. Obfuscated with CustomerIdObfuscator. Corresponds to the JSON property ownerCustomerId



1569
1570
1571
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1569

def owner_customer_id
  @owner_customer_id
end

#read_tokenString

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

Returns:

  • (String)


1576
1577
1578
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1576

def read_token
  @read_token
end

#shortcodeString

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

Returns:

  • (String)


1584
1585
1586
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1584

def shortcode
  @shortcode
end

#stateString

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

Returns:

  • (String)


1591
1592
1593
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1591

def state
  @state
end

#update_time_microsFixnum

Corresponds to the JSON property updateTimeMicros

Returns:

  • (Fixnum)


1596
1597
1598
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1596

def update_time_micros
  @update_time_micros
end

#uuidString

Unique key for a custom emoji resource. Required. This field is always populated. Corresponds to the JSON property uuid

Returns:

  • (String)


1602
1603
1604
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1602

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1609

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