Converts an KinesisOptionsProto object to its protobuf representation. Returns: KinesisOptionsProto protobuf
(self)
| 133 | return kinesis_options |
| 134 | |
| 135 | def to_proto(self) -> DataSourceProto.KinesisOptions: |
| 136 | """ |
| 137 | Converts an KinesisOptionsProto object to its protobuf representation. |
| 138 | |
| 139 | Returns: |
| 140 | KinesisOptionsProto protobuf |
| 141 | """ |
| 142 | |
| 143 | kinesis_options_proto = DataSourceProto.KinesisOptions( |
| 144 | record_format=self.record_format.to_proto(), |
| 145 | region=self.region, |
| 146 | stream_name=self.stream_name, |
| 147 | ) |
| 148 | |
| 149 | return kinesis_options_proto |
| 150 | |
| 151 | |
| 152 | _DATA_SOURCE_OPTIONS = { |