Class: Google::Apis::ChatV1::CustomEmojiPayload
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::CustomEmojiPayload
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
Payload data for the custom emoji.
Instance Attribute Summary collapse
-
#file_content ⇒ String
Required.
-
#filename ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomEmojiPayload
constructor
A new instance of CustomEmojiPayload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomEmojiPayload
Returns a new instance of CustomEmojiPayload.
1035 1036 1037 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1035 def initialize(**args) update!(**args) end |
Instance Attribute Details
#file_content ⇒ String
Required. Input only. The image used for the custom emoji. The payload must be
under 256 KB and the dimension of the image must be square and between 64 and
500 pixels. The restrictions are subject to change.
Corresponds to the JSON property fileContent
NOTE: Values are automatically base64 encoded/decoded in the client library.
1027 1028 1029 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1027 def file_content @file_content end |
#filename ⇒ String
Required. Input only. The image file name. Supported file extensions: .png,
.jpg, .gif.
Corresponds to the JSON property filename
1033 1034 1035 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1033 def filename @filename end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1040 1041 1042 1043 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1040 def update!(**args) @file_content = args[:file_content] if args.key?(:file_content) @filename = args[:filename] if args.key?(:filename) end |