write method

void write(
  1. TProtocol oprot
)
override

Writes the objects out to the oprot protocol.

Implementation

write(TProtocol oprot) {
  validate();

  oprot.writeStructBegin(_STRUCT_DESC);
  if (this.host != null) {
    oprot.writeFieldBegin(_HOST_FIELD_DESC);
    this.host?.write(oprot);
    oprot.writeFieldEnd();
  }
  if (this.git_info_sha != null) {
    oprot.writeFieldBegin(_GIT_INFO_SHA_FIELD_DESC);
    oprot.writeBinary(this.git_info_sha);
    oprot.writeFieldEnd();
  }
  if (isSetVersion()) {
    if (this.version != null) {
      oprot.writeFieldBegin(_VERSION_FIELD_DESC);
      oprot.writeBinary(this.version);
      oprot.writeFieldEnd();
    }
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}