code: def create_rpc_request_header(self):
          '''Creates and serializes a delimited RpcRequestHeaderProto message.'''
          rpcheader = RpcRequestHeaderProto()
          rpcheader.rpcKind = 2  # rpcheaderproto.RpcKindProto.Value('RPC_PROTOCOL_BUFFER')
          rpcheader.rpcOp = 0  # rpcheaderproto.RpcPayloadOperationProto.Value('RPC_FINAL_PACKET')
          rpcheader.callId = self.call_id
          rpcheader.retryCount = -1
          rpcheader.clientId = self.client_id[0:16]
  
          if self.call_id == -3:
              self.call_id = 0
          else:
              self.call_id += 1
  
          # Serialize delimited
          s_rpcHeader = rpcheader.SerializeToString()
          log_protobuf_message("RpcRequestHeaderProto (len: %d)" % (len(s_rpcHeader)), rpcheader)
          return s_rpcHeadef create_rpc_request_header(self):
          '''Creates and serializes a delimited RpcRequestHeaderProto message.'''
          rpcheader = RpcRequestHeaderProto()
          rpcheader.rpcKind = 2  # rpcheaderproto.RpcKindProto.Value('RPC_PROTOCOL_BUFFER')
          rpcheader.rpcOp = 0  # rpcheaderproto.RpcPayloadOperationProto.Value('RPC_FINAL_PACKET')
          rpcheader.callId = self.call_id
          rpcheader.retryCount = -1
          rpcheader.clientId = self.client_id[0:16]
  
          if self.call_id == -3:
              self.call_id = 0
          else:
              self.call_id += 1
  
          # Serialize delimited
          s_rpcHeader = rpcheader.SerializeToString()
          log_protobuf_message("RpcRequestHeaderProto (len: %d)" % (len(s_rpcHeader)), rpcheader)
          return s_rpcHeader
docs: Creates and serializes a delimited RpcRequestHeaderProto message.