Class: TencentCloud::Ckafka::V20190819::ConsumerRecord

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190819/models.rb

Overview

消息记录

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic = nil, partition = nil, offset = nil, key = nil, value = nil, timestamp = nil, headers = nil) ⇒ ConsumerRecord

Returns a new instance of ConsumerRecord.



1292
1293
1294
1295
1296
1297
1298
1299
1300
# File 'lib/v20190819/models.rb', line 1292

def initialize(topic=nil, partition=nil, offset=nil, key=nil, value=nil, timestamp=nil, headers=nil)
  @Topic = topic
  @Partition = partition
  @Offset = offset
  @Key = key
  @Value = value
  @Timestamp = timestamp
  @Headers = headers
end

Instance Attribute Details

#HeadersObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Topic:

    主题名

  • Partition:

    分区id

  • Offset:

    位点

  • Key:

    消息key

  • Value:

    消息value

  • Timestamp:

    消息时间戳

  • Headers:

    消息headers



1290
1291
1292
# File 'lib/v20190819/models.rb', line 1290

def Headers
  @Headers
end

#KeyObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Topic:

    主题名

  • Partition:

    分区id

  • Offset:

    位点

  • Key:

    消息key

  • Value:

    消息value

  • Timestamp:

    消息时间戳

  • Headers:

    消息headers



1290
1291
1292
# File 'lib/v20190819/models.rb', line 1290

def Key
  @Key
end

#OffsetObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Topic:

    主题名

  • Partition:

    分区id

  • Offset:

    位点

  • Key:

    消息key

  • Value:

    消息value

  • Timestamp:

    消息时间戳

  • Headers:

    消息headers



1290
1291
1292
# File 'lib/v20190819/models.rb', line 1290

def Offset
  @Offset
end

#PartitionObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Topic:

    主题名

  • Partition:

    分区id

  • Offset:

    位点

  • Key:

    消息key

  • Value:

    消息value

  • Timestamp:

    消息时间戳

  • Headers:

    消息headers



1290
1291
1292
# File 'lib/v20190819/models.rb', line 1290

def Partition
  @Partition
end

#TimestampObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Topic:

    主题名

  • Partition:

    分区id

  • Offset:

    位点

  • Key:

    消息key

  • Value:

    消息value

  • Timestamp:

    消息时间戳

  • Headers:

    消息headers



1290
1291
1292
# File 'lib/v20190819/models.rb', line 1290

def Timestamp
  @Timestamp
end

#TopicObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Topic:

    主题名

  • Partition:

    分区id

  • Offset:

    位点

  • Key:

    消息key

  • Value:

    消息value

  • Timestamp:

    消息时间戳

  • Headers:

    消息headers



1290
1291
1292
# File 'lib/v20190819/models.rb', line 1290

def Topic
  @Topic
end

#ValueObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Topic:

    主题名

  • Partition:

    分区id

  • Offset:

    位点

  • Key:

    消息key

  • Value:

    消息value

  • Timestamp:

    消息时间戳

  • Headers:

    消息headers



1290
1291
1292
# File 'lib/v20190819/models.rb', line 1290

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1302
1303
1304
1305
1306
1307
1308
1309
1310
# File 'lib/v20190819/models.rb', line 1302

def deserialize(params)
  @Topic = params['Topic']
  @Partition = params['Partition']
  @Offset = params['Offset']
  @Key = params['Key']
  @Value = params['Value']
  @Timestamp = params['Timestamp']
  @Headers = params['Headers']
end