Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedBackendUploadMetadata

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

Metadata used only in Dynamite backend for uploaded attachments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteSharedBackendUploadMetadata

Returns a new instance of AppsDynamiteSharedBackendUploadMetadata.



941
942
943
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 941

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

Instance Attribute Details

#blob_pathString

Blobstore path for the uploaded attachment Corresponds to the JSON property blobPath

Returns:

  • (String)


854
855
856
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 854

def blob_path
  @blob_path
end

#content_nameString

The original file name for the content, not the full path. Corresponds to the JSON property contentName

Returns:

  • (String)


859
860
861
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 859

def content_name
  @content_name
end

#content_sizeFixnum

Scotty reported content size by default. http://google3/uploader/agent/ scotty_agent.proto?l=101&rcl=140889785 Corresponds to the JSON property contentSize

Returns:

  • (Fixnum)


865
866
867
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 865

def content_size
  @content_size
end

#content_typeString

Type is from Scotty's best_guess by default: http://google3/uploader/agent/ scotty_agent.proto?l=51&rcl=140889785 Corresponds to the JSON property contentType

Returns:

  • (String)


871
872
873
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 871

def content_type
  @content_type
end

#dlp_scan_outcomeString

The results of the Data Loss Prevention (DLP) scan of the attachment. DEPRECATED: use dlp_scan_summary instead. Corresponds to the JSON property dlpScanOutcome

Returns:

  • (String)


877
878
879
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 877

def dlp_scan_outcome
  @dlp_scan_outcome
end

#dlp_scan_summaryGoogle::Apis::CloudsearchV1::DlpScanSummary

A summary of a DLP scan event. This is a summary and should contain the minimum amount of data required to identify and process DLP scans. It is written to Starcast and encoded & returned to the client on attachment upload. Corresponds to the JSON property dlpScanSummary



884
885
886
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 884

def dlp_scan_summary
  @dlp_scan_summary
end

#group_idGoogle::Apis::CloudsearchV1::GroupId

Id representing a group that could be a space, a chat, or a direct message space. Which ID is set here will determine which group Corresponds to the JSON property groupId



890
891
892
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 890

def group_id
  @group_id
end

#is_client_side_transcoded_videoBoolean Also known as: is_client_side_transcoded_video?

If the uploaded file is a video that has been transcoded on the client side Next tag: 18 Corresponds to the JSON property isClientSideTranscodedVideo

Returns:

  • (Boolean)


896
897
898
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 896

def is_client_side_transcoded_video
  @is_client_side_transcoded_video
end

#original_dimensionGoogle::Apis::CloudsearchV1::AppsDynamiteSharedDimension

Dimension for the uploaded attachments. Corresponds to the JSON property originalDimension



902
903
904
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 902

def original_dimension
  @original_dimension
end

#quote_reply_message_idGoogle::Apis::CloudsearchV1::MessageId

Primary key for Message resource. Corresponds to the JSON property quoteReplyMessageId



907
908
909
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 907

def quote_reply_message_id
  @quote_reply_message_id
end

#sha256String

The SHA256 hash of the attachment bytes. Corresponds to the JSON property sha256 NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


913
914
915
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 913

def sha256
  @sha256
end

#upload_ipString

User IP address at upload time. Ex. "123.1.2.3". Used by Ares abuse scanning. Corresponds to the JSON property uploadIp

Returns:

  • (String)


918
919
920
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 918

def upload_ip
  @upload_ip
end

#upload_timestamp_usecFixnum

Timestamp of when user finished uploading the content. Corresponds to the JSON property uploadTimestampUsec

Returns:

  • (Fixnum)


923
924
925
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 923

def upload_timestamp_usec
  @upload_timestamp_usec
end

#video_idString

VideoID of the video attachments. This ID shall meets the Youtube ID format of 16 hex characters. For example, '4c14b8825af6059b' is a valid ID. Corresponds to the JSON property videoId

Returns:

  • (String)


929
930
931
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 929

def video_id
  @video_id
end

#video_thumbnail_blob_idString

Full Blobstore ID for the video thumbnail. Corresponds to the JSON property videoThumbnailBlobId

Returns:

  • (String)


934
935
936
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 934

def video_thumbnail_blob_id
  @video_thumbnail_blob_id
end

#virus_scan_resultString

Result for a virus scan. Corresponds to the JSON property virusScanResult

Returns:

  • (String)


939
940
941
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 939

def virus_scan_result
  @virus_scan_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 946

def update!(**args)
  @blob_path = args[:blob_path] if args.key?(:blob_path)
  @content_name = args[:content_name] if args.key?(:content_name)
  @content_size = args[:content_size] if args.key?(:content_size)
  @content_type = args[:content_type] if args.key?(:content_type)
  @dlp_scan_outcome = args[:dlp_scan_outcome] if args.key?(:dlp_scan_outcome)
  @dlp_scan_summary = args[:dlp_scan_summary] if args.key?(:dlp_scan_summary)
  @group_id = args[:group_id] if args.key?(:group_id)
  @is_client_side_transcoded_video = args[:is_client_side_transcoded_video] if args.key?(:is_client_side_transcoded_video)
  @original_dimension = args[:original_dimension] if args.key?(:original_dimension)
  @quote_reply_message_id = args[:quote_reply_message_id] if args.key?(:quote_reply_message_id)
  @sha256 = args[:sha256] if args.key?(:sha256)
  @upload_ip = args[:upload_ip] if args.key?(:upload_ip)
  @upload_timestamp_usec = args[:upload_timestamp_usec] if args.key?(:upload_timestamp_usec)
  @video_id = args[:video_id] if args.key?(:video_id)
  @video_thumbnail_blob_id = args[:video_thumbnail_blob_id] if args.key?(:video_thumbnail_blob_id)
  @virus_scan_result = args[:virus_scan_result] if args.key?(:virus_scan_result)
end